DEV Community

The tools you audited are not the tools that run

Nicholas Capozzo on November 23, 2026

MCP servers can change their own tool list after you approve them. Static review has a shelf life, and the fix is not a better review. The usual w...
Collapse
 
analista_83 profile image
Sammi De Blas •

The gap between what you reviewed and what the runtime actually resolves is where MCP incidents live. Pinning the tool manifest by hash at execution time turns the audit into a control instead of a snapshot. Which layer do you re-check on each call, the registry entry or the resolved binary?

Collapse
 
nick_railcall profile image
Nicholas Capozzo •

Honest answer: neither, in the way you mean. For a governed write we don't rely on the tool listing at all. The command is resolved from the station's own catalog, and the approval is re-checked against the exact payload hash, expiry, station and current policy version before anything runs. For workflows we go one step further. The plan is pinned to a runtime fingerprint (station release, sandbox surface, exact module versions), and if any of that changes, it refuses at preflight.

What we don't pin is a third-party server's resolved binary, because we don't sit in front of other servers. For that case I'd do what you describe: pin the manifest hash client-side and check it on every call, not just on connect.

Collapse
 
raju_dandigam profile image
Raju Dandigam •

@nick_railcall Fingerprinting the full tool surface, including descriptions, makes the reviewed interface inspectable after list_changed. I would carry the manifest fingerprint and server identity into each execution trace or signed receipt as well, so a reviewer can connect the exact call to the surface that was approved at that moment. Do your receipts currently bind that fingerprint, or only the tool name and payload?

Collapse
 
nick_railcall profile image
Nicholas Capozzo •

Today, no. Our receipts bind the resolved command and its schema version, the exact payload hash, the approval (including its expiry, policy version and station), mode, provider, risk, pre- and post-execution hashes, and the station's identity, all signed with Ed25519. They don't carry a fingerprint of the MCP tool surface the model was shown at that moment.

You're right that this is the missing link between "this call ran" and "this is the interface the reviewer approved." I'm taking it back to the team as a request, not promising a date.

Collapse
 
ademisler profile image
Adem İşler •

the approval-to-dispatch gap seems worth a test: approve a tool call, let the server send notifications/tools/list_changed, then execute the queued approval. i'd bind approval to the exact server/tool fingerprint and arguments, and invalidate it on drift. does your airlock re-check that at dispatch?

Collapse
 
nick_railcall profile image
Nicholas Capozzo •

Good test, and you've put your finger on the right gap. Here's what we re-check at execution time, right before the side effect. The approval is bound to the hash of the exact payload, and it's single-use. It also has to still be fresh: not expired, given on this same station, and decided under the policy version in force now. If any of that fails, the call is blocked, a blocked receipt is written, and the approval isn't consumed.

What we don't do is bind the approval to a tool-surface fingerprint. In our case the command an approval covers is resolved from the station's own command catalog, not from the description text the model saw, and its schema version is sealed into the receipt. But for a client approving calls on someone else's server, your design is the right one: fingerprint plus arguments, invalidated on drift.

Collapse
 
analista_83 profile image
Sammi De Blas •

Pin the manifest client side and check it per call, not per connect. That closes the swap window registries leave open.

Collapse
 
analista_83 profile image
Sammi De Blas •

Pin the manifest hash, not the binary. The binary changes with the mirror, the manifest is what you reviewed.

Collapse
 
knowhowseller profile image
Knowhowseller •

The point that tool descriptions reach the model on every call, so they count as input and not just documentation, made me rethink approving something once and filing it as settled. I'm not a developer, but "fail closed, don't warn and continue" matches a rule in my own setup: anything that sends, deletes, pays or publishes needs my OK first, however routine it looks. Your caution that a changed fingerprint is a signal to look and not proof of an attack is a useful counterweight, since a check that cries wolf gets switched off.

Collapse
 
nick_railcall profile image
Nicholas Capozzo •

"Anything that sends, deletes, pays or publishes needs my OK first, however routine it looks." That's the whole idea in one sentence, and it holds up whether or not you write code. The "however routine" part is what matters most, since routine is exactly when people stop reading. And yes on the crying-wolf point. A check that fires on every legitimate change gets switched off, and then you have nothing. Thanks for reading it this closely.

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

Tool descriptions are part of the prompt, so a changed description is a changed input the next time the model reads it. A review of the server at install never sees that change.

Collapse
 
nick_railcall profile image
Nicholas Capozzo •

Exactly, and that's the part that's easiest to miss. A description change doesn't look like a code change, so it doesn't get reviewed like one. It still changes what the model does on the next call.