Machine Payments Protocol (MPP)
The Machine Payments Protocol, co-authored by Tempo and Stripe and launched on 18 March 2026, gives HTTP 402 Payment Required concrete semantics through the "Payment" HTTP authentication scheme. A server answers an unpaid request with 402 and one or more WWW-Authenticate: Payment challenges; the client pays with a registered payment method, retries with a Payment credential, and gets the resource with a Payment-Receipt. The core is the Internet-Draft draft-httpauth-payment; intents, discovery, transports and payment methods are companion specifications published on paymentauth.org. With this skill the agent builds a paying client or a charging server.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. "core §" refers to draft-httpauth-payment-01, "charge §" to draft-payment-intent-charge-00, "subscription §" to draft-payment-intent-subscription-00, "discovery §" to draft-payment-discovery-01 and "mcp §" to draft-payment-transport-mcp-00. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Draft posture: build. The core is a complete individual Internet-Draft with registries, security considerations and production SDKs; implement the pinned revision exactly. It is not adopted by an IETF working group, and the companion intent, discovery and transport documents are published only on paymentauth.org, so re-check both before relying on a field.
Inputs (fill in, or ask before starting)
- Role: server (resource that charges), client (agent or app that pays), or both.
- Intent:
charge(one-time),subscription(fixed amount per period), or a method-definedsession(metered pay-as-you-go). - Payment methods: the registered method identifiers to offer or accept (for example
tempo,stripe,lightning), each with its own method specification. - Transport: plain HTTP, or JSON-RPC and MCP (
tools/call,resources/read,prompts/get). - Authentication: whether the resource also needs ordinary authentication in
Authorization, which decides theheaderparameter. - Discovery: whether to publish an OpenAPI document with
x-payment-info. - Target version: draft-httpauth-payment-01 (default, posture build: implement it). No other line exists; earlier revisions are compatible predecessors, not lines. See
references/versions.md. - Revision: the pinned revisions in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources, check the datatracker page for a newer revision, WG adoption or replacement, check paymentauth.org and the
mpp-specsrepository for new intent, discovery or transport revisions, and update the pins.
Invariants
- 402 always carries a Payment challenge. A server MUST NOT return 402 without at least one
WWW-Authenticate: Paymentchallenge, and every payment failure (malformed, unknown, used, expired or unverifiable credential) returns 402 with a fresh challenge (core § 4.2, § 4.4.2). 401 is for authentication failures unrelated to payment; 403 means payment verified but policy denies access (core § 4.3). - A challenge has
id,realm,method,intentandrequest.idis non-empty,methodis lowercase letters,intentis registered, andrequestis base64url without padding of JCS-serialized JSON (core § 5.1.1, § 6.1; RFC 8785). - The
idbinds the challenge. Servers MUST bindidto realm, method, intent and request, plus expires, digest, opaque and header when present, and MUST reject a credential whose echoed parameters do not match; the recommended binding is HMAC-SHA256 over seven fixed pipe-joined slots, with an eighth only whenheaderis present (core § 5.1.2.1, § 5.1.2.1.1). - The credential goes in the field the challenge selects. No
headerparameter meansAuthorization: Payment <base64url JSON>;header="Payment-Authorization"means that field and no other. A credential in any other field MUST NOT satisfy the challenge (core § 5.1.2, § 5.2). - The credential echoes the challenge unchanged in its
challengeobject, adds a method-specificpayload, and MAY addsource(a DID is recommended) (core § 5.2). - Receipts only on success.
Payment-Receiptis base64url JSON withstatus"success",method,timestampandreference, and MUST NOT appear on error responses (core § 5.3, § 5.3.1). - Proofs are single-use and settlement is atomic. Each credential works once per challenge; concurrent use yields at most one settlement and one delivery; no side effects before payment; a charge gives no partial access, including streamed bytes or started tool calls (core § 11.3 to § 11.5; charge § 4.4, § 6.2).
- Clients verify before paying. Amount, recipient, currency and validity window, never the
description(core § 11.6; charge § 8.1, § 8.2). The 402 challenge is authoritative overAccept-Paymentpreferences and discovery metadata (core § 7.4; discovery § 5). - Caching and secrecy. 402 responses carry
Cache-Control: no-store; receipt responses carryprivate; responses toPayment-Authorizationrequests carryprivateorno-store; credentials, receipts and the binding secret are never logged (core § 11.2.1, § 11.2.2, § 11.8, § 11.10). - TLS only. No challenges or credentials over unencrypted HTTP; TLS 1.2 or later, 1.3 recommended (core § 11.2).
- No accounts required. Servers MUST NOT require user accounts for payment (core § 11.7).
Workflow
- Pick the version and parts. Use draft-httpauth-payment-01 with the companion revisions in Sources; list the intents and payment methods in scope.
->
references/versions.md✓ Every document the integration relies on is pinned, and each method identifier has a method specification. - Design the challenge (server). Choose the intent's request fields (amount in base units as a string, currency, recipient,
externalId,methodDetails),expires,digestfor bodies,opaquefor processor correlation, andheaderifAuthorizationis taken (core § 5.1; charge § 5). ->references/protocol.md✓ The request JSON is JCS-serialized, base64url without padding, and the challenge stays under 8 KB (core § 9.4). - Bind and issue (server). Compute
id(HMAC-SHA256 over the slot string, or stateful storage), send 402 with one challenge per method and intent offered,Cache-Control: no-storeand an RFC 9457 problem body (core § 5.1.2.1.1, § 7.3, § 8.1). ->references/protocol.md✓ Recomputing the binding from the echoed parameters reproducesid; changing any bound field breaks it. - Negotiate and pay (client). Optionally send
Accept-Payment; parse every Payment challenge, drop unknown intents and unsupportedheadervalues, verify amount, recipient, currency and expiry, pay with the method, and send exactly one credential in the selected field (core § 5.2, § 7.3, § 7.4, § 11.6, Appendix B.4). ->references/protocol.md✓ The client never pays an expired challenge, never trustsdescription, and never sends two credentials. - Verify and settle (server). Check the binding, expiry, body digest and single use; verify the proof, amount and recipient with the method; settle atomically; then respond 200 with
Payment-ReceiptandCache-Control: private(core § 5.1.3, § 11.5, § 11.10; charge § 7). ->references/protocol.md✓ Parallel replays of one credential produce one settlement; failures return 402 with a fresh challenge and the right problem type. - Add intents, discovery and transports. Implement subscription lifecycle state, a method's session intent,
/openapi.jsonwithx-payment-info, or the JSON-RPC/MCP mapping as needed (subscription § 7; discovery § 4; mcp § 6 to § 8). ->references/intents-and-discovery.md✓ Subscriptions charge at most once per period and never accumulate missed periods; discovery prices match the runtime 402. - Reconcile. Record
externalId,opaque, the challengeid, the receiptreferenceand the subscription identifier so every settlement maps back to an order (charge § 5.1.2; core § 5.1.2, § 5.3; subscription § 7.3). ->references/intents-and-discovery.md✓ Each receipt joins to exactly one order or billing period. - Review security. Rate limits, secret rotation, idempotency keys for non-idempotent methods, intermediary handling of 402, and explicit user confirmation in browser wallets (core § 11.2.2, § 11.4, § 11.9, § 11.11, § 11.12).
->
references/protocol.md✓ No log, error or analytics path contains a credential, receipt or binding secret.
Verify before done
- Every 402 has at least one
WWW-Authenticate: Paymentchallenge with non-emptyid,realm, lowercasemethod, registeredintentand JCS base64urlrequest(core § 4.4.2, § 5.1.1). - The server rejects a credential whose echoed challenge differs from the binding, and one sent in a field the challenge did not select (core § 5.1.2.1, § 5.2).
- Malformed, unknown, used, expired and failed credentials each return 402, a fresh challenge and the matching problem type (core § 4.2, § 8.2).
- Receipts appear only on 2xx, with
status"success"(core § 5.3.1). -
Cache-Controlisno-storeon 402 andprivateon receipts (core § 11.10). - Amounts are base-unit integer strings and the client checks amount, recipient, currency and expiry before paying (charge § 5.1.1; core § 11.6).
- No side effect, partial body or stream byte is produced before payment verifies (core § 11.4; charge § 4.4).
- Discovery and capability advertisement are treated as hints; the runtime challenge wins (discovery § 5; mcp § 5).
Reference index
references/versions.md: the single current line, the draft lineage fromdraft-ryan-httpauth-payment-00, what each revision added, and the posture. Load for step 1.references/protocol.md: status codes, challenge parameters, the HMAC binding slots, credential and receipt formats,Accept-Payment, problem types, versioning rules, and security and caching. Load for steps 2 to 5 and 8.references/intents-and-discovery.md: the charge and subscription intents, session intents, OpenAPI discovery, the JSON-RPC and MCP transport, reconciliation fields, and how MPP relates to x402. Load for steps 6 and 7.
Related skills
x402for the other HTTP 402 payment protocol for agents, with its own headers and facilitator model:npx skills add ScaleDockHQ/scaledock-skills --skill x402.mcpfor the Model Context Protocol that the MCP transport extends:npx skills add ScaleDockHQ/scaledock-skills --skill mcp.problem-detailsfor RFC 9457 error bodies:npx skills add ScaleDockHQ/scaledock-skills --skill problem-details.json-canonicalizationfor RFC 8785 JCS, used forrequestandopaque:npx skills add ScaleDockHQ/scaledock-skills --skill json-canonicalization.openapifor the discovery document:npx skills add ScaleDockHQ/scaledock-skills --skill openapi.ap2for agent payment mandates, a different layer of agent commerce:npx skills add ScaleDockHQ/scaledock-skills --skill ap2.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- draft-httpauth-payment-01: The "Payment" HTTP Authentication Scheme: individual Internet-Draft (no working group), intended Standards Track, -01 (9 September 2026), posture build, checked 2026-10-09.
- draft-httpauth-payment datatracker page: Active, I-D Exists, latest revision -01, expires 13 March 2027, checked 2026-10-09.
- Earlier core revisions, compared while writing: draft-httpauth-payment-00 (19 June 2026), draft-ryan-httpauth-payment-01 (18 March 2026) and draft-ryan-httpauth-payment-00 (15 February 2026): individual drafts, superseded, checked 2026-10-09.
- Machine Payments Protocol Specifications (paymentauth.org): specification index generated from
tempoxyz/mpp-specs, build of commit 50309c8 (5 October 2026), checked 2026-10-09. - draft-payment-intent-charge-00: Charge Intent for HTTP Payment Authentication: Internet-Draft format, intended Informational, published on paymentauth.org only, -00 (5 October 2026), checked 2026-10-09.
- draft-payment-intent-subscription-00: Subscription Intent for HTTP Payment Authentication: Internet-Draft format, intended Informational, published on paymentauth.org only, -00 (5 October 2026), checked 2026-10-09.
- draft-payment-discovery-01: Service Discovery for HTTP Payment Authentication: Internet-Draft format, intended Informational, published on paymentauth.org only, -01 (5 October 2026), checked 2026-10-09.
- draft-payment-transport-mcp-00: Payment Authentication Scheme: JSON-RPC & MCP Transport: Internet-Draft format, intended Informational, published on paymentauth.org only, -00 (5 October 2026), checked 2026-10-09.
- draft-tempo-session-00: Tempo Session Intent for HTTP Payment Authentication: payment method specification, intended Informational, -00 (5 October 2026), read for the session intent only, checked 2026-10-09.
- tempoxyz/mpp-specs: specification source repository, commit 50309c8e (5 October 2026), checked 2026-10-09.
- Machine Payments Protocol documentation (mpp.dev): protocol site with overview, governance and the x402 comparison, informative, checked 2026-10-09.
- Introducing the Machine Payments Protocol: Stripe announcement, 18 March 2026, informative, checked 2026-10-09.
- Stripe docs: Accept machine payments with MPP: vendor documentation, informative, checked 2026-10-09.
- RFC 9110: HTTP Semantics: RFC (Internet Standard), STD 97, checked 2026-10-09.
- RFC 8785: JSON Canonicalization Scheme: RFC (Informational), RFC 8785, checked 2026-10-09.
- RFC 9457: Problem Details for HTTP APIs: RFC (Proposed Standard), RFC 9457, checked 2026-10-09.