@sequesign/mcp
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., "@@sequesign/mcp Start a session to record my approval for the quarterly report, then finalize."
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.
@sequesign/mcp
A Model Context Protocol server for Sequesign — let an MCP-capable agent produce a cryptographically verifiable receipt of its own delegated work, then verify it offline.
It is a thin local-stdio wrapper over @sequesign/sdk. The
agent's signing key never leaves the machine: in direct mode the SDK signs each
action locally and the hosted witness only co-signs a hash.
Tools
Tool | What it does |
| Open a recording session (one signed action chain). Returns a |
| Append a signed action to the chain. |
| Attach a locally signed approval for a recorded action (e.g. a human or agent reviewer signing off). |
| Attach a counterparty's signed confirmation of a recorded action (e.g. a vendor confirming an amount). The SDK derives the content binding from the attested action. |
| Attach an independently-witnessed approval to an already-sealed receipt (a deferred satellite). For a reviewer — human or another agent — signing off after the fact. The approver must be distinct from the recording agent. |
| Attach an independently-witnessed counterparty confirmation to an already-sealed receipt (a deferred satellite), bound to a specific action. |
| Seal + witness the receipt and run the SDK's own verification. Closes the session. |
| Verify a sealed receipt offline. Three modes: integrity self-check of the local package (default); third-party |
Choosing a mode per session
The server default is SEQUESIGN_MODE, but sequesign_start_session accepts a
mode argument (direct or managed) so one running server can do both
without editing config. A mode: "managed" session still requires the managed
secrets (SEQUESIGN_API_KEY + SEQUESIGN_AGENT_PRIVATE_KEY); the call fails
fast if they're absent.
Verifying the stored (registered-identity) receipt
In managed mode the broker stamps the registered agent_identity_attestation
into the stored receipt, not the local envelope — so a local verify reads
self_asserted. Pass the receipt_url from finalize as receiptUrl to
sequesign_verify: it fetches the stored receipt (using SEQUESIGN_API_KEY),
verifies it against your local package, and auto-fetches the published witness
and registration anchors, so the result shows external trust and the
registered identity.
Multi-party / deferred attestation (after sealing)
sequesign_approve_receipt and sequesign_countersign_receipt attest to a
receipt that's already finalized, without modifying it. Each produces a
detached satellite that's bound to the sealed receipt by hash, independently
witnessed at its own time, and written to the package's attestations.jsonl
sidecar; the verifier folds a valid satellite into the same approval/counterparty
leg as an in-receipt one. They take the sealed packageDirectory (not a live
session), so a different party — even a different model on a different machine,
as long as it has the package — can approve or countersign later. This is the
basis for a multi-party flow: one agent records and seals the work, a second
party approves it, a third confirms it — three independent, timestamped
signatures on one receipt.
Binding to the registered (stored) receipt. By default a satellite binds to
the local receipt.json. In managed mode the broker-stored copy carries the
registered agent_identity_attestation (a different hash), so pass the
receipt_url as receiptUrl to approve_receipt / countersign_receipt:
the tool fetches the stored receipt (authenticated, origin-allowlisted) and
binds the satellite to it. A later sequesign_verify --receiptUrl then shows
the registered identity AND the folded approval/counterparty legs on one
receipt. Set the satellite's mode to match how the receipt was sealed.
Convergence note (cross-platform). The broker does not store satellites
— a sealed satellite is appended to the local package's attestations.jsonl.
So for parties on different machines/platforms to converge on one verifiable
receipt, the .sequesign package must travel between them (an orchestrator
moves it, each appends its satellite). Independent submission with server-side
satellite storage is a future broker capability.
Vouching (verified parties)
sequesign_record_approval and sequesign_record_counterparty_attestation
mint an ephemeral key when you don't pass one, so the leg verifies as
present_unverified. To get a present_verified (vouched) leg, enroll the
party's key with the platform first and pass both the enrolled private key PEM
and the returned identityProofRef. Then sequesign_verify flips the leg to
present_verified when given the platform's published registration keys.
Related MCP server: agent-receipts-mcp
Configuration
All configuration is via environment variables:
Variable | Default | Notes |
|
| Default transport: |
|
| Direct-mode witness. |
|
| Managed-mode broker. |
|
| Source of the published registration keys for the |
|
| Receipt-store origin. The API key is forwarded only to this or the broker origin when fetching a |
| — | Required in managed mode (write-class key). In direct mode it's passed to the witness too — the hosted witness authenticates the signing POST, so direct mode needs it unless you point |
|
| Managed tier: |
| — | Ed25519 PKCS#8 PEM for the agent key. In direct mode, if unset a fresh ephemeral key is minted per session (identity reads |
|
| Where receipt packages are written. |
Sessions are held in memory for the life of the process. A
sessionIddoes not survive a server restart orsequesign_finalize.
Install
As a Claude Desktop Extension (.mcpb) — recommended
The one-click path: download sequesign.mcpb from the
GitHub releases and open it
with Claude Desktop (Settings → Extensions → install from file). Desktop renders
a setup form from the manifest's user_config; fill in:
Field | Notes |
Mode |
|
API key | Your write-class key. Required for |
Agent private key (PEM) | Ed25519 PKCS#8 PEM. Required in |
Receipt package directory | Where sealed packages are written. Blank → a temp directory. |
Secrets go to the OS keychain (never the manifest), and blank optional fields
fall back to their defaults. The bundle is self-contained — no npm/node
project setup required. Where do the API key and agent key come from? See
Getting your keys below.
Building the .mcpb from source:
npm run build:mcpb -w @sequesign/mcp
# → packages/sequesign-mcp/sequesign.mcpb (+ the staged mcpb-dist/ directory)The build bundles the server and all dependencies into a single file with
esbuild and copies the protocol registry/schemas/profiles next to it, then packs
and validates via @anthropic-ai/mcpb. Attach the resulting .mcpb (and its
printed SHA-256) to a GitHub release.
Releasing to npm and the official MCP registry is automated — see PUBLISHING.md.
Via npm
For non-Desktop MCP clients (or if you prefer managing config yourself), install from npm and configure via environment variables — see Usage below.
Getting your keys (and which identity you get)
The two secrets — your API key and your agent private key — come from the Sequesign dashboard's Create-API-key flow. The key you use in managed mode must be the one registered to your API key.
Managed mode — registered identity
Create an API key in the dashboard (Settings → API keys → Create key). Registration is off by default, so you must opt in:
Enable "Register this key with an agent public key" (the checkbox in the create dialog — it's unchecked by default; without it you get a plain API key and no private-key PEM, which is not enough for managed mode).
Choose "Generate keypair (recommended)". The dashboard then generates an Ed25519 keypair in your browser (the private key never reaches our servers), registers the public key to your account (the platform signs a registration record bound to its fingerprint), and shows you the private-key PEM once — download it then.
Copy the API key and that private-key PEM.
Paste both into the setup form (or set SEQUESIGN_API_KEY and
SEQUESIGN_AGENT_PRIVATE_KEY). Reuse them across installs and machines — you do
not make a new key each time.
Bring your own key (advanced). Instead of "Generate keypair", you can pick "Bring your own public key (advanced)" and paste the public PEM of a key you generated yourself (e.g. in an HSM). You hold the private key; the platform records the public half. Fully supported in managed mode.
The broker accepts only the agent key your API key is registered to — whether the dashboard generated it or you brought your own. An unregistered key (generated locally and never registered) is rejected (
agent_public_key_not_registered). That's the rule: the key must be on file against your API key, and that binding happens at API-key creation.
Verifying the broker-stored receipt then shows a registered agent identity
(see the receiptUrl verify path below).
Direct mode — self-asserted identity
Direct mode has no account and no registration. The agent key only proves continuity (the same signer produced these receipts), not a platform-vouched identity. Two choices:
Leave the key blank → the server mints a fresh ephemeral key per session. Good for quick, one-off, anonymous-but-verifiable receipts; each receipt has a different
self_assertedkey.Paste a fixed PEM → one stable identity reused across sessions. Any Ed25519 PKCS#8 PEM works (e.g. the one the dashboard can generate for you, or
openssl genpkey -algorithm ed25519). It staysself_assertedunless that key is the one registered to yourSEQUESIGN_API_KEY: in that case the witness (which authenticates the same key) confirms the match and the receipt verifies as a registered identity — direct signing and a registered identity. (The witness also rejects signing under a key that isn't the one registered to your API key, so an API key can't mint receipts under an unregistered key.)
Usage
Add it to an MCP client (e.g. Claude Desktop) as a stdio server:
{
"mcpServers": {
"sequesign": {
"command": "npx",
"args": ["-y", "@sequesign/mcp"],
"env": {
"SEQUESIGN_MODE": "direct"
}
}
}
}Or run it directly:
npm install -g @sequesign/mcp
sequesign-mcpExample prompts
Drop these into any MCP-capable agent (Claude Desktop, etc.) once the server is configured. They're written the way you'd actually ask — the agent picks the tools.
1. Record and seal a single piece of work, then verify it.
Using Sequesign, open a session for task
q3-refund-reviewdelegated byops@acme.example, record an actionrefund_approvedwith the evidence{ "invoice": "INV-2231", "amount_usd": 480, "reason": "duplicate charge" }, then finalize the receipt and verify it. Tell me the package directory and whether it verified.
Exercises start_session → record_action → finalize → verify (the local
integrity self-check).
2. Multi-party: one agent records, two others attest after the fact.
The receipt at
<packageDirectory>is already sealed. Have Sequesign attach an approval to it ascfo@acme.example(a human reviewer), then attach a counterparty confirmation asvendor-globexfor therefund_approvedaction with purposerefund_amount_confirmation. Then verify the package and show me the approval and counterparty legs.
Exercises approve_receipt and countersign_receipt (deferred satellites bound
to an already-finalized receipt), then verify. A different party — even a
different model on another machine that has the package — can run these.
3. Verify the broker-stored, registered-identity copy (managed mode).
I finalized a managed-mode receipt; its
receipt_urlis<receipt_url>and the local package is at<packageDirectory>. Use Sequesign to verify the stored receipt against my package and tell me whether it shows external trust and a registered agent identity.
Exercises verify with receiptUrl — fetches the authoritative stored
envelope (carrying the registered agent_identity_attestation), auto-fetches
the published witness + registration anchors, and reports external trust plus
the registered identity.
Example flow
sequesign_start_session→{ taskId, delegatorId, policyContext }→ returnssessionId.sequesign_record_action→{ sessionId, actionType, evidence }→ returnsactionId.(optional)
sequesign_record_counterparty_attestation→{ sessionId, counterpartyId, attestedActionId, attestationPurpose }.(optional)
sequesign_record_approval→{ sessionId, approverId, approvedActionType, approvalContext }.sequesign_finalize→{ sessionId }→ returns the package directory + verification summary.sequesign_verify→{ packageDirectory }→ re-verify offline any time.
License
Apache-2.0
Available Tools
11 toolssequesign_approve_receiptApprove a sealed receipt (deferred satellite)A
Attach an independently-witnessed APPROVAL to an already-finalized receipt, without modifying it. Use this when a reviewer (human or another agent) signs off after the receipt was sealed — e.g. one model approves work another model recorded. The approval is bound to the sealed receipt by hash, witnessed at its own time, and written to the package's attestations sidecar. The approver MUST be distinct from the recording agent. If no approverPrivateKeyPem is given an ephemeral key is minted (present_unverified); pass an enrolled key + identityProofRef to vouch.
Inputs: approverId (required), packageDirectory (required), approvedActionType (required), mode, +5 more.
sequesign_check_actionCheck an action against a templateARead-onlyIdempotent
Pre-flight a single action against a workflow template BEFORE recording it, so you learn a violation up front instead of in the finalized receipt's conformance report. Given a template (profileId), the action type, the session's bound parameters, and optionally the actions already recorded (priorActionTypes) and a draft evidence object, it reports: whether the action is allowed, whether the transition is valid, any parameter-binding errors, the concrete evidence schema for this action (with $param/$allowlist resolved against your params), whether a session can even be started for this template (startable — false for a registry template that cannot be bound under the intended transport: managed mode, or the template declares no usable parameters, uses a non-bundled action, or you did not pass params for its V1 binding — pass mode to model the transport you'll start with); and whether the action is recordable (recordSchemaValid — false when the action type has no registered schema, or supplied evidence does not satisfy that bundled schema). allowed is true only when the template is startable AND the mandate AND the recording gate all pass, so a green pre-flight means the action can actually be recorded. It is advisory and never records anything.
Inputs: profileId (required), actionType (required), mode, params, +2 more.
sequesign_countersign_receiptCountersign a sealed receipt (deferred counterparty satellite)A
Attach an independently-witnessed COUNTERPARTY confirmation to an already-finalized receipt, without modifying it. Use this when a counterparty (e.g. a vendor, or another model acting as one) confirms an action after the receipt was sealed. The confirmation is bound to the sealed receipt + the attested action by hash, witnessed at its own time, and written to the package's attestations sidecar. If no counterpartyPrivateKeyPem is given an ephemeral key is minted (present_unverified); pass an enrolled key + identityProofRef to vouch.
Inputs: counterpartyId (required), attestedActionId (required), packageDirectory (required), attestationPurpose (required), +4 more.
sequesign_finalizeFinalize the receiptA
Seal the session into a verifiable receipt package and run the SDK's own verification. After finalize the sessionId is closed (removed from memory). Returns the package directory (and the stored receipt URL in managed mode) plus a verification summary.
Inputs: sessionId (required).
sequesign_get_templateGet a workflow templateARead-onlyIdempotent
Fetch one workflow template by profile_id (bundled, or from the configured registry): its full profile document (allowed_actions, required_actions, allowed_transitions, parameters, conditional_requirements, required_attestations, and any evidence_schemas), plus its profile_hash, curation tier, source, session_ready, and whether it is author-signed. session_ready reflects the intended transport (the mode argument, else the server's default): a registry template is session_ready only under direct mode. Use this to learn a template's rules before starting a profile_constrained session or before sequesign_check_action.
Inputs: profileId (required), mode.
sequesign_list_templatesList workflow templatesARead-onlyIdempotent
List the Sequesign workflow templates (profiles) available for profile_constrained sessions: the bundled templates (full detail), plus — when a template registry is configured (SEQUESIGN_TEMPLATE_REGISTRY_URL) — templates published to it (manifest-level entries; call sequesign_get_template for a remote template's full detail). Every entry gives the profile_id (pass it to sequesign_start_session), its curation tier (official | verified | community | experimental — discovery metadata, NOT a security control), its source (bundled vs the registry), and details_available (false for remote manifest-level entries). Bundled entries additionally give session_ready (whether start_session can bind AND run it), description, the parameters you must bind, allowed/required actions, and whether the template is author-signed. Optionally filter by tier.
Inputs: tier.
sequesign_record_actionRecord an actionA
Append a signed action to the session's chain. evidence is the structured record of what the agent did or observed; it is hashed and signed. Returns the actionId (use it as attestedActionId for a counterparty attestation).
Inputs: sessionId (required), actionType (required), evidence, metadata, +2 more.
sequesign_record_approvalRecord an approvalA
Attach a signed approval for an action already recorded in this session (e.g. a human or independent agent reviewer signing off). The action being approved must already be recorded. If no approverPrivateKeyPem is given, an ephemeral key is minted and the approval leg stays present_unverified; supply an enrolled key plus identityProofRef to make it a vouched (present_verified) approval.
Inputs: sessionId (required), approverId (required), approvedActionType (required), partyType, +3 more.
sequesign_record_counterparty_attestationRecord a counterparty attestationA
Attach a counterparty's signed confirmation of an action already recorded in this session (e.g. a vendor confirming a corrected invoice total). The SDK derives the content binding from the attested action, so the confirmation cannot be pointed at content the counterparty never saw. If no counterpartyPrivateKeyPem is given, an ephemeral key is minted (present_unverified); supply an enrolled key plus identityProofRef for a vouched (present_verified) attestation.
Inputs: sessionId (required), counterpartyId (required), attestedActionId (required), attestationPurpose (required), +2 more.
sequesign_start_sessionStart a Sequesign sessionA
Open a new receipt-recording session (one signed action chain). Returns a sessionId (the receiptId) used by the other tools. Provide a policyContext object to bind the receipt to a policy (reaches verification level L3_POLICY_BOUND).
Inputs: taskId (required), delegatorId (required), mode, params, +3 more.
sequesign_verifyVerify a receipt packageARead-onlyIdempotent
Verify a sealed Sequesign receipt. Modes: (1) default — an integrity self-check of the local package (trust anchor is the receipt's own embedded witness keys); (2) pass trustedWitnessKeysJson and/or trustedRegistrationKeysJson for a third-party 'external' trust check and registered-identity promotion; (3) set fetchAnchors:true to auto-fetch those witness + registration anchors from the configured well-knowns (so a local direct-mode receipt reports external trust and a registered identity without pasting JSON); (4) pass receiptUrl to verify the broker-STORED receipt (the authoritative copy that carries the registered agent_identity_attestation), auto-fetching the anchors. receiptUrl still needs packageDirectory (the stored envelope is verified against the package's evidence/keys).
Inputs: packageDirectory (required), receiptUrl, fetchAnchors, trustedWitnessKeysJson, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The tools are largely distinct, with clear phase boundaries: session lifecycle (start/record/finalize), post-finalization attestations, verification, and template management. However, the four attestation tools (record_approval vs approve_receipt, record_counterparty_attestation vs countersign_receipt) have similar names and differ mainly by whether the receipt is finalized, which creates some misselection risk despite detailed descriptions.
All tools share the uniform sequesign_ prefix and use snake_case verb-first naming, which is highly predictable. The minor deviation is that finalize and verify are bare verbs rather than verb_noun, and the record_approval vs approve_receipt pair shifts verb style, but overall the pattern is clear and consistent.
At 11 tools, the server is well-scoped and each tool earns its place across the receipt lifecycle: session recording, in-session attestations, post-finalization attestations, verification, and template management. The count is substantial enough to cover the domain without feeling bloated or redundant.
The core workflow is fully covered: start_session, record_action, attestations (both before and after finalization), finalize, and verify form a complete lifecycle with no dead ends. Template discovery and pre-flight checking are also well covered, though minor gaps exist such as no way to inspect a session's recorded actions or discover previously sealed receipts.
Maintenance
Related MCP Connectors
Issue signed receipts for AI agent actions; verify any receipt offline - free, no account.
Independent witness for agent work: verified handoffs, bound approvals, and receipts.
AI-agent trust infrastructure for discovery, authority, execution, verification, and receipts.
AI agent infrastructure for discovery, authorization, execution, identity, and signed receipts.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceTamper-evident receipts for AI agent actions. The notary layer for agent-to-agent transactions.1MIT- 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.468 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides cryptographic governance receipts for AI agents, enabling pre-execution evaluation and signed verdicts (EXECUTE/BLOCK/REVIEW/SHADOW) with offline-verifiable audit trails.MIT
- AlicenseBqualityCmaintenanceEnables AI agents to create, validate, verify, and merge tamper-evident task handoff records with SHA-256 receipts, so they can pass work without redoing everything and distinguish verified claims from unconfirmed ones.3MIT