Help us improve
Share bugs, ideas, or general feedback.
From stripe-mpp
Scaffolds MPP projects for machine payments: installs mppx/pympp SDKs, configures Stripe/Tempo, adds middleware/paid endpoints for Hono/Express/FastAPI servers.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin stripe-mppHow this skill is triggered — by the user, by Claude, or both
Slash command
/stripe-mpp:mpp-setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
Implements Mppx server middleware for Hono, Express, Next.js, and Elysia to protect API routes with HTTP 402 payment gates, verify proofs of payment, and configure methods like Stripe.
Injects x402 payment middleware into Express APIs to enforce USDC micropayments on Base L2 for machine-to-machine monetization. Useful for premium endpoints or MCP servers.
Scaffolds ACP merchant servers in Python (FastAPI/Flask/Django), TypeScript (Express), Go: fetches OpenAPI specs/JSON schemas, installs deps, configures env, stubs endpoints/webhooks/middleware.
Share bugs, ideas, or general feedback.
Fetch live docs:
https://www.npmjs.com/package/mppx for the latest mppx SDK version, installation, and API surfacesite:github.com stripe-samples machine-payments for the official sample project structurehttps://docs.stripe.com/payments/machine for Stripe machine payments setup requirementssite:mpp.dev overview for the current protocol overview and getting started guideScaffolds a new MPP project for monetizing HTTP services with machine payments:
npm install mppx (TypeScript), pip install pympp (Python), or check mpp.dev for the Rust crateMppx.create() with payment method configurationmppx.charge() middlewareGET /openapi.json with x-payment-info extensionsmppx.fetch() for consuming paid APIsThese must be externalized (env vars or config file):
MPP_SECRET_KEY — 32-byte hex key for HMAC challenge binding (generate with openssl rand -hex 32)STRIPE_SECRET_KEY — If using Stripe payment methodTEMPO_RECIPIENT_ADDRESS — Wallet address for receiving Tempo paymentsTEMPO_CHAIN_ID — 4217 for Tempo mainnetTEMPO_USDC_CONTRACT — 0x20c000000000000000000000b9537d11c60e8b50 for USDC on Tempomy-mpp-service/
├── src/
│ ├── index.ts # Server entry point with Mppx middleware
│ ├── routes/
│ │ ├── paid.ts # Payment-protected endpoints
│ │ └── free.ts # Free/health endpoints
│ ├── config.ts # MPP and payment method configuration
│ └── openapi.ts # Service discovery endpoint
├── .env # Secrets (MPP_SECRET_KEY, STRIPE_SECRET_KEY)
├── package.json
├── tsconfig.json
└── tests/
└── payment.test.ts
import { Hono } from 'hono';
import { Mppx, tempo } from 'mppx/server';
const mppx = Mppx.create({
secretKey: process.env.MPP_SECRET_KEY,
methods: [
tempo.charge({
chainId: 4217,
currency: '0x20C000000000000000000000b9537d11c60E8b50',
recipient: process.env.TEMPO_RECIPIENT_ADDRESS,
}),
],
});
const app = new Hono();
app.get('/api/data', mppx.charge({ amount: '100' }), (c) => {
return c.json({ data: 'premium content' });
});
Fetch the latest mppx README and Stripe machine payments docs for exact SDK API, current payment method configuration options, and framework-specific setup before scaffolding.