You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preventing tool poisoning: save signatures of possible tool calls #82
One potential benefit of a centralized registry is that we could have server.json submitters list out all the possible tools their server may ever invoke, fingerprint them, and store those fingerpoints for MCP client consumption.
A third party vendor could scan and approve these fingerprints as devoid of security risks, like tool poisoning attacks.
MCP clients could then use the fingerprints to avoid tool poisoning attacks that get surfaced due to hidden dynamic tool calls or supply chain attacks.
This is an API I'm working on to have a VS Code extension version of the server manifest with static Tools declarations, to serve as possible inspiration: microsoft/vscode#272000
As I started to work on adding tool definitions (including annotations) into registry/manifest so they can be discovered without starting/authing the server, I came across SEP-1649 which tackles this too. Best of all, it's already in review.
Pre-registration security scanning would go a long way here. Every server submitted to the registry could be scanned for OWASP MCP Top 10 issues before listing.
We built cybersecify for exactly this — 8 security tools that can scan any MCP server for auth bypass, command injection, SSRF, tool poisoning, rug pulls, unsigned messages, replay attacks, and rate limiting.
A registry integration could work like:
Server submitted for listing
Automated scan_server runs the OWASP MCP Top 10 checks
assess_risk scores every exposed tool
Results displayed as a security badge on the listing
We also have DVMCP as a test target — deliberately vulnerable, 10 intentional issues, useful for validating any scanning pipeline.
Registry fingerprints and SEP-1649 answer "what did this server declare when it was published".
There's a second half that a registry structurally cannot cover: what the server served you, in this session.
A server can pass pre-registration scanning and still hand a specific client a different tool
definition at tools/list time — different description, different schema, different annotations.
The registry never sees that exchange, so a publication-time fingerprint can't witness it. That is
also the shape of the rug pull: the definition that gets approved and the definition that is later
served are not the same object.
The client-side half is cheap and needs no registry cooperation: digest each tool's name,
description, input schema and annotations at listing time, keep a manifest digest of the set, and
compare on every subsequent listing. A changed definition is then detectable in-session, and if the
digests go into a hash-linked record, provable afterwards. The two compose — a registry fingerprint
gives you an expected value, and the client-side digest tells you whether what arrived matches it.
On @DSHCorrectover's nested field injection: computing the digest over an extracted, fixed field
set rather than over the raw JSON-RPC response closes that class by construction. Fields injected
at any nesting depth are simply not inputs to the digest, so they cannot alter or forge it. It costs
you detection of the injected fields themselves, which is a separate check, but the evidence value
of the digest survives a compromised upstream.
I've implemented the client-side half in infy (Apache-2.0) as a
wrapper around mcp.ClientSession, tested end-to-end against a live server including a real
mid-session description rewrite. Happy to write it up as a client-side recommendation here if that's
useful to the SEP-1649 discussion.
One related thing worth stating in this thread regardless: ToolAnnotations are unverified server
claims, and the SDK says so — "clients should never make tool use decisions based on ToolAnnotations
received from untrusted servers." If annotations get carried into registry manifests for
discovery-without-connecting, that caveat needs to travel with them, or a readOnlyHint becomes a
trust signal purely by virtue of being in a registry.
Building on the last comment: there's a third thing between those two, which is what each release of a server declared, over time.
I run smallprint.dev, which reads the published tool definitions of the servers in this registry (plus npm and PyPI) every night and keeps a hash per version over every tool's name, description and input schema. That way you can see when a description changed between releases, and diff it.
On the client side, npx smallprint check --locked compares what's installed on your machine against a lock you took earlier, and fails when a tool changed.
It doesn't cover the per-session case qy6on describes, a server that serves one client something different at tools/list. That needs a check in the client itself.
Keep the distinction between publisher declarations and third-party observations. The design still needs canonicalization rules, treatment of annotations and dynamic/auth-dependent tools, and client verification semantics; closing the parallel proposal threads does not adopt a format or imply that this has been implemented. Their source links and evidence remain in the linked issues.
The design still needs canonicalization rules, treatment of annotations and dynamic/auth-dependent tools, and client verification semantics
Here's how those came out in practice for smallprint.dev, as one data point.
Canonical form: JSON of [{name, description, inputSchema}] sorted by tool name, with every object key sorted recursively. Prose (the name, the description, and any description or title inside the schema) gets runs of whitespace collapsed to one space and trimmed. Every other string (enum, const, pattern, default) stays byte for byte since whitespace can mean something there, and required arrays get sorted because their order doesn't. Prose over 20,000 characters goes in as its opening plus the length and SHA-256 of the whole, so the digest still covers every character. The digest is SHA-256 of that JSON.
Annotations, title and outputSchema aren't in that digest. Whether they belong in a shared format is one of the calls this thread would have to make.
Dynamic and auth-gated tools: an observer like mine only sees what a server lists without credentials. It reads the published package, and where it can't, it starts the package in a container with no network and no keys, so anything that only shows up after sign-in isn't in the digest. The record keeps how each version was read, and I think an observation format should carry that too.
Verification: each version's line goes into a daily row, the rows are hash-chained and signed with Ed25519, and the public key is published. The receipt for a version gives the digest, when it was recorded and the row that holds it, and a short public script recomputes everything from the API. That's the observation time and observer identity #1681 asks for, and a changed or deleted observation would show up as a broken chain.
On the open question of canonicalization and annotations (rdimitrov's consolidation note), here is a cross-check of three public observers on the same servers, the same day.
Method. On 2026-11-07 between 17:16 and 17:18 UTC, I read tools/list live once from 30 registry remotes (479 tools, all pages, chosen at random from servers that HISTOR, heldfast and CrawlCheck all record), plus CrawlCheck's own server. To those bytes I applied each project's documented digest:
HISTOR MTL/1:{name, description, inputSchema, outputSchema?}, one RFC 8785 array sorted by name in UTF-16 code-unit order, SRI.
heldfast: per tool only, over {name, title, description, input_schema, annotations, output_schema?, icons?} with ""/{} defaults, RFC 8785, hex.
CrawlCheck lockfile v1 (I work on it): {name, description, inputSchema, annotations}, nulls for absent fields; the list hash is the sorted per-tool hashes joined by \n.
Result.
30/30: MTL/1 over my bytes equals HISTOR's published toolSetDigest.
30/30: heldfast's per-tool digest over my bytes equals every tool in its feed state/ file (479/479 tools).
30/30: CrawlCheck's live POST /api/v1/mcp/lock equals its spec.
0/30: any digest can be compared across projects.
So the observations agree. Only the field scope and the list-hash construction differ. Of the 30 servers, 18 send title/annotations, 4 send outputSchema, 8 send execution and 5 send _meta. Any of these moves one project's digest and not another's.
A sample (reproduce from https://histor.modelmarket.dev/api/v1/servers?q=<name> and rufat325/heldfast-feed/state/remote__<name>.json):
What would make these comparable without anyone re-hashing their history:
RFC 8785, SHA-256. Numbers as ECMAScript writes them; keys in UTF-16 code-unit order. A missing name, a number with no double, or a partially paginated list yields no digest (null plus a reason).
hint escalated: readOnlyHint true→false/absent, destructiveHint or openWorldHint →true, absent hints compared as spec defaults;
cosmetic: title or icons only.
Version expectation. A contract_set change or a hint escalation SHOULD come with a new serverInfo.version; observers record version_unchanged: true when it does not. (HISTOR's record of my own server shows seven tool-set changes since 10-10, each at an unchanged serverInfo.version. The version was bumped to 1.2.0 only afterwards. That is how I found this.)
CrawlCheck now publishes this alongside its old hash, without changing the old one: jcs_v1 in lockfiles and in /api/v1/mcp/changes, documented with test vectors at https://crawlcheck.io/spec/mcp-lockfile#jcs-v1. Its value for the server above is sha256-AxcAxfuTrbxxTMqG80WqtRmiGfO4kaoqWJDBCooXSDg=, the same as HISTOR's. The 30-server table and the script are available if anyone wants to re-run them.
Correction to point 2 above, on extras. HISTOR already publishes toolExtrasDigest, and its construction differs from what I wrote. It covers every tool member except name, description, inputSchema and outputSchema (so title, annotations, icons, execution, _meta and vendor fields), as {"tools": {<name>: <extras>}}. CrawlCheck's jcs_v1.extras_sha256 now uses that scope with RFC 8785 and equals HISTOR's published toolExtrasDigest on the same 30 servers: 30/30, including the 10 with no extras. For io.github.emmanuelorta/crawlcheck both are sha256-G44DGgW7+rp9YjMAaEG80Tm5RFoke8eYkrE6nGk69y8=.
The two encodings can still differ in three narrow cases: astral-plane characters in tool names (sort order), integral floats such as 1.0, and integers beyond 2^53. Worth settling if this becomes the shared definition. Spec and test vector: https://crawlcheck.io/spec/mcp-lockfile#jcs-v1
Confirming from the CrawlCheck side, with one update to the numbers above.
The 70-vector figure was for commit 7568d46, before the three vectors on the order of refusal codes existed. We changed our code to follow section 10 (every entry is checked before any value is written) instead of asking for the text to allow either code. Results against the vectors at aca5812:
Implementation
Version
Result
JavaScript SDK
@crawlcheck/sdk 1.15.1 (npm)
73 of 73
Python SDK
crawlcheck 1.16.1 (PyPI)
73 of 73
Lockfile endpoint (POST /api/v1/mcp/lock)
deployed 13 Nov 2026
73 of 73
The SDK runs used the packages as installed from the registries. The endpoint figure is its digest function run over the vector file, not 73 live requests. Source: https://github.com/emmanuelorta/crawlcheck-core at 31771a9.
Signed lockfiles now carry tool_set_digest (this text) beside the older jcs_v1. jcs_v1 stays for existing verifiers and is described as a bounded form, as section 8.1 asks: https://crawlcheck.io/spec/mcp-lockfile
Disclosure: I maintain CrawlCheck and co-edit the text. This comment was drafted with AI assistance.
A third piece worth covering here: each per-version record could be signed and bound to the artifact digest, so a client can verify it offline instead of trusting the recorder.
To add to that: the per-version digests smallprint keeps are genuinely useful, but a client still has to trust smallprint's service and database. The same is true of any registry-side fingerprint.
What composes with both is making the record verifiable without trusting the recorder: sign it (DSSE/Ed25519, in-toto Statement v1 payload) and bind it to the artifact digest, so anyone can check it offline with the public key. And on re-scan, supersede rather than overwrite, so a verdict flip stays auditable instead of disappearing.
I built and ran that end to end: 20 PyPI MCP servers, each record bound to the exact sdist sha256 it was scanned from, signed, and published with the public key beside it. The records are under docs/scan/ in the lanbass869-cell/canari repository.
Two caveats I want to be explicit about:
the scans in that sample were run by bandit, not by me; each record names the upstream tool and my code only records and signs it
this is artifact-level (bytes), not tool-surface-level, so it is complementary to SEP-1649 rather than a substitute
An update on the "verifiable recorder" layer I mentioned earlier, because two things are now concretely testable rather than described.
1. It composes with mcp-tool-set-digest/1 instead of competing with it. The attestation schema has evidence_refs as free strings, so a record can carry another tool's digest and still be signed. Tested on a real record: appending toolset:sha256:<64 hex>:n=12 (mcp-tool-set-digest/1) keeps schema PASS and signature PASS; flipping one hex character makes verification fail (rc 1, Failed to verify signature). So a CrawlCheck/HISTOR digest can be carried inside a signed, artifact-bound record.
2. It is installable in one line and gates a real client.pip install canari-mcp==0.1.4 gives canari-mcp-gate, a stdio wrapper: point an MCP entry's command at it and it looks the component up in the signed ledger before starting the real server, then proxies stdio byte-for-byte with no parsing. Measured in a fresh venv: install 10.9s; unidentified component passes through (rc 0); --on-unknown=block exits 5 with the child never started.
Why I think the recorder has to be verifiable. Whatever shape the registry field takes, the record will be produced by a third party. If checking it requires calling that party's service, the client has swapped one trust anchor (the registry) for another (the recorder). The alternative is a record the client can check offline against a published key: signature + artifact digest, and supersede rather than overwrite so a verdict flip stays visible.
What I would find most useful from this thread: whether the fingerprint the registry stores should be (a) producer-declared and registry-verified, or (b) recorded by any observer and independently verifiable. Those two lead to different server.json shapes, and (b) is the one a third party can fill without the registry having to trust them.
Records for the 20-package sample are under docs/scan/ in lanbass869-cell/canari, each bound to the sdist sha256 it was scanned from. The scans themselves were run by bandit; the code only records and signs them.
Publisher declaration side: a {url, hash} pointer under publisher-provided to a signed declaration, with a live listing
This covers the publisher declaration half of this issue (the "promise" in the 17 Nov exchange), kept distinct from observations as the 23 Oct consolidation asks, and needs no change to the registry.
What exists.com.rtlpdf/arabic-pdf 1.0.0 (my own server, published 19 Nov 2026) carries a {url, hash} pointer at _meta["io.modelcontextprotocol.registry/publisher-provided"].addonDeclaration; the key is flat because a published version cannot be edited, though a reverse DNS subkey would fit better. It points to a small signed JSON statement on the namespace domain that binds the listing name, version, remotes and tools list (format 0.1, with a single hash of my own construction). A second statement for the same version (format 0.2, latest.json beside it) signs the two mcp-tool-set-digest/1 digests instead and names the first as previous; a client that follows only the pointer reaches the 0.1 one. Both use the key the domain publishes for registry login (the v=MCPv1 record at /.well-known/mcp-registry-auth, http method), which the registry checks at login and the checker reads live. The signing input starts with the format id and a line feed (addon-declaration/0.2), keeping these signatures apart from login signatures and the two formats apart from each other.
(Windows PowerShell form: examples/live-rtlpdf/README.md in the repository.)
The first node line printed valid on 19 Nov 2026 at 03:59 UTC, with "contract match, extras match" and the link to the first statement checked. The second prints the pointer hash (the SHA 256 of the signing input, not of the file bytes).
The four points the 23 Oct note says the design still needs, in its order
Canonical form: RFC 8785. The declaration file is parsed strictly (duplicate member names and lone surrogates are refused); the tool list is read by the input rules of mcp-tool-set-digest/1.
Annotations: format 0.2 signs the two labelled digests of mcp-tool-set-digest/1 and no construction of its own, so an annotation change lands in the extras digest and the check says which digest differs. The checker passes that draft's 73 vectors. Signed values for the live list: contract sha256-VPxDXBxVgGzH/0OtZBO1iGClgcDKQSgXmvDHsxe3YTU=, extras sha256-+q4/BoqWmGGjGJw7VgeYkxe99dw6scmRsiGkGhwP8n8=. Observers here may not have this new listing yet; different values from one of them would be worth a reply.
Dynamic and auth dependent tools: the declaration signs the list an unauthenticated client receives and nothing else. For this server both digests are the same with no protocol header, 2025-06-18 and 2025-11-25. Format 0.2 does not yet sign which protocol version and authorization the list was read under; that draft asks a producer to record both with a digest (its section 11) and a signed record to include its observation context (section 11.1). That is the main open point of 0.2.
What a client check means: valid shows that the holder of a key published now at the namespace domain signed this content, within its time window, and that the tools list given to the checker has both declared digests. The client compares the signed name, version and remotes with the listing it is looking at, and checks that the declaration's hash equals the pointer hash or, for a later declaration of the same version such as latest.json here, that its previous link reaches the pointer hash.
What it does not do. It does not show that the server is safe, that the signer operates the remote, that every client receives the same list, or that a declaration is the newest. The domain holder can sign a new one at any time: this is attribution and a dated, signed statement per version, not protection against the publisher. There is no transparency log. A declaration stays valid until it expires (180 days here) unless the domain stops publishing its key, so an older one can still be shown to a client. In this listing the pointer itself names the older 0.1 statement, because a listing version cannot be edited, and nothing in the listing tells a client that a newer one exists. The observer logs in this thread could record declarations. Whoever signs with the login key can also publish; the dns method allows a separate declaration only key. GitHub account namespaces have no published key and are out of scope. One signer so far; a draft.
Related:#1720, #1706, #1860, and SEP-3140 in the specification repository (closed).
One question for maintainers. The 13 Nov comment that introduced mcp-tool-set-digest/1 leaves open "under which field a publisher or the Registry would state the digest it expects" and calls that this tracker's question. Which shape would you rather publishers use under publisher-provided today, so that a later registry field could take it over unchanged: the two labelled digests stated directly, or a {url, hash} pointer to a signed statement like this one? I am not asking for a schema field, a check at publish time, a badge or a verified flag now. Corrections are welcome.
AI disclosure: the spec, the checker and this comment were drafted primarily by AI (Claude Code). I read them, ran the check above myself and take responsibility for the content.
CrawlCheck's results against mcp-tool-set-digest/1 at aca5812: both published SDKs give every value of all 73 vectors (digests, canonical texts and error codes, for contract and extras): Python crawlcheck 1.16.3 (tool_set_digest) and JS @crawlcheck/sdk 1.15.2 (toolSetDigest).
The signed lockfile now carries the same pair: GET /api/v1/mcp/lock on crawlcheck.io returns a tool_set_digest block next to jcs_v1. Checked today against the live tools/list of io.github.emmanuelorta/crawlcheck (28 tools): contract sha256-9Z/eIkZH55y+8m9M7PHYr4pURSkVrVOJlxlb0pHia3w=, extras sha256-G44DGgW7+rp9YjMAaEG80Tm5RFoke8eYkrE6nGk69y8=, equal to the values recomputed from the list.
@alexar76 thanks for the independent read. Your section 11 suggestion is live: the lockfile's tool_set_digest block now carries read, inside the signed body, so the same Ed25519 signature covers it. For https://crawlcheck.io/mcp it reads:
authorized is always false on a read, because CrawlCheck sends no credentials to the server. A lockfile built from a POSTed list says "source": "supplied" with the reading fields null, since nothing was read. The two digests are unchanged (contract sha256-9Z/eIkZH55y+8m9M7PHYr4pURSkVrVOJlxlb0pHia3w=, extras sha256-G44DGgW7+rp9YjMAaEG80Tm5RFoke8eYkrE6nGk69y8=).
AI use: drafted with Claude Code; the values are from the live lockfile read just now.
@alexar76 Thank you for running HISTOR's independent 22-day comparison against CrawlCheck and for publishing the mismatches rather than hiding them. The 4,268/4,297 matched digest observations are useful external validation, and your corrections for bounded historical lookups and registry endpoint moves help prevent false disagreements.
Could you point us to the exact row (registry ID and/or JSON path) in results-2026-11-28.json, with the two HISTOR read timestamps, CrawlCheck's read_at, original endpoint, and both digests? The public JSON dataset endpoint wasn't retrievable from our current reader. We'll compare the historical records under the same endpoint, protocol mode/version and full pagination before assigning a cause, then report back with a reproducible finding or an explicit unresolved result.
Thanks again for making the corrections and documenting them so thoroughly. — Emmanuel, CrawlCheck
Hey @alexar76, thanks for independently checking CrawlCheck’s MCP tool inventory. We owe you one for taking the time to do that.
Would you be up for one more check? Run our Node quickstart, verify a signed preflight receipt from your side, and let me know whether it verifies and where the docs could be clearer. The example uses CrawlCheck’s public MCP server.
@alexar76 Quick update on the remaining 25-vs-31 case. We found the article's results JSON and matched the open row to ca.bakhour/profitcollector, with CrawlCheck's read at 2026-11-12T18:49Z. mcpcost’s independent history also records 25 tools earlier on Nov 12 and 31 on Nov 13. That corroborates both counts and leaves the cause of the specific mismatch open.
Could you point us to the two HISTOR snapshots bracketing that read, or share their timestamps, endpoint, digests and protocol mode/version? Page counts or cursor-completion metadata would also help if retained. We’ll compare against the original CrawlCheck record and record the conclusion in CrawlCheck #99. Thanks again for publishing the data.
Activity
tadasant commentedon Aug 18, 2025
cc @joan-anthropic thought you might find this of interest as something DXT would want to see land
connor4312 commentedon Oct 18, 2025
This is an API I'm working on to have a VS Code extension version of the server manifest with static Tools declarations, to serve as possible inspiration: microsoft/vscode#272000
goncalossilva commentedon Jan 26, 2026
As I started to work on adding tool definitions (including annotations) into registry/manifest so they can be discovered without starting/authing the server, I came across SEP-1649 which tackles this too. Best of all, it's already in review.
razashariff commentedon Mar 28, 2026
Pre-registration security scanning would go a long way here. Every server submitted to the registry could be scanned for OWASP MCP Top 10 issues before listing.
We built cybersecify for exactly this — 8 security tools that can scan any MCP server for auth bypass, command injection, SSRF, tool poisoning, rug pulls, unsigned messages, replay attacks, and rate limiting.
A registry integration could work like:
scan_serverruns the OWASP MCP Top 10 checksassess_riskscores every exposed toolWe also have DVMCP as a test target — deliberately vulnerable, 10 intentional issues, useful for validating any scanning pipeline.
npx cybersecify— zero dependencies, works today.DSHCorrectover commentedon Aug 23, 2026
qy6on commentedon Sep 17, 2026
Registry fingerprints and SEP-1649 answer "what did this server declare when it was published".
There's a second half that a registry structurally cannot cover: what the server served you, in
this session.
A server can pass pre-registration scanning and still hand a specific client a different tool
definition at
tools/listtime — different description, different schema, different annotations.The registry never sees that exchange, so a publication-time fingerprint can't witness it. That is
also the shape of the rug pull: the definition that gets approved and the definition that is later
served are not the same object.
The client-side half is cheap and needs no registry cooperation: digest each tool's name,
description, input schema and annotations at listing time, keep a manifest digest of the set, and
compare on every subsequent listing. A changed definition is then detectable in-session, and if the
digests go into a hash-linked record, provable afterwards. The two compose — a registry fingerprint
gives you an expected value, and the client-side digest tells you whether what arrived matches it.
On @DSHCorrectover's nested field injection: computing the digest over an extracted, fixed field
set rather than over the raw JSON-RPC response closes that class by construction. Fields injected
at any nesting depth are simply not inputs to the digest, so they cannot alter or forge it. It costs
you detection of the injected fields themselves, which is a separate check, but the evidence value
of the digest survives a compromised upstream.
I've implemented the client-side half in infy (Apache-2.0) as a
wrapper around
mcp.ClientSession, tested end-to-end against a live server including a realmid-session description rewrite. Happy to write it up as a client-side recommendation here if that's
useful to the SEP-1649 discussion.
One related thing worth stating in this thread regardless:
ToolAnnotationsare unverified serverclaims, and the SDK says so — "clients should never make tool use decisions based on ToolAnnotations
received from untrusted servers." If annotations get carried into registry manifests for
discovery-without-connecting, that caveat needs to travel with them, or a
readOnlyHintbecomes atrust signal purely by virtue of being in a registry.
gostanos commentedon Sep 27, 2026
Building on the last comment: there's a third thing between those two, which is what each release of a server declared, over time.
I run smallprint.dev, which reads the published tool definitions of the servers in this registry (plus npm and PyPI) every night and keeps a hash per version over every tool's name, description and input schema. That way you can see when a description changed between releases, and diff it.
On the client side,
npx smallprint check --lockedcompares what's installed on your machine against a lock you took earlier, and fails when a tool changed.It doesn't cover the per-session case qy6on describes, a server that serves one client something different at
tools/list. That needs a check in the client itself.The per-version digests are public, one server at a time, for example https://smallprint.dev/api/receipt/npm/@ai-sdk/mcp/2.0.49
rdimitrov commentedon Oct 23, 2026
Consolidating two related tool-surface proposals into this tracker:
surfaceHashwith explicit canonicalization and a reference format/implementation.Keep the distinction between publisher declarations and third-party observations. The design still needs canonicalization rules, treatment of annotations and dynamic/auth-dependent tools, and client verification semantics; closing the parallel proposal threads does not adopt a format or imply that this has been implemented. Their source links and evidence remain in the linked issues.
gostanos commentedon Oct 24, 2026
@rdimitrov
Here's how those came out in practice for smallprint.dev, as one data point.
Canonical form: JSON of [{name, description, inputSchema}] sorted by tool name, with every object key sorted recursively. Prose (the name, the description, and any description or title inside the schema) gets runs of whitespace collapsed to one space and trimmed. Every other string (enum, const, pattern, default) stays byte for byte since whitespace can mean something there, and
requiredarrays get sorted because their order doesn't. Prose over 20,000 characters goes in as its opening plus the length and SHA-256 of the whole, so the digest still covers every character. The digest is SHA-256 of that JSON.Annotations, title and outputSchema aren't in that digest. Whether they belong in a shared format is one of the calls this thread would have to make.
Dynamic and auth-gated tools: an observer like mine only sees what a server lists without credentials. It reads the published package, and where it can't, it starts the package in a container with no network and no keys, so anything that only shows up after sign-in isn't in the digest. The record keeps how each version was read, and I think an observation format should carry that too.
Verification: each version's line goes into a daily row, the rows are hash-chained and signed with Ed25519, and the public key is published. The receipt for a version gives the digest, when it was recorded and the row that holds it, and a short public script recomputes everything from the API. That's the observation time and observer identity #1681 asks for, and a changed or deleted observation would show up as a broken chain.
Example, the one from my last comment: https://smallprint.dev/api/receipt/npm/@ai-sdk/mcp/2.0.49 (the script is https://github.com/gostanos/smallprint-action/blob/main/tools/verify-chain.mjs)
Paraphern commentedon Oct 24, 2026
emmanuelorta commentedon Nov 7, 2026
On the open question of canonicalization and annotations (rdimitrov's consolidation note), here is a cross-check of three public observers on the same servers, the same day.
Method. On 2026-11-07 between 17:16 and 17:18 UTC, I read
tools/listlive once from 30 registry remotes (479 tools, all pages, chosen at random from servers that HISTOR, heldfast and CrawlCheck all record), plus CrawlCheck's own server. To those bytes I applied each project's documented digest:{name, description, inputSchema, outputSchema?}, one RFC 8785 array sorted by name in UTF-16 code-unit order, SRI.{name, title, description, input_schema, annotations, output_schema?, icons?}with""/{}defaults, RFC 8785, hex.{name, description, inputSchema, annotations}, nulls for absent fields; the list hash is the sorted per-tool hashes joined by\n.Result.
toolSetDigest.state/file (479/479 tools).POST /api/v1/mcp/lockequals its spec.So the observations agree. Only the field scope and the list-hash construction differ. Of the 30 servers, 18 send
title/annotations, 4 sendoutputSchema, 8 sendexecutionand 5 send_meta. Any of these moves one project's digest and not another's.A sample (reproduce from
https://histor.modelmarket.dev/api/v1/servers?q=<name>andrufat325/heldfast-feed/state/remote__<name>.json):sha256-AxcAxfuTrbxxTMqG80WqtRmiGfO4kaoqWJDBCooXSDg=033775e1e9b87637…sha256-V2su5xHuYY2wBDtyEcMHOM0DKKLyydTE37u7lt81O5A=846dcfeea10816ba…sha256-2KGyt6Dq9U9Sv28QPOUa64x0tR5Hi4vjhN1jbW/XEa8=305f725ab2e3fc51…What would make these comparable without anyone re-hashing their history:
contract={name, description, inputSchema, outputSchema?}.extras={title?, annotations?, icons?}._metais in neither.contract_setis exactly MTL/1's tool-set digest. It already matched on 30/30, so adopting it moves no published value.extras_setis the same construction over[{name, extras}].readOnlyHinttrue→false/absent,destructiveHintoropenWorldHint→true, absent hints compared as spec defaults;contract_setchange or a hint escalation SHOULD come with a newserverInfo.version; observers recordversion_unchanged: truewhen it does not. (HISTOR's record of my own server shows seven tool-set changes since 10-10, each at an unchangedserverInfo.version. The version was bumped to 1.2.0 only afterwards. That is how I found this.)after.contract_setcorroborate one another without sharing code.CrawlCheck now publishes this alongside its old hash, without changing the old one:
jcs_v1in lockfiles and in/api/v1/mcp/changes, documented with test vectors at https://crawlcheck.io/spec/mcp-lockfile#jcs-v1. Its value for the server above issha256-AxcAxfuTrbxxTMqG80WqtRmiGfO4kaoqWJDBCooXSDg=, the same as HISTOR's. The 30-server table and the script are available if anyone wants to re-run them.emmanuelorta commentedon Nov 7, 2026
Correction to point 2 above, on
extras. HISTOR already publishestoolExtrasDigest, and its construction differs from what I wrote. It covers every tool member exceptname,description,inputSchemaandoutputSchema(sotitle,annotations,icons,execution,_metaand vendor fields), as{"tools": {<name>: <extras>}}. CrawlCheck'sjcs_v1.extras_sha256now uses that scope with RFC 8785 and equals HISTOR's publishedtoolExtrasDigeston the same 30 servers: 30/30, including the 10 with no extras. For io.github.emmanuelorta/crawlcheck both aresha256-G44DGgW7+rp9YjMAaEG80Tm5RFoke8eYkrE6nGk69y8=.The two encodings can still differ in three narrow cases: astral-plane characters in tool names (sort order), integral floats such as
1.0, and integers beyond 2^53. Worth settling if this becomes the shared definition. Spec and test vector: https://crawlcheck.io/spec/mcp-lockfile#jcs-v1Paraphern commentedon Nov 7, 2026
alexar76 commentedon Nov 13, 2026
emmanuelorta commentedon Nov 13, 2026
Confirming from the CrawlCheck side, with one update to the numbers above.
The 70-vector figure was for commit
7568d46, before the three vectors on the order of refusal codes existed. We changed our code to follow section 10 (every entry is checked before any value is written) instead of asking for the text to allow either code. Results against the vectors ataca5812:@crawlcheck/sdk1.15.1 (npm)crawlcheck1.16.1 (PyPI)POST /api/v1/mcp/lock)The SDK runs used the packages as installed from the registries. The endpoint figure is its digest function run over the vector file, not 73 live requests. Source: https://github.com/emmanuelorta/crawlcheck-core at
31771a9.Signed lockfiles now carry
tool_set_digest(this text) beside the olderjcs_v1.jcs_v1stays for existing verifiers and is described as a bounded form, as section 8.1 asks: https://crawlcheck.io/spec/mcp-lockfileDisclosure: I maintain CrawlCheck and co-edit the text. This comment was drafted with AI assistance.
alexar76 commentedon Nov 14, 2026
lanbass869-cell commentedon Nov 14, 2026
A third piece worth covering here: each per-version record could be signed and bound to the artifact digest, so a client can verify it offline instead of trusting the recorder.
lanbass869-cell commentedon Nov 14, 2026
To add to that: the per-version digests smallprint keeps are genuinely useful, but a client still has to trust smallprint's service and database. The same is true of any registry-side fingerprint.
What composes with both is making the record verifiable without trusting the recorder: sign it (DSSE/Ed25519, in-toto Statement v1 payload) and bind it to the artifact digest, so anyone can check it offline with the public key. And on re-scan, supersede rather than overwrite, so a verdict flip stays auditable instead of disappearing.
I built and ran that end to end: 20 PyPI MCP servers, each record bound to the exact sdist sha256 it was scanned from, signed, and published with the public key beside it. The records are under docs/scan/ in the lanbass869-cell/canari repository.
Two caveats I want to be explicit about:
lanbass869-cell commentedon Nov 17, 2026
An update on the "verifiable recorder" layer I mentioned earlier, because two things are now concretely testable rather than described.
1. It composes with
mcp-tool-set-digest/1instead of competing with it. The attestation schema hasevidence_refsas free strings, so a record can carry another tool's digest and still be signed. Tested on a real record: appendingtoolset:sha256:<64 hex>:n=12 (mcp-tool-set-digest/1)keeps schema PASS and signature PASS; flipping one hex character makes verification fail (rc 1,Failed to verify signature). So a CrawlCheck/HISTOR digest can be carried inside a signed, artifact-bound record.2. It is installable in one line and gates a real client.
pip install canari-mcp==0.1.4givescanari-mcp-gate, a stdio wrapper: point an MCP entry'scommandat it and it looks the component up in the signed ledger before starting the real server, then proxies stdio byte-for-byte with no parsing. Measured in a fresh venv: install 10.9s; unidentified component passes through (rc 0);--on-unknown=blockexits 5 with the child never started.Why I think the recorder has to be verifiable. Whatever shape the registry field takes, the record will be produced by a third party. If checking it requires calling that party's service, the client has swapped one trust anchor (the registry) for another (the recorder). The alternative is a record the client can check offline against a published key: signature + artifact digest, and supersede rather than overwrite so a verdict flip stays visible.
What I would find most useful from this thread: whether the fingerprint the registry stores should be (a) producer-declared and registry-verified, or (b) recorded by any observer and independently verifiable. Those two lead to different
server.jsonshapes, and (b) is the one a third party can fill without the registry having to trust them.Records for the 20-package sample are under
docs/scan/in lanbass869-cell/canari, each bound to the sdist sha256 it was scanned from. The scans themselves were run by bandit; the code only records and signs them.alexar76 commentedon Nov 17, 2026
bcrypto0 commentedon Nov 19, 2026
Publisher declaration side: a
{url, hash}pointer underpublisher-providedto a signed declaration, with a live listingThis covers the publisher declaration half of this issue (the "promise" in the 17 Nov exchange), kept distinct from observations as the 23 Oct consolidation asks, and needs no change to the registry.
What exists.
com.rtlpdf/arabic-pdf1.0.0 (my own server, published 19 Nov 2026) carries a{url, hash}pointer at_meta["io.modelcontextprotocol.registry/publisher-provided"].addonDeclaration; the key is flat because a published version cannot be edited, though a reverse DNS subkey would fit better. It points to a small signed JSON statement on the namespace domain that binds the listingname,version,remotesand tools list (format 0.1, with a single hash of my own construction). A second statement for the same version (format 0.2,latest.jsonbeside it) signs the twomcp-tool-set-digest/1digests instead and names the first asprevious; a client that follows only the pointer reaches the 0.1 one. Both use the key the domain publishes for registry login (thev=MCPv1record at/.well-known/mcp-registry-auth, http method), which the registry checks at login and the checker reads live. The signing input starts with the format id and a line feed (addon-declaration/0.2), keeping these signatures apart from login signatures and the two formats apart from each other.Check it yourself (Node 20 or later, no dependencies; run from a clone of https://github.com/bcrypto0/addon-declaration, which holds the spec and vectors):
(Windows PowerShell form:
examples/live-rtlpdf/README.mdin the repository.)The first
nodeline printedvalidon 19 Nov 2026 at 03:59 UTC, with "contract match, extras match" and the link to the first statement checked. The second prints the pointer hash (the SHA 256 of the signing input, not of the file bytes).The four points the 23 Oct note says the design still needs, in its order
mcp-tool-set-digest/1.mcp-tool-set-digest/1and no construction of its own, so an annotation change lands in the extras digest and the check says which digest differs. The checker passes that draft's 73 vectors. Signed values for the live list: contractsha256-VPxDXBxVgGzH/0OtZBO1iGClgcDKQSgXmvDHsxe3YTU=, extrassha256-+q4/BoqWmGGjGJw7VgeYkxe99dw6scmRsiGkGhwP8n8=. Observers here may not have this new listing yet; different values from one of them would be worth a reply.2025-06-18and2025-11-25. Format 0.2 does not yet sign which protocol version and authorization the list was read under; that draft asks a producer to record both with a digest (its section 11) and a signed record to include its observation context (section 11.1). That is the main open point of 0.2.validshows that the holder of a key published now at the namespace domain signed this content, within its time window, and that the tools list given to the checker has both declared digests. The client compares the signedname,versionandremoteswith the listing it is looking at, and checks that the declaration's hash equals the pointer hash or, for a later declaration of the same version such aslatest.jsonhere, that itspreviouslink reaches the pointer hash.What it does not do. It does not show that the server is safe, that the signer operates the remote, that every client receives the same list, or that a declaration is the newest. The domain holder can sign a new one at any time: this is attribution and a dated, signed statement per version, not protection against the publisher. There is no transparency log. A declaration stays valid until it expires (180 days here) unless the domain stops publishing its key, so an older one can still be shown to a client. In this listing the pointer itself names the older 0.1 statement, because a listing version cannot be edited, and nothing in the listing tells a client that a newer one exists. The observer logs in this thread could record declarations. Whoever signs with the login key can also publish; the dns method allows a separate declaration only key. GitHub account namespaces have no published key and are out of scope. One signer so far; a draft.
Related: #1720, #1706, #1860, and SEP-3140 in the specification repository (closed).
One question for maintainers. The 13 Nov comment that introduced
mcp-tool-set-digest/1leaves open "under which field a publisher or the Registry would state the digest it expects" and calls that this tracker's question. Which shape would you rather publishers use underpublisher-providedtoday, so that a later registry field could take it over unchanged: the two labelled digests stated directly, or a{url, hash}pointer to a signed statement like this one? I am not asking for a schema field, a check at publish time, a badge or a verified flag now. Corrections are welcome.AI disclosure: the spec, the checker and this comment were drafted primarily by AI (Claude Code). I read them, ran the check above myself and take responsibility for the content.
alexar76 commentedon Nov 19, 2026
emmanuelorta commentedon Nov 22, 2026
CrawlCheck's results against mcp-tool-set-digest/1 at aca5812: both published SDKs give every value of all 73 vectors (digests, canonical texts and error codes, for contract and extras): Python
crawlcheck1.16.3 (tool_set_digest) and JS@crawlcheck/sdk1.15.2 (toolSetDigest).The signed lockfile now carries the same pair:
GET /api/v1/mcp/lockon crawlcheck.io returns atool_set_digestblock next tojcs_v1. Checked today against the live tools/list of io.github.emmanuelorta/crawlcheck (28 tools): contractsha256-9Z/eIkZH55y+8m9M7PHYr4pURSkVrVOJlxlb0pHia3w=, extrassha256-G44DGgW7+rp9YjMAaEG80Tm5RFoke8eYkrE6nGk69y8=, equal to the values recomputed from the list.alexar76 commentedon Nov 22, 2026
emmanuelorta commentedon Nov 22, 2026
@alexar76 thanks for the independent read. Your section 11 suggestion is live: the lockfile's
tool_set_digestblock now carriesread, inside the signed body, so the same Ed25519 signature covers it. For https://crawlcheck.io/mcp it reads:authorizedis always false on a read, because CrawlCheck sends no credentials to the server. A lockfile built from a POSTed list says"source": "supplied"with the reading fields null, since nothing was read. The two digests are unchanged (contractsha256-9Z/eIkZH55y+8m9M7PHYr4pURSkVrVOJlxlb0pHia3w=, extrassha256-G44DGgW7+rp9YjMAaEG80Tm5RFoke8eYkrE6nGk69y8=).AI use: drafted with Claude Code; the values are from the live lockfile read just now.
alexar76 commentedon Nov 26, 2026
rufat325 commentedon Nov 26, 2026
sure
emmanuelorta commentedon Nov 30, 2026
@alexar76 Thank you for running HISTOR's independent 22-day comparison against CrawlCheck and for publishing the mismatches rather than hiding them. The 4,268/4,297 matched digest observations are useful external validation, and your corrections for bounded historical lookups and registry endpoint moves help prevent false disagreements.
I'm following up on the remaining reported 25-tool vs 31-tool case. We opened https://github.com/emmanuelorta/crawlcheck/issues/99 and staged a no-network forensic regression harness in https://github.com/emmanuelorta/crawlcheck/pull/100. This is not a claim that CrawlCheck or HISTOR is at fault; the cause is still unknown.
Could you point us to the exact row (registry ID and/or JSON path) in
results-2026-11-28.json, with the two HISTOR read timestamps, CrawlCheck'sread_at, original endpoint, and both digests? The public JSON dataset endpoint wasn't retrievable from our current reader. We'll compare the historical records under the same endpoint, protocol mode/version and full pagination before assigning a cause, then report back with a reproducible finding or an explicit unresolved result.Thanks again for making the corrections and documenting them so thoroughly. — Emmanuel, CrawlCheck
emmanuelorta commentedon Dec 1, 2026
Hey @alexar76, thanks for independently checking CrawlCheck’s MCP tool inventory. We owe you one for taking the time to do that.
Would you be up for one more check? Run our Node quickstart, verify a signed preflight receipt from your side, and let me know whether it verifies and where the docs could be clearer. The example uses CrawlCheck’s public MCP server.
https://github.com/emmanuelorta/crawlcheck/blob/main/docs/marketing/mcp-developer-quickstart.md
emmanuelorta commentedon Dec 1, 2026
@alexar76 Quick update on the remaining 25-vs-31 case. We found the article's results JSON and matched the open row to
ca.bakhour/profitcollector, with CrawlCheck's read at2026-11-12T18:49Z. mcpcost’s independent history also records 25 tools earlier on Nov 12 and 31 on Nov 13. That corroborates both counts and leaves the cause of the specific mismatch open.Could you point us to the two HISTOR snapshots bracketing that read, or share their timestamps, endpoint, digests and protocol mode/version? Page counts or cursor-completion metadata would also help if retained. We’ll compare against the original CrawlCheck record and record the conclusion in CrawlCheck #99. Thanks again for publishing the data.