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-mppThis skill is limited to using the following tools:
**Fetch live docs**:
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Acquire memory dumps from live systems/VMs and analyze with Volatility 3 for processes, networks, DLLs, injections in incident response or malware hunts.
Provides x86-64/ARM disassembly patterns, calling conventions, control flow recognition for static analysis of executables and compiled binaries.
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.