A Lightning paywall middleware that accepts both legacy L402 and the emerging x402 bip122/exact standard, settling both into a single LNBits wallet. Drop it into your Express MCP server routes and it returns a 402 with dual WWW-Authenticate headers, then validates whichever rail the client sends. The x402 path runs a full 10-step verifier: mints a real BOLT11 invoice, decodes it with light-bolt11-decoder, checks network/asset/amount consistency, guards replays with an in-memory cache, and confirms payment via LNBits. Reach for this if you want to serve both legacy L402 tooling and forward-compatible x402 clients without running two separate services or fragmenting your revenue stream across incompatible settlement backends.
claude mcp add --transport stdio zekebuilds-lab-mcp-pay-gate uvx mcp-pay-gate