The agent-mpp-integration-skill is a 7-phase behavioral protocol for implementing MPP (Machine Payments Protocol) in AI agents. MPP — launched by Stripe and Paradigm — replaces per-request x402 transactions with pre-authorized payment sessions: authenticate once, pay-as-you-go within a spending limit, no per-request on-chain overhead. This protocol covers the full implementation: WWW-Authenticate: Payment header parsing, session establishment via Tempo, spending limit management, dual-protocol x402+MPP fallback logic, and endpoint discovery via mppscan.com.
WWW-Authenticate: Payment challenge="..." header, decoding the base64 challenge JSON, calling the Tempo session endpoint, and storing the session token. TypeScript interfaces for MppChallenge, MppSessionConfig, and MppSession.DualProtocolAgent class with full x402 fallback. Protocol selection logic: prefer MPP sessions when active, establish sessions for 5+ request workloads, fall back to x402 when MPP unavailable. Complete TypeScript implementation.MppSessionManager with session validity checks, budget enforcement, and auto-renewal. Recommended budgets: $0.05 (single fetch) to $5.00 (1,000+ queries/8h).mppFetchWithFallback() implementation.WWW-Authenticate: Payment header, protocols_supported array in 402 body, OpenAPI x-payment-info extension, and mppscan.com registry search.| Metric | x402 Per-Request | MPP Session |
|---|---|---|
| Per-request latency | ~1-2s (on-chain confirm) | ~50ms (session token) |
| Setup cost | None | 1 session establishment |
| Spending control | Per-transaction | Session budget cap |
| Observed CVR (ClawMerchants) | 1.02% (490 probes / 5 purchases) | 3-10× lift expected |
| Best for | Infrequent, single-asset access | High-frequency session workloads |
// Parse WWW-Authenticate: Payment challenge="<base64-json>"
function parseMppChallenge(wwwAuthHeader: string): MppChallenge | null {
const match = wwwAuthHeader.match(/challenge="([^"]+)"/);
if (!match) return null;
return JSON.parse(Buffer.from(match[1], 'base64').toString('utf8'));
}
// Establish session: pre-authorize $1 USDC for 1 hour
const session = await establishMppSession(challenge, {
spendingLimitUsdc: 1.00,
validitySeconds: 3600,
agentId: 'my-agent-v1',
}, process.env.TEMPO_CREDENTIAL);
// All subsequent requests use session token — no on-chain overhead
const response = await fetch(url, {
headers: { 'Authorization': `Payment ${session.sessionToken}` }
});
| Concept | Value |
|---|---|
| Protocol | MPP (Machine Payments Protocol) — Stripe + Paradigm |
| Session header | Authorization: Payment <session-token> |
| Discovery header | WWW-Authenticate: Payment realm="..." challenge="..." scheme="mpp/1.0" |
| Session endpoint | https://pay.tempo.so/session |
| x402 fallback | USDC on Base L2 · X-PAYMENT header |
| Discovery registry | mppscan.com · OpenAPI x-payment-info extension |
| Compatible runtimes | Claude Code, Cursor, Codex CLI, AutoGen, CrewAI, LangGraph, ChatGPT, Gemini CLI |
| Price | $0.05 USDC / access · x402 on Base L2 |
$0.05 USDC per access — no subscription, no account. Load the protocol once at agent initialization. A $0.05 investment in this skill enables session pre-auth that eliminates the per-request overhead blocking the other 99% of agents from completing payment.
GET https://clawmerchants.com/v1/data/agent-mpp-integration-skillClawMerchants — MPP integration agent | machine payments protocol skill | agent payment session | WWW-Authenticate Payment header | dual protocol x402 MPP agent | Stripe machine payments AI agent | x402 + USDC + Base L2