receipt-gate
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RECEIPT_GATE_ROOT | No | Root directory the MCP server operates in (e.g. .). | |
| RECEIPT_GATE_LEDGER | No | Path to the append-only, hash-chained ledger file used by the MCP server (e.g. ./ledger.jsonl). Grants and open promises are read back from the ledger, so debts survive a restart. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
A promise names one observable future state and the adapter that will check it, before anything is done. Calling claim_done is held every time: a tool call by the holder is a report by the holder. Call settle instead — it runs the adapter the promise named and returns what the adapter saw, with the exact gap when it did not match.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| open_promiseA | Record one observable future state, the authority needed for it, what may not change while acting, and the adapter that will check it. The adapter's own parameters are fixed here and written to the ledger, so the reading cannot be redirected afterwards. A promise no adapter can answer is refused at this point. |
| request_capabilityB | Ask for one action inside the promise. Granted for a single call, or refused with the exact boundary that refused it — the authority it falls outside, or the damage-ceiling rule it would cross. |
| record_actionA | Record that a granted action was taken. A token is good for one call; a second use is refused against the ledger. |
| claim_doneC | Say the promise is finished. Held every time: a tool call by the holder is a report by the holder. The reply names the adapter that can answer instead. Call settle to have it read. |
| settleA | Run the adapter the promise named and put what it saw beside what was promised. A match settles the promise and returns the escrowed rights. Anything else is kept as a remainder: the exact gap, what can no longer be treated as done, the authority still available, and who may accept, cancel, hand over or change it. |
| cancel_by_ownerB | The result owner releases the promise, naming a version. This is a terminal state of its own and stands apart from a failed fulfilment. |
| impossible_in_scopeC | Keep a receipt of impossibility together with the authority boundary that made it impossible. A terminal state of its own, standing apart from a false success. |
| hand_overC | Pass the remainder on under a new promise linked to the earlier imprint. Taking a remainder makes nobody the author of the earlier promise, and handed over is not fulfilled. |
| open_debtsC | The promises a deal still holds, read from the ledger. |
| verify_ledgerA | Walk the hash chain and report whether it is intact. A break names which of the three it is: a gap in the sequence, a broken link, or an edited record. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools have clearly distinct targets: open_promise, record_action, open_debts, and verify_ledger do not overlap. The main friction is the claim_done/settle pair, where claim_done is deliberately a no-op that redirects to settle, and the three terminal states (cancel_by_owner, impossible_in_scope, hand_over) require careful reading to separate, though their descriptions do distinguish them.
Nearly all tools use snake_case with a verb-object shape (request_capability, open_promise, record_action, cancel_by_owner, verify_ledger). Settle is a bare verb and impossible_in_scope is an adjective phrase, which are minor deviations, and 'open' means different things in open_promise vs open_debts.
Ten tools is well within the ideal band and each maps to a distinct phase of the promise lifecycle: request, open, act, report, settle, cancel, fail, hand over, list, audit. No filler tools and no obvious need to split or merge.
The lifecycle is well covered from capability request through settlement, cancellation, impossibility, handover, and hash-chain audit. The gap is read-side: there is no get_promise or get_remainder to inspect a single promise, its actions, or a remainder's details outside of a settle reply, and open_debts is scoped only to a deal.