sdcreceipt-mcp
OfficialThis server does one thing: verify a VSL Settlement Receipt offline, using keys the caller supplies.
verify_receipt— runs every check on a Receipt (receipt_hash, issuer signatures over the canonical digest, per-party trigger signatures, one trigger per party,settlement.complete) and reports all results, passing and failing, instead of stopping at the first failure.No network, no account — issuer key document is passed in by the caller, so verification never fetches a key and cannot be redirected by the document under test.
Issuer keys accepted as either a key-set document (
keysarray) or adid:webDID document; key windows and revoked/retired status are applied as in the CLI.Optional
party_keys— checks trigger signatures; if omitted the trigger check is skipped and the result statessettlement.completeis unestablished (Receipt won't verify), rather than passing onkey_idstrings.Optional
governance_receipt— checks the governance binding when you hold it.Not available here:
sign_trigger,settle, key generation, submission, and chain following (--chainhas no parameter in this schema), so earlier Receipts in a chain cannot be walked through this server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sdcreceipt-mcp verify the receipt in receipt.json against issuer-keys.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
sdcreceipt
Verify and settle VSL Settlement Receipts.
Verification needs no account, no network, and nothing from the issuer. That is the point of the tool: a claim that anyone can check a Receipt independently is worth exactly as much as the ability to do it.
Apache-2.0.
pip install sdcreceiptFour verbs
# Check a Receipt you were sent. Offline.
sdcreceipt verify receipt.json --issuer-keys issuer-keys.json --party-keys party-keys.json
# Set yourself up as a party: keypair + the document to publish.
sdcreceipt init --key-id https://vendor.example/.well-known/vsl-key.json
# Authorize a settlement you are a party to.
sdcreceipt trigger receipt.json --key vsl-party.pem \
--key-id https://vendor.example/.well-known/vsl-key.json
# Ask an issuer for a Receipt. The one verb that needs an account.
sdcreceipt settle payload.xml \
--party https://vendor.example/.well-known/vsl-key.json \
--party did:web:partner.examplesettle prompts for anything it needs and was not given, except current_state,
which defaults to the payload's own <current-state>. It writes the Receipt to
--out (or stdout), ready for verify and trigger; --response FILE also keeps
the issuer's whole answer (the governance decision and the charge). A DENY is
issued and signed but accepts no triggers, and settle says so. Two of its fields are
not guessable and never were: the release condition is hashed by the issuer and
never stored, and current_state/target_state come from a governance workflow
defined in a schema the issuer holds, not you.
If the issuer refuses the transition it answers with the ones it would have
accepted, and settle prints them:
Governance evaluation produced no Receipt. Decision was DENY
From 'draft' you can go to: review
This model's workflow:
standard: draft -> review -> publishedIt exits 2 there, and 1 on a real failure, so a script can tell "ask again differently" from "something is broken".
verify exits 0 only if every check passed, so it composes in a shell without
anyone parsing output.
That is the whole surface. This is a client, not a product, and its value is in being small enough to read.
A Settlement Condition as the release condition
When the condition is a Settlement Condition record (the Business Documents library), the holder of what is released
(an escrow contract, a title registry, a bank) pins condition_hash when it takes custody. Every party has to derive
the same hash from the record, so the projection is fixed (sdc-settlement-condition/1, specified in
sdcreceipt/condition.py):
sdcvalidate dm-bbkd5gtq1lc3h8l829enszax.xsd settlement-condition.xml # validate first (sdcvalidator)
sdcreceipt condition settlement-condition.xml --cluster eid1kx2nx04u3okbo18vqrks --out condition.json
sdcreceipt settle payload.xml --condition-file condition.json --party ... --party ...condition prints the hash and does not validate. The published model's schema is what requires the nonce, the
lapse and the identifiers of the target's kind, and refuses a target a holder could read two ways.
Related MCP server: agent-receipts-mcp
Try it without reading anything
python examples/settle.pyOne settlement end to end: two parties, two signatures, verified offline. No
account, no network, no API key. See examples/.
For an agent
Three of the four verbs over MCP, in the same package:
sdcreceipt-mcp --key vsl-party.pem \
--key-id https://vendor.example/.well-known/vsl-key.jsonExposes verify_receipt, sign_trigger and settle. Each is advertised only
when the server has what it needs, so a tool is never offered whose every call
would fail.
verify_receipt runs the same procedure as the command line, key windows included. party_keys takes one key
document or an array of them, one per party, and chain takes the earlier Receipts you hold, as --chain does.
The result names what did not run: trigger_signatures_checked and chain_checked.
Two deliberate omissions, and they are the security posture rather than an oversight (see also SECURITY.md):
No key generation. A private key generated inside an agent session has no clear custody story.
initstays a human act at a terminal.No submission.
sign_triggerreturns a signed trigger for you to submit. Submitting takes a destination from the caller, and a signed trigger plus an arbitrary host is the combination worth refusing.
settle is available when the server is started with --endpoint and a token,
and it is the only tool that reaches the network. The endpoint is fixed at
start-up exactly like the key, so a caller can never redirect where a payload
goes. No tool takes a URL, and that is the invariant to keep if this ever
grows another one.
The signing key is given at start-up, never in a tool call, so it does not travel through the conversation.
Also listed on mcprush.
If you were sent a Receipt
You do not need an account with anyone. You need the issuer's published key document and, for a settled Receipt, each party's. The Receipt names the parties by the URIs they publish their keys at; the issuer's key document is at a fixed well-known path.
pip install sdcreceipt
curl -o receipt.json https://sdcstudio.axius-sdc.com/api/v1/vsl/receipt/<receipt id> # or the file you were sent
curl -O https://sdcstudio.axius-sdc.com/.well-known/sdcstudio-signing-keys.json
curl -o vendor-keys.json https://vendor.example/.well-known/vsl-key.json
curl -o partner-keys.json https://partner.example/.well-known/did.json
sdcreceipt verify receipt.json --issuer-keys sdcstudio-signing-keys.json \
--party-keys vendor-keys.json --party-keys partner-keys.jsonThe issuer's document checks the issuer's signatures; each party's document checks only that party's trigger.
The roles come from your command line, never from the Receipt, and a key_id that two documents claim is refused.
Since 4.3.3 the old --keys flag is refused: it pooled every document, which let a party's own document supply
an issuer key (GHSA-gwhr-82j5-883w).
Key windows. The issuer's key document publishes not_before and not_after for every key it has used. Each
issuer signature must fall inside its key's window, not_before <= timestamp < not_after, compared with the
Receipt's own signed timestamp. A retired key inside its window still verifies, so a rotation never breaks the
Receipts a key signed; a revoked key fails whatever its window says. A party key whose not_after is at or
before the Receipt's timestamp fails its trigger. A window bound not written as RFC 3339 UTC ending in Z refuses
the document. Since 4.4.0, always on.
Chains. A Receipt's previous_hash names the Receipt before it. Give the folder of earlier Receipts you hold
with --chain, and verify follows previous_hash back to the head and runs every check on every Receipt on the
way:
sdcreceipt verify receipt.json --issuer-keys sdcstudio-signing-keys.json \
--party-keys vendor-keys.json --party-keys partner-keys.json --chain receipts/Earlier Receipts are found by the hash verify computes, never the one a file records, and are never fetched.
Checks on earlier Receipts are prefixed chain.link[<n> <first 8 of previous_hash>…], and the walk ends with
chain.head. A missing link, two different files with one hash, or an earlier Receipt that was never fully
triggered means NOT VERIFIED (exit 1). The names follow the VSL conformance kit 1.2.
After the checks, verify lists what VERIFIED does not cover: trigger timestamps are not signed (so a party key's
not_before is not judged), the chain is not followed without --chain, and the payload and governance Receipt
are checked only if you pass them, for the Receipt named.
Every check is reported, not just the first failure:
PASS receipt_hash: matches the canonical content
PASS signature[sdcstudio-signing-key-v1]: verifies over receipt_hash (ES256)
PASS signature[sdcstudio-pq-signing-key-v1]: verifies over receipt_hash (ML-DSA-65)
PASS signatures.algorithms: carries every signature version 1.1 requires (ES256, ML-DSA-65)
PASS trigger[https://vendor.example/.well-known/vsl-key.json]: verifies over {condition_hash, receipt_id}
PASS trigger[did:web:partner.example]: verifies over {condition_hash, receipt_id}
PASS triggers.unique: one trigger per party
PASS settlement.complete: every listed party has triggered
VERIFIEDWith only the issuer's document, the issuer signature and the hashes are
checked and settlement.complete is recorded as unestablished, so the Receipt
does not verify: whether every party triggered is a claim about
authorization, and no trigger signature was checked. That is the correct
answer, not a defect. Pass --schema settlement-receipt-1.0.schema.json (or
-1.1, matching the Receipt's version) as well to check the shape first
(pip install 'sdcreceipt[schema]').
Receipt 1.1 (since 4.3.0) is 1.0 signed twice: an ES256 and an
ML-DSA-65 (FIPS 204, post-quantum) signature by the issuer over the same
32-byte digest. Every listed signature must verify, and a Receipt that says
1.1 must carry both; a 1.0 Receipt keeps verifying exactly as before. The
issuer's key document lists both keys, each with its alg. ML-DSA-65
verification comes from cryptography 48 or later, which this tool requires.
A Receipt carries hash commitments, never the payload. So verification tells you a conformant, authorized, dual-triggered exchange occurred, without anyone having to disclose what was exchanged. If you also hold the payload or the governance Receipt, pass them and those get checked too:
sdcreceipt verify receipt.json --issuer-keys issuer-keys.json --party-keys party-keys.json \
--payload manifest.xml --governance governance-receipt.jsonIf you need to become a party
A settlement identifies each party by a key_id that you control. That is
deliberate: it means verifying your signature does not route through the
issuer, so nobody has to stay alive for your old signatures to keep meaning
something.
sdcreceipt init --key-id https://vendor.example/.well-known/vsl-key.jsonThat writes a private key (mode 0600) and a key document, and tells you the
exact URL the document must be reachable at. Publishing one JSON file is the
whole onboarding requirement.
The key document states the key's window: not_before is when init made it, and not_after is null while you
use it. A verifier fails any trigger whose key's not_after is at or before the Receipt's timestamp.
Changing keys. Run init again with a new key_id (a new URL, for example .../vsl-key-2.json) and give the
new key_id for new settlements. In the old document, set the old key's status to retired and not_after to
the moment you stopped using it, and keep it published: Receipts you triggered before then still verify against
it, and nothing newer can. Never remove a key that has triggered a settlement. If the private key leaked, set
status to revoked instead: every trigger it made then fails, whatever its window says.
Then, when you are sent a Receipt to authorize:
sdcreceipt trigger receipt.json --key vsl-party.pem --key-id <your key_id>It prints a signed trigger and stops. Signing is inert; submitting is a side
effect, so you send it yourself, or add --submit <url>.
★ Never take the verification key from the document
The set of keys you will accept is decided before you read the document, and the document cannot change it.
ds:RetrievalMethod in XML-Signature, jku and x5u in JOSE, and their
equivalents elsewhere all say "here is where my key lives." That pointer was
written by whoever produced the document, so following it asks the document to
nominate the key that will judge it. A forged document nominates the forger's
key and verification "succeeds."
The failure is quiet. A pointer can name a domain that was correct when the document was signed and has since lapsed; anyone who registers it can serve a key at that path, and nothing about the document looks wrong — because nothing about it is wrong. The verifier was asked where to look and did as it was told.
This tool cannot make that mistake: verify takes keys as arguments and has
no code path that fetches one. That is a security property, not an
inconvenience.
The same applies to party keys, with a corollary rather than an exemption.
Those key_ids are URIs the counterparty controls, deliberately. Resolve
them over HTTPS only, only for identifiers already recorded in a Receipt you
trust, and keep a copy — a party who later loses a domain must not be able to
change what their old signatures mean.
Supply them, too. Party keys are optional in the sense that the issuer
signature and the payload hash can be checked without them, and not in the
sense that a settled Receipt means anything without them. Whether every party
triggered is a claim about authorization, so with no key to check a signature
against, settlement.complete is recorded as unestablished rather than passed
and the Receipt does not verify. Before 4.2.1 it passed on a comparison of
key_id strings alone, which reported VERIFIED over fabricated triggers.
Conformance
tests/conformance/ ships the issuer's published vectors, and the suite runs
this implementation against them.
Kit 1.2: twenty-seven vectors and five key-document cases. Seventeen check one Receipt, at 1.0 or 1.1 (each
against the schema its own version names); six check chains, with the held earlier Receipts the vector lists;
four check key windows, with published key documents. The chain and window vectors also run through the command
line and the MCP tool. Every invalid one encodes a defect that was actually made,
not a hypothetical: a DER signature where ES256 requires P1363, a signature
over the hex text of receipt_hash rather than its raw bytes, a governance
binding that does not match the evidence held, a trigger replayed from another
Receipt sharing the same release condition, and so on. Failing one for the
wrong reason does not count: the manifest names the check that must break.
pytestOn independence, honestly. Passing these vectors shows this tool agrees with the issuer's published expectations, and that it never drifted from them. It is not an independent re-derivation: this implementation and the issuer's share design and history. The vectors are most valuable to someone writing a verifier from the specification alone, which is what they are published for.
The canonicalization underneath them is a different case, and it has been
checked against an independent implementation. Every hash in a Receipt is
taken over RFC 8785 canonical bytes, so agreement on canonicalization is what
the rest of the verification rests on. In September 2026 that agreement was
tested in both directions with the MTCP project (Ahmad Abby), which implements
RFC 8785 using Trail of Bits rfc8785 rather than sdcgovernance:
MTCP's five published vectors were run against
sdcgovernance.jcs. Byte-for-byte agreement on the canonical string and on SHA-256, for every vector. The set is a clean regeneration published 9 September 2026, carrying synthetic values in the real schema:audit_record,evaluation_summary,score_record,sensor_calibrationandarabic_content. It supersedes the four-vector set of 1 September, and the field carrying the canonical form was renamed fromcanonical_hextooutput, so a runner written against the earlier set needs updating.The 21 vectors in
sdcgovernance/test-vectors/rfc8785-canonicalization.jsonwere run against MTCP's implementation. Zero disagreements, including the edge set: negative zero, subnormals, the 1e21 fixed-to-exponential boundary, C0 controls as lowercase\u00xx, unescaped solidus, an astral-plane character, and key ordering across a UTF-16 surrogate pair.MTCP publishes a conformance run of 19 pure RFC 8785 tests against the cyberphone Appendix G reference vectors: the six official vectors plus hex verification, ten hard-error rejections (NaN, infinities, integers beyond 2^53, non-JSON types), a number-formatting case, an integer boundary case, and a Node.js differential over 2011 IEEE-754 patterns with zero disagreements.
Both sides ran a Node.js differential independently, so the number formatting
is checked against the JS engine rather than reimplemented. RFC 8785 §3.2.2.3
adopts ECMAScript Number::toString verbatim, which makes the engine the
reference for the part that actually goes wrong. Three implementations across
two languages, no disagreements. That is not a claim either project could make
about itself, and it is the reason to prefer it over a second opinion from the
same lineage.
It does not make the Receipt vectors above independent. It means that when they disagree with your implementation, the disagreement is about the Receipt rules and not about the bytes underneath them.
Building your own
You do not have to use this tool, and the specification does not depend on it. If you are writing a verifier:
Do not write a second canonicalizer. Use sdcgovernance or another
conformant RFC 8785 implementation. A second implementation can disagree with
the first, and the disagreement is silent: the bytes differ, so the hash
differs, and the artifact reads as tampered with rather than misencoded. This
tool re-exports sdcgovernance.jcs for exactly that reason and adds nothing.
Refuse rather than guess. Integers beyond ±(2⁵³−1) cannot round-trip
through an IEEE 754 double, and NaN/Infinity have no JSON representation.
Emitting something for those produces a hash that looks fine and fails only in
someone else's verifier.
Report every check. Stopping at the first failure hides the case that matters most: a Receipt whose signature verifies but whose governance binding does not.
Check the curve. A signature verified against a key on an unexpected curve proves nothing about the party you believe signed.
Versioning
MAJOR tracks the SDC reference model, so a 4.x.x release targets SDC4.
It starts at 4 rather than 0 because of that convention, not because there
were three earlier versions. MINOR is features, PATCH is fixes. An SDC5
reference model would make this 5.x.x.
The same scheme is used by sdcvalidator, sdcgovernance and the rest of the
family, so a version number tells you which reference model an artifact
targets without looking anything up.
Note that the Receipt format version is separate and independent: a
Receipt says "version": "1.0" or "1.1", which is the wire format, not this
package. 4.3.0 is the first release that verifies 1.1; an earlier release
refuses it by its version rather than guessing, as the format requires.
Dependencies
Python 3.10 or later.
Two direct dependencies, both Apache-2.0-compatible libraries:
sdcgovernance (pinned >=4.2.0,<5) for RFC 8785 canonicalization, and
cryptography for ECDSA. jsonschema is optional and only needed for
--schema. A clean pip install sdcreceipt resolves those two plus their own
dependencies, about fourteen packages in all; pip install --report lists the
exact set for your platform.
These are library dependencies. Nothing here calls a service, and
verify makes no network request at all. settle and trigger --submit
refuse any endpoint that is not https://, except loopback for a local issuer.
Security
See SECURITY.md for how to report a vulnerability, the supported versions, and what this tool does and does not protect against.
Available Tools
1 toolverify_receiptA
Verify a VSL Settlement Receipt. Runs every check and reports all of them, including the ones that passed, rather than stopping at the first failure. Requires no network and no account: the issuer key document is supplied by the caller. Use this to decide whether a Receipt you were sent is trustworthy before acting on it.
Inputs: receipt (required), issuer_keys (required), party_keys, governance_receipt.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusing it with another tool. Its purpose (verify a VSL Settlement Receipt) is stated clearly and unambiguously.
The lone tool follows a clean verb_noun snake_case convention (verify_receipt), which is the idiomatic form for MCP tools. No naming conflicts or mixed conventions exist.
A single tool is thin even for a narrow domain; there is no way to run individual checks, fetch issuer keys, or introspect the verification process. It is defensible for a focused verifier but leaves no granularity for callers.
The tool covers the core lifecycle of the stated purpose (full verification reporting all checks, including passes), so the main workflow has no dead end. Minor gaps remain, such as discovering issuer keys or running a subset of checks, but the caller-supplied key document mitigates the biggest one.
Maintenance
Related MCP Connectors
Issue signed receipts for AI agent actions; verify any receipt offline - free, no account.
Post-quantum, tamper-evident receipts for agent actions. Ed25519 + ML-DSA-65, offline verify.
Paid agent work and paid verification, settled in USDC. Verified outcomes get signed receipts.
Verify signed proof-of-work receipts and issuer standing for AI agents, plus a hosted Private Log.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables querying and verifying signed receipts of static inspections of public agent skills via read-only tools such as search_receipts, get_receipt, and get_verification_material.1-
- AlicenseAqualityCmaintenanceProvides tools to issue, verify, and export cryptographically signed receipts for AI agent actions, enabling tamper-proof audit trails for compliance with regulations like the EU AI Act.454 npm1MIT

vantic-mcpofficial
AlicenseNot gradedqualityDmaintenanceEnables MCP hosts to verify agent spending mandates and receipts, providing stateless tools for authorization, chain verification, credential verification, and DID resolution.Apache 2.0- AlicenseNot gradedqualityBmaintenanceIssue and verify signed receipts for agent actions, enabling durable, independently checkable proof of policy decisions. Supports offline verification via get_keyset and verify_receipt tools without an account.0Inno Setup