Stateless MCP
Add a signed receipt to an ordinary MCP tool call, with no session to keep.
Under the 2026-07-28 version of MCP, each request carries everything the server needs: the protocol version, the client's capabilities and any extension metadata. atrib fits that shape. The request asks for attribution, the server signs the action, and the result comes back with a receipt anyone can check. The server can restart between calls and nothing breaks.
The request
The client names the dev.atrib/attribution extension in its capabilities and
passes the attribution context in _meta:
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "charge_card",
"arguments": { "invoice_id": "inv-7" },
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": { "name": "billing-agent", "version": "1.0.0" },
"io.modelcontextprotocol/clientCapabilities": {
"extensions": {
"dev.atrib/attribution": { "version": "0.1", "accept": ["token", "record"] }
}
},
"dev.atrib/attribution": { "context_id": "0123456789abcdef0123456789abcdef" },
"dev.atrib/idempotencyKey": "invoice7"
}
}
}_meta goes inside params. A _meta beside params negotiates nothing.
When a write times out, retry it with the same arguments and the same
idempotency key. The atribd daemon keeps each key's result and returns the
original instead of acting twice; reusing a key with different arguments is an
error. @atrib/mcp and @atrib/mcp-wrap do not read the key, so a server built
on them that needs safe retries has to keep results by key itself.
The result and the receipt
The result carries the tool's normal content and, because the request negotiated the extension, a receipt holding the signed record. Check the record with the creator's public key as in Verify a record. No call back to the server or the log is needed for the signature.
Three ways in
- You own the server. Sign with
@atrib/mcpand setextensionAttribution: truein its options, so it adds a receipt to each request that asked for one. Receipts are off by default. Advertise the extension yourself, underextensionsin the server's capabilities, with the id and version@atrib/mcpexports asATTRIBUTION_EXTENSION_IDandATTRIBUTION_EXTENSION_VERSION. - You do not own the server. Put it behind
@atrib/mcp-wrapand set"extensionAttribution": truein the wrap config. The wrapper then advertises the extension for the server, and speaks MCP 2026-07-28 to the client even when the server behind it is older. - You run
atribd.@atrib/sdkand theatribPython package are the clients for the localatribddaemon, which servesattestandrecall. They send the full request metadata and read receipts by default. They are not general MCP clients for other servers.
What a receipt proves
A valid receipt proves that the holder of the creator key signed the record and that the record commits to the action facts it discloses. With an inclusion proof, it also proves the log accepted that commitment.
It does not prove the tool's result is true, that a side effect happened, that the signer was allowed to act, or that a counterparty agreed. Each of those needs its own evidence.
The full guide, with runnable proofs and an operations checklist, is
Add verifiable records to stateless MCP calls.
The wire format is the
dev.atrib/attribution v0.1 extension.