/stripe-mpp:mpp-service-discoveryfrom stripe-mpp
Implements MPP service discovery by publishing OpenAPI documents with x-payment-info and x-service-info extensions, plus llms.txt for autonomous AI agent discovery. Use when making paid APIs discoverable and payable by AI agents.
Ships in stripe-mpp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://paymentauth.org/ for the canonical service discovery specificationmpp service discovery openapi x-payment-info llms.txt for implementation examplessite:mpp.dev directory for the MPP payments directory and listing requirementshttps://mpp.dev/overview for discovery-related documentationMPP service discovery allows AI agents to autonomously find, understand, and pay for HTTP services. It uses two mechanisms:
Services publish an OpenAPI 3.x document with two custom extensions:
{
"openapi": "3.0.0",
"info": { "title": "My Paid API", "version": "1.0.0" },
"x-service-info": {
"categories": ["compute", "data", "media"],
"docs": {
"apiReference": "https://api.example.com/docs",
"homepage": "https://example.com",
"llms": "https://api.example.com/llms.txt"
}
}
}
{
"paths": {
"/api/data": {
"get": {
"summary": "Get premium data",
"x-payment-info": {
"intent": "charge",
"method": "tempo",
"amount": "100",
"currency": "0x20C000000000000000000000b9537d11c60E8b50",
"description": "$0.01 per request"
},
"responses": {
"200": { "description": "Premium data" },
"402": { "description": "Payment required" }
}
}
}
}
}
| Field | Required | Description |
|---|---|---|
intent | Yes | "charge" or "session" |
method | Yes | Payment method (e.g., "tempo", "stripe") |
amount | No | Price (null for dynamic pricing) |
currency | Yes | Currency identifier (contract address for crypto, code for fiat) |
description | No | Human-readable pricing description |
amount can be null for dynamic pricing — the 402 challenge remains authoritativeCache-Control: max-age=300A text file (analogous to robots.txt) describing the service for autonomous agents:
# My Paid API
> AI-powered data analysis service
## Endpoints
- GET /api/analyze — Analyze data ($0.05/request, Tempo USDC)
- GET /api/summarize — Summarize text ($0.02/request, Tempo USDC)
## Pricing
All prices in USDC. Volume discounts available via session payments.
## Authentication
Payments via MPP (HTTP 402). No API key required.
## Contact
[email protected]
Services can be listed in the MPP payments directory (100+ services):
x-payment-infoapp.get('/openapi.json', (c) => {
return c.json({
openapi: '3.0.0',
info: { title: 'My API', version: '1.0.0' },
'x-service-info': {
categories: ['data'],
docs: { llms: 'https://api.example.com/llms.txt' },
},
paths: {
'/api/data': {
get: {
summary: 'Get data',
'x-payment-info': {
intent: 'charge',
method: 'tempo',
amount: '100',
currency: '0x20C000000000000000000000b9537d11c60E8b50',
description: '$0.01 per request',
},
responses: {
'200': { description: 'Data returned' },
'402': { description: 'Payment required' },
},
},
},
},
});
});
app.get('/llms.txt', (c) => {
return c.text(`# My API\n> Premium data service\n\n## Endpoints\n...`);
});
openapi.json and llms.txt for maximum discoverabilityCache-Control: max-age=300 on discovery endpointsdescription fields for human-readable pricingFetch the latest service discovery specification from paymentauth.org for exact extension schemas, directory listing requirements, and llms.txt format before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/mpp-charge-flowImplement MPP one-time charge payment flows — per-request payment gates for API monetization, data access, and file downloads. Use when building pay-per-call APIs or protecting individual resources with HTTP 402 charges./mpp-client-fetchImplement MPP client-side payment handling with mppx.fetch(). Use when building AI agents or automated clients that consume 402-protected APIs, handling the transparent challenge-response payment flow./mpp-conformanceValidate MPP implementations against the specification — verify HTTP 402 challenge-response compliance, header formats, payment method correctness, service discovery, and production readiness. Use when auditing an MPP integration or preparing for production launch./mpp-dev-patternsCross-cutting MPP development patterns — security, replay protection, HMAC challenge binding, receipt validation, error handling, retry logic, TLS requirements, and monitoring. Use when designing architecture or solving production concerns./mpp-proxyImplement MPP payment proxies — wrap existing APIs with HTTP 402 payment gates without modifying the upstream service. Use when monetizing third-party APIs, adding payment layers to existing services, or building API marketplaces./mpp-server-middlewareImplement MPP server-side middleware for Hono, Express, Next.js, and Elysia. Use when protecting API routes with HTTP 402 payment gates, configuring payment methods, or setting up the Mppx server instance.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin stripe-mppOther plugins' skills for the same job