Merchant Context is an open project for making offers easier for buyer agents to find, compare, and act on.
It starts with a practical question:
Can an agent tell what you sell, who it is for, what it costs, which rules apply, and what action comes next without guessing?
This repo contains:
- an agentic commerce readiness checklist;
- a draft merchant-context schema;
- a worked SaaS example; and
- a map of the main commerce and discovery standards.
This is an early public draft from Atom & Bits. It is not a new payment or checkout protocol. It does not certify ACP, UCP, MCP, A2A, x402, or Web Bot Auth support.
The goal is to give merchants one testable context layer that can map to those systems as they mature.
- Work through CHECKLIST.md.
- Copy examples/saas.json.
- Replace every sample value with a fact from your own site or system.
- Keep prices, stock, policies, and action URLs current.
- Run
python3 scripts/validate.pybefore publishing.
- Facts beat slogans.
- A URL is not an API.
- Agents must not infer price, stock, policy, or authority.
- Each claim should name its source and update time.
- A purchase or other high-impact action should state when human approval is required.
- Existing standards win. Map to them instead of inventing a private dialect.
The worker directory contains the hosted MCP service under test. It exposes:
get_service_info, a free tool that states the checks, price, payment network, and source;inspect_merchant, a $0.01 x402 tool that checks six fixed public discovery paths; and/.well-known/merchant-context, a public service record for agents and registries.
The inspector accepts public HTTPS origins only. It blocks local and IP targets, checks each redirect, caps response size and time, and returns no page body. The payment path records hashes, not wallet addresses or signed payment tokens.
We will list the production endpoint here after payment settlement, usage storage, and a live paid call pass their checks.
Run its local checks:
cd worker
npm install
npm test
npm run typecheck
npx wrangler deploy --dry-runIssues, examples, and corrections are welcome. Read CONTRIBUTING.md before opening a pull request.
MIT. See LICENSE.