ucp-ready
v0.1.2
Published
Open-source readiness checker for agentic commerce: audits a store's UCP + AP2 compliance
Downloads
390
Maintainers
Readme
ucp-ready
Open-source readiness checker for agentic commerce. It audits a store's public UCP (Universal Commerce Protocol) discovery profile — and, where declared, its AP2 (Agent Payments Protocol) mandate support — and reports how ready that store is for AI shopping agents to browse, check out, and pay on a human's behalf.
Built and maintained by Monkydot.
Status
v0.1.0 released:
static discovery-profile checks are implemented — this audits what a store
publishes, not a live checkout/payment flow. See "What it checks" below
for the exact scope, and CHANGELOG.md for release
history.
Usage
npx ucp-ready check https://store.example.com
# or, machine-readable:
npx ucp-ready check https://store.example.com --jsonExit code is 0 when the verdict is ready, non-zero (1) for partial or
not-ready — safe to use as a CI gate.
import { checkReadiness } from 'ucp-ready';
const report = await checkReadiness('https://store.example.com');
// { url, verdict: 'ready' | 'partial' | 'not-ready', checks: CheckResult[], fetchedAt }What it checks
- Discovery: is
/.well-known/ucppublished, reachable over HTTPS, and valid JSON? - Profile shape: required
ucp.version,ucp.services,ucp.payment_handlers, andkeys[](JWK Set, RFC 7517) fields. - Schema authority binding: every declared
schemaURL must be authority-bound to its capability/service name, per the UCP spec's binding algorithm. - Service & capability declarations: each entry declares a valid
version,spec,schema, and (for services)transport/endpoint. - AP2 readiness: whether
dev.ucp.common.payment.ap2_mandateis declared, correctlyextends-ingdev.ucp.shopping.checkout, with a non-emptyvp_formats_supportedconfig. - A scored, actionable verdict (
ready/partial/not-ready) with remediation guidance per failed or warned check.
partial means the core UCP profile is valid but AP2 payment-mandate support
is missing or incomplete; not-ready means the UCP profile itself is missing
or broken.
Not yet covered (see the plan's Non-goals — tracked as future work): the Lodging/Food UCP verticals, exercising a live checkout/order flow, and cryptographic verification of a live AP2 mandate — this tool checks that AP2 support is declared correctly, not that a real transaction's signature verifies.
Need help getting your store agentic-ready?
ucp-ready is built and maintained by Monkydot, a
software house building e-commerce systems. If you want a full audit,
hands-on implementation of UCP/AP2 support, or a custom agentic-commerce
integration for your store, get in touch.
Contributing
Contributions are welcome — see CONTRIBUTING.md for
the dev setup, validation gate, and the spec-grounding rule every check
follows. This project follows the Contributor Covenant.
See CHANGELOG.md for release history.
License
MIT
