Universal Commerce Protocol (UCP)
UCP is an open protocol, published at ucp.dev, that lets a platform (an AI agent, app or website acting for a buyer) discover a business, negotiate capabilities, run a checkout, pay through a payment handler, link the buyer's account and follow the order. This skill pins UCP 2026-08-25 and produces a business endpoint, a platform client, a profile or a review that meets its MUST-level rules.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the page and heading it cites. UCP pages have no section numbers, so citations name the page and the heading (for example "Overview, Authority Binding"); RFC rules cite the section number. 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.
Inputs (fill in, or ask before starting)
- Role: business (serves
/.well-known/ucpand the commerce endpoints), platform (agent or app calling a business), embedded host, payment credential provider authoring a handler, or identity provider for the Accelerated IdP Flow. - Transports: which services the business exposes (
rest,mcp,a2a,embedded) and which the platform speaks. - Capabilities: checkout, cart, catalog, order, identity linking, and which extensions (fulfillment, discount, buyer consent, loyalty, AP2 mandates, payment authentication, split payments, payment terms).
- Payment handlers: the reverse-domain handler names, and whether raw card data would reach the platform (it should not).
- Target version: UCP 2026-08-25 (current, the default; the release ucp.dev aliases as
latest). UCP 2026-04-08 is supported: still receiving backports, serve it throughsupported_versionsfor a named peer. UCP 2026-01-23 and UCP 2026-01-11 are legacy: read and upgrade from them, never author them. The UCP draft is a preview (posture: track): never advertise it. Seereferences/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, read
https://ucp.dev/versions.jsonand the GitHub releases for a newer dated release, then re-read every URL in Sources, and update the pins.
Invariants
- HTTPS everywhere. All UCP communication MUST use HTTPS (Overview, Transport Security); REST endpoints need TLS 1.3 at minimum (Checkout REST, Transport Security).
- Profiles are well-formed and cacheable. A business profile lives at
/.well-known/ucp;ucp.version,ucp.servicesanducp.payment_handlersare required (the registries even when empty). Published artifacts are served without redirects, withCache-Control: public, max-ageof at least 60 (Overview, Profile Structure and Hosting). - Every request names the platform profile. REST sends
UCP-Agent: profile="…"as an RFC 8941 Dictionary; MCP sendsmeta["ucp-agent"].profilein the tool arguments (Overview, Platform Advertisement on Request). - Names are bound to their schema host. Capability and service names use
{reverse-domain}.{service}.{capability}; a declaredschemaURL's host, reversed, MUST equal the name or be a label-aligned prefix of it, and a platform MUST NOT fetch or activate an entity that fails (Overview, Authority Binding and Enforcement). - One protocol version per negotiation. The platform picks one version from
versionandsupported_versions, verifies a fetched leaf profile'sucp.versionequals the key, and never mixes capabilities across profiles; the business MUST answer an unknown version withversion_unsupportedand MUST return the negotiated version in every response (Overview, Protocol Version and Request-Time Validation). - No draft in public discovery.
versionandsupported_versionsMUST be datedYYYY-MM-DDreleases, never"draft"(Overview, Pre-release Versions). dev.ucp.*entries carry releaseD. A profile forucp.versionDMUST declare versionDon everydev.ucp.*service, capability and extension, and a platform MUST reject entries whose version differs (Overview, Component Versioning and Release Snapshots).- Capabilities intersect by exact version. Keep a capability only if both sides list the same name and at least one identical version, take the latest shared date, then prune extensions until none lacks a parent (Overview, Intersection Algorithm).
- Responses carry
ucp. Every response includesucp.versionand only the capabilities that are negotiated and relevant to the operation (Overview, Business Requirements and Response Capability Selection). - Escalate through
continue_url. A checkout inrequires_escalationMUST carrycontinue_urland at least onerequires_buyer_inputorrequires_buyer_reviewmessage, and the platform MUST hand off through it (Checkout, Continue URL and Guidelines). - Credentials flow one way. Platforms SHOULD NOT touch raw financial credentials; businesses MUST NOT echo credentials back, MUST treat each checkout's resolved
available_instrumentsas authoritative, and MUST reject more than one instrument unless split payments is negotiated (Overview, Credential Flow & PCI Scope and Payment Handlers). - Webhooks are signed, keys live in
keys[]. Business-to-platform webhooks MUST be signed with RFC 9421; signing keys MUST be published in the top-levelkeys[]JWK Set, and every verifier MUST supportES256(Overview, Authentication Mechanisms and Profile Structure; Message Signatures, Signature Algorithms). - The authenticated identity matches
UCP-Agent. With API keys, OAuth or mTLS, the verifier MUST confirm the principal may act for the profile inUCP-Agent(Overview, Identity Binding). - Fetches are SSRF-safe. Any URL dereferenced for identity resolution MUST be HTTPS, MUST NOT follow redirects, and MUST NOT resolve to special-use addresses such as
169.254.169.254(Overview, Fetching). - Identity linking is OAuth 2.0 done strictly. Authorization Code with PKCE
S256,issvalidation per RFC 9207 byte for byte, exactredirect_urimatching, and401 identity_requiredor403 insufficient_scopewith aWWW-Authenticate: Bearerchallenge (Identity Linking, General Guidelines and Error Handling).
Workflow
- Pick the version. Target UCP 2026-08-25 unless a named peer needs UCP 2026-04-08; list the leaf profiles you will serve in
supported_versions. ->references/versions.md✓ The target is a dated release that is not legacy, and no profile advertises the draft. - Publish or read the profiles. Write the business profile (services per transport, capabilities, payment handlers,
keys[]) and the platform profile; check authority binding on everyschemaURL. ->references/discovery-and-negotiation.md✓GET /.well-known/ucpreturns 200 over HTTPS without a redirect, withCache-Control: public, max-age=60or more, and validates againstprofile.json. - Negotiate. Resolve the platform profile from
UCP-Agent, select the protocol version, intersect capabilities by exact version, prune orphan extensions, and map discovery and negotiation failures to the error codes. ->references/discovery-and-negotiation.md✓ An unreachable profile gets424 profile_unreachable, an unknown versionversion_unsupported, and an empty intersection200withcapabilities_incompatible. - Bind the transport. Map operations to REST paths, MCP
tools/calltools, A2ADataPartkeys or Embedded Protocol messages, with the transport's error split between protocol errors and business outcomes. ->references/checkout.md✓ MCP results carry the UCP payload instructuredContent, and business outcomes are never sent as JSON-RPCerror. - Run checkout. Implement create, get, update (full replacement), complete and cancel, the status lifecycle,
messagesseverities,continue_url, idempotency keys and any active extensions. ->references/checkout.md✓ Arequires_escalationresponse hascontinue_url, and a retried complete with the same key and body returns the cached result. - Wire payments. Advertise handlers, resolve
available_instrumentsper checkout, accept opaque credentials bound to the checkout, and add AP2 mandates or payment authentication Actions only when negotiated. ->references/payments.md✓ No response echoes a credential, and a complete with two instruments is rejected withpayment_failedunless split payments is active. - Link identity and serve orders. Run OAuth discovery and the Authorization Code flow, derive scopes from
config.scopes, gate operations, and send signed order webhooks with the full order. ->references/identity-and-orders.md✓ A gated call without a token gets401withWWW-Authenticate: Bearer realm=…andidentity_required, and every webhook verifies against the businesskeys[]. - Sign and harden. Add RFC 9421 request and response signatures where required or recommended, key rotation, and the profile-fetch budget and SSRF guards.
->
references/discovery-and-negotiation.md✓ Signatures cover@method,@authority,@path,content-digest,content-typeanducp-agentandidempotency-keywhen present. - Upgrade (only when asked). Follow the upgrade section for each step from the source release to UCP 2026-08-25.
->
references/versions.md✓ The upgraded profile and payloads validate against the 2026-08-25 schemas, and older peers are still served throughsupported_versions.
Verify before done
-
/.well-known/ucpvalidates againsthttps://ucp.dev/2026-08-25/schemas/profile.json, everydev.ucp.*entry says2026-08-25, and everyschemahost passes the authority-binding table. - Each
supported_versionsURL serves a leaf profile whoseucp.versionequals its key and which has nosupported_versions. - Every request carries
UCP-Agent(REST) ormeta["ucp-agent"](MCP), and MCPcomplete_checkoutandcancel_checkoutcarrymeta["idempotency-key"]. - Every response has
ucp.versionanducp.statuswhere the schema defines it, and only relevant capabilities. - Idempotency keys are stored at least 24 hours; a reused key with a different body gets
409(REST) or-32000(MCP). -
requires_escalationalways comes withcontinue_urland arequires_buyer_*message. - Handlers are filtered per cart,
available_instrumentsin the response is authoritative, and token credentials have an expiry. - With AP2 negotiated, every checkout response has
ap2.merchant_authorizationand complete withoutap2.checkout_mandatefails withmandate_required. - Order webhooks are RFC 9421 signed, carry
Webhook-IdandWebhook-Timestamp, and the platform checks the signer owns the order. - Identity linking uses PKCE
S256, validatesisswithout normalization, and answers missing scopes with403 insufficient_scopelisting the full scope set. - Nothing from the UCP draft (for example
dev.ucp.lodging.booking) is advertised.
Reference index
references/versions.md: the four dated releases and the draft, their status, what each changed, upgrade steps between them, and the preview. Load for steps 1 and 9.references/discovery-and-negotiation.md: profiles, naming and authority binding, services and endpoints, theucpnamespace andmap_order, version selection, the intersection algorithm, error codes, identity and key resolution, message signatures, and fetch safety. Load for steps 2, 3 and 8.references/checkout.md: checkout operations, status lifecycle, messages and severities,continue_url, idempotency, the REST, MCP, A2A and Embedded bindings, and the fulfillment and discount extensions. Load for steps 4 and 5.references/payments.md: payment handlers,available_instruments, credentials and binding, PCI scope, the AP2 mandates extension, payment authentication Actions, and split payments. Load for step 6.references/identity-and-orders.md: identity linking (OAuth discovery, flow, scopes, Accelerated IdP Flow, errors) and the order capability (snapshot, Get Order, webhooks). Load for step 7.
Related skills
ap2, for the AP2 mandate credentials UCP carries:npx skills add ScaleDockHQ/scaledock-skills --skill ap2x402, for HTTP-native payments outside a UCP checkout:npx skills add ScaleDockHQ/scaledock-skills --skill x402agentic-commerce-protocol, for the other agent checkout protocol:npx skills add ScaleDockHQ/scaledock-skills --skill agentic-commerce-protocolmcp, for the MCP server UCP's MCP transport runs on:npx skills add ScaleDockHQ/scaledock-skills --skill mcpa2a, for the Agent Card and messages of UCP's A2A transport:npx skills add ScaleDockHQ/scaledock-skills --skill a2aoauth, for the OAuth 2.0 RFCs identity linking builds on:npx skills add ScaleDockHQ/scaledock-skills --skill oauthweb-bot-auth, for the Signature-Agent interop UCP supports:npx skills add ScaleDockHQ/scaledock-skills --skill web-bot-auth
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- UCP Specification Overview (2026-08-25): Release 2026-08-25 (latest), release/2026-08-25 at 3a541e13, checked 2026-10-05.
- UCP Checkout Capability (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Checkout REST Binding (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Checkout MCP Binding (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Checkout A2A Binding (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Embedded Protocol (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Fulfillment Extension (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Discount Extension (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Order Capability (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Identity Linking Capability (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Payment Handler Specification Guide (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP AP2 Mandates Extension (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Payment Authentication Extension (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Message Signatures (2026-08-25): Release 2026-08-25, checked 2026-10-05.
- UCP Versioning (release branch policy): Release 2026-08-25, checked 2026-10-05.
- UCP release v2026-08-25: Release notes, published 2026-08-25, checked 2026-10-05.
- UCP release v2026-04-08: Release notes, published 2026-04-09, checked 2026-10-05.
- UCP Specification Overview (2026-04-08): Release 2026-04-08, release/2026-04-08 at f021fcb2, checked 2026-10-05.
- UCP Specification Overview (2026-01-23): Release 2026-01-23, checked 2026-10-05.
- UCP Specification Overview (2026-01-11): Release 2026-01-11, checked 2026-10-05.
- UCP Specification Overview (draft): Draft, main at b0d92c2d (2026-10-05), checked 2026-10-05. Draft posture: track.
- UCP Lodging Booking Capability (draft): Draft, main at b0d92c2d, checked 2026-10-05. Draft posture: track.
- UCP published versions index: Site index, lists draft, 2026-08-25 (latest), 2026-04-08, 2026-01-23, 2026-01-11, checked 2026-10-05.