MPP Server Middleware
Implements secure HTTP 402 payment gates and middleware for Hono, Express, Next.js, and Elysia.
This skill provides a comprehensive toolkit for developers to integrate Machine-to-Machine (M2M) payment flows into their backends using the mppx library. It automates the complex HTTP 402 challenge-response process, allowing Claude to help you protect API routes with cryptographically secure payment gates, manage session-based streaming payments, and handle multi-provider configurations like Stripe and Tempo across major JavaScript frameworks. It ensures robust security through HMAC challenge binding and follows RFC 9457 standards for error reporting.
Key Features
01Native middleware support for Hono, Express, Next.js, and Elysia
02Support for multi-provider configurations including Stripe and Tempo
03Configurable payment gates for per-request charges or session-based streaming
0432 GitHub stars
05RFC 9457-compliant HTTP 402 challenge-response implementation
06Secure HMAC challenge binding to prevent forgery and replay attacks
Use Cases
01Implementing usage-based billing for Machine-to-Machine (M2M) services
02Securing streaming data feeds with session-based payment limits
03Protecting premium AI model API endpoints with pay-per-call gates