The assurance API and MCP server: the same domain function behind every surface
The assurance interfaces are a command line, an HTTP API and an MCP server that each call the same domain function for a given capability, so a result does not depend on which door was used.
The problem
Three interfaces can drift into three products. An agent tool that answers differently from the CLI, or an API route that is gated differently from the page that describes it, is how copy ends up promising something the code does not do.
The repository guards against that by cataloguing every capability once, with its CLI command, HTTP route and MCP tool or the reason one is absent, and by exporting that catalogue as a contract file the site renders instead of retyping.

How it works here
- Read the catalogue
assurance capabilities,GET /v1/capabilitiesand the MCP toolcapabilitieslist every capability and whether each surface offers it.assurance capabilities --checkexits 0 when the catalogue matches the code.Capability: catalogue.capabilities - Authenticate and get entitledThe API answers 401 with no or an invalid key and 402 when the key is valid but the plan lacks the capability. Entitlements are read on every request, and a revoked key stops at once.
GET /v1/plansmirrors what the code enforces.Capability: catalogue.plansaccount.me - Call the same function
assurance machinery coverage,POST /v1/machinery/coverageand the MCP toolmachinery_coveragereach one domain function.assurance check machineandPOST /v1/check/machineare the free path for one manifest and one advisory.Capability: machinery.coveragecheck.machinecheck.services - Use MCP for reads and bounded workThe MCP server wraps the real HTTP API; with no deployment configured, every tool returns the same not-configured error. Most tools read or verify. A few do case work for a named person’s account:
change_claim,change_advance,change_reverify,change_assess_driftandchange_assess_intervention.Capability: change.claimchange.advancechange.reverify - Leave decisions to peopleThere is no tool to close, reject, defer or resume a case, to answer its open questions, to waive a re-verification, to establish awareness, or to change a key or a trust list. Over HTTP a decision needs a key issued to an individual operator with the decider role; an account-level key is refused with
operator_required, and a mismatched actor withactor_mismatch.Capability: change.decideart14.awareness - Check parityTests build one synthetic ledger, point the CLI, API and MCP at it and compare the normalised domain fields. Another set reads the live app for gates, so a new route that touches tenant data without one fails.
What you get
You get a contract, public/capabilities.json, generated from the code and rendered at /docs/capabilities, plus an OpenAPI schema generated from the app. An agent or an integration reads capabilities instead of guessing.
The status model is deliberately plain: a surface is available (the command, route or tool exists in this build), by design (absent on purpose, with a stated reason) or planned (a known gap, listed so it is not hidden).
What it does not establish
- That the surfaces behave identically in every detail. The parity tests compare domain fields on read-only capabilities, not envelopes or exit codes against HTTP status codes.
- That anything is deployed or what any plan includes. Available describes this build only.
- That an MCP tool’s answer is a safety conclusion. Tools read, verify and relay; a language model never decides a safety result.
- That an actor name is the person. The ledger records a name as declared unless an operator key attributes it.
Who acts
Software answers requests under the entitlements in force. Named people decide: closing a case, an Article 14 awareness determination, key and trust changes. The agent surface is built so that an assistant can help read and prepare, and the hard stops are in the domain layer, not in a prompt.
Status
The contract’s counts come from the file itself. The planned items are the CLI verb for the signed advisory case route and an agent tool for usage by dimension, which has not been built; the table below shows live values for the capabilities on this page.
| Capability | CLI | HTTP API | MCP |
|---|---|---|---|
| This catalogue | availablecapabilities | availableGET /v1/capabilities | availablecapabilities |
| What is on sale, generated from the enforced entitlements | by design | availableGET /v1/plans | availableplans |
| Ad-hoc check: one manifest, one advisory, no account | availablecheck machine | availablePOST /v1/check/machine | availablemachine_assurance_check |
| Check an enrolled machine against its own ledger history | availablecheck fleet-machine | availablePOST /v1/check/fleet-machine | availablefleet_machine_assurance |
| Which safety functions a recorded verification still stands for | availablemachinery coverage | availablePOST /v1/machinery/coverage | availablemachinery_coverage |
| OPEN to IN_REVIEW | availablechange claim | availablePOST /v1/change/cases/{case_id}/claim | availablechange_claim |
| Close, reject or defer a case | availablechange decide | availablePOST /v1/change/cases/{case_id}/decision | by design |
| Establish the moment every deadline runs from | availableart14 awareness | availablePOST /v1/cases/{case_id}/awareness | by design |
Available means the command, route or tool exists in this build. By design means the surface is absent on purpose, for the reason given on the capabilities page. Planned is a known gap.
Questions
- What is the difference between 401 and 402?
- 401 means no key or an invalid key. 402 means the key authenticated but the plan does not include the capability. The plan is read on every request.
- Can an AI agent close a case?
- No tool exists for it. Closing, rejecting, deferring and resuming are a named person’s acts on the CLI or the HTTP API.
- Is the MCP server read-only?
- Mostly. Most tools read or verify, and a few perform bounded case work. Nothing decides, closes or changes trust.
- How do I know a capability exists on a surface?
- Read the contract at /capabilities.json or the table at /docs/capabilities. It is generated from the code, and a test fails when it is stale.