Evidence layer for agent commerce: signed receipts, verification, dispute evidence envelopes.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Tersign is the evidence layer for the agent economy β a neutral, counter-signed, hash-chained ledger for agent commerce. Sellers sign EIP-712 receipts; Tersign chains them per seller and counter-signs every entry. When the dispute comes, the transcript is already sealed.
Venues rotate. The transcript endures.
No account. No API key. This is the genesis receipt, seq 1 on the production chain:
npx tersign verify <receipt.json | 0xdigest> [--ledger url] recovers the EIP-712 signature locally. A bare digest is then checked against the Tersign ledger unless --ledger names another; a receipt file verifies offline and touches no chain at all. The ledger consulted is always printed. Prefer raw HTTP? The same proof, no CLI:
Counter-signed evidence that your agent presented a disclosure β one command, no account:
The text is digested locally (only the digest travels β data-minimization by construction). Your key signs the record; the ledger counter-signs it into a per-signer hash chain whose head is submitted for Bitcoin anchoring on a six-hourly cron. First call self-provisions a free signer-keyed account bound set-once to your key (key resolution: TERSIGN_SELLER_KEY env β macOS keychain tersign-signer β ~/.tersign/signer.key, created on first use). Free tier is quota- and rate-limited β limits. What this is: independently verifiable evidence the disclosure was attested at that time. What it is not: a compliance certification.
Every entry takes the same path: the seller signs the receipt (EIP-712, x402 offer-receipt extension) β Tersign computes the keccak256 canonical digest β the digest joins that seller's hash chain, each seq n bound to seq nβ1 β the neutral ledger counter-signs (secp256k1) β anyone verifies, and any venue gets a serialized envelope.
Since 2026-08-28 each anchor stamps a chain commitment β an accumulator over every counter-signed link β so one anchored digest covers the whole prefix; rows anchored earlier bind the head record only and say so (subjectSchema).
Diagram renders on GitHub. On npm, the paragraph above IS the diagram.
Refunds chain back to the original receipt via refundOf. Disputes attach to the digest with objective reason codes. Party statements are structurally segregated behind an UNVERIFIED marker β the evidence stays prompt-injection-hardened.
withAssure() wraps your x402 fetch handler so every paid call issues a signed, chained receipt. The full register:
| Capability | In the record |
|---|---|
| Receipts | Seller-signed EIP-712 (x402 offer-receipt extension), keccak256 canonical digests |
withAssure() | x402 fetch-handler adapter β a receipt per paid call |
| Compliance exports | EU Art-226b minimal tier Β· EN 16931 full tier Β· HK IRO s.51C retention |
| Action records | ActionRecordV1 β GDPR-minimized; captures the content of an Art-50 disclosure so the disclosure itself is independently attested, not self-reported |
| Refunds | Chained to the original receipt via refundOf |
| Disputes v0 | Objective reason codes, evidence submission, adjudication |
| Venue envelopes | Internet Court (5,000-char slot) Β· Kleros ERC-1497 Β· UMA Β· generic |
| Evidence packs | format=art50 Β· format=safr (beta) |
| Idempotency | In-memory + Cloudflare D1 stores |
tersign intercept | Audit capture at the MCP boundary β a signed, digest-only action record per tool call (experimental) |
tersign interceptAn agent's tool calls are usually recorded, if at all, by the party running the agent. Put a recording clamp on the wire instead:
The proxy is a pure observer: bytes reach the server and the client exactly as sent, in
order, unmodified. Every tools/call it sees becomes an ActionRecordV1 signed by your key
and counter-signed into a hash chain β digests only, so the record proves what happened
without carrying arguments or results anywhere. Records go to a configured ledger, and fall
back to a local ~/.tersign/intercepts-<date>.jsonl so evidence is never silently dropped.
Experimental, and deliberately unopinionated about where the protocol lands: it implements the observation semantics of the audit-mode validator described in MCP SEP-2624 (Draft) as a transport-level proxy today, and is structured to move onto the interceptor primitive if and when that stabilizes. It makes no conformance claim to that draft.
npx tersign starts the MCP server (stdio). Official registry entry: io.github.tersignhq/evidence (active).
Tools β issue_receipt Β· verify_receipt Β· verify_compliance_record Β· record_disclosure Β· record_refund Β· open_dispute Β· submit_dispute_evidence Β· adjudicate_dispute Β· get_dispute
| Env var | Required | Purpose |
|---|---|---|
TERSIGN_SELLER_KEY | yes | 0x-prefixed private key that signs your receipts and records |
TERSIGN_LEDGER_URL | no | hosted ledger for counter-signing + chain checks |
TERSIGN_LEDGER_API_KEY | no | your seller API key on that ledger |
TERSIGN_LEDGER_SELLER_ID | no | your seller id on that ledger |
TERSIGN_ISSUER_NAME | no | issuer name stamped on action records |
TERSIGN_ISSUER_JURISDICTION | no | issuer jurisdiction stamped on action records |
Cold to counter-signed in one session: call issue_receipt, then check the issued receipt's digest with npx tersign verify <digest> --ledger <url>.
The agent skill tersign-evidence ships at tersignhq/skills.
compliance-fields extension β a typed compliance-record schema plus four evaluator-side disqualifications (independence, completeness/existence, economic-phase separation, and commitment scope β an independence claim reaches exactly as far as the record's own commitments), each executable as a two-sided conformance vector β is under review upstream (x402-foundation/x402#2853) and referenced in the x402 TSC's evidence-record charter agenda (tsc#4). The merged offer-receipt spec already carries post-session verification guidance β signer authorization evaluated as of issuedAt, with mutable-source rotation handled explicitly (#2811, merged); the completeness, independence, existence and phase disqualifications are the open extension's normative core.Full URLs, readable without auth. If you are an agent, start here.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/evidence)<a href="https://allmcps.com/mcp/evidence"><img src="https://allmcps.com/api/badge/evidence?style=directory" alt="Evidence on AllMCPs" /></a>