@mcpverify/bridge
v0.1.2
Published
MCP verification bridge — transparent stdio/SSE proxy with cryptographic tool integrity checking, state commits, trace shapes, and computation receipts
Readme
@mcpverify/bridge
Transparent MCP proxy that verifies tool integrity between AI agents and MCP servers.
What it does
Sits between your AI agent and an upstream MCP provider as a transparent stdio/SSE proxy. Intercepts tools/list responses and verifies them against cryptographic commitments. If tools have been tampered with, the bridge warns or blocks depending on mode. All verification events are logged to a tamper-evident hash chain.
Features
- Transparent proxy — stdio or SSE transport, zero config for the agent
- Schema verification — intercepts
tools/listand checks against signed commitments - Warn or strict mode — log tampering and continue, or block the tool entirely
- Trace context — injects distributed trace IDs into
tools/callrequests - Trace shapes — learns structural patterns of tool calls for anomaly detection
- Audit logging — every verification event written to a hash-chained log
Install
npm install @mcpverify/bridgeUsage
stdio bridge (wrap a local MCP server)
npx mcpverify-bridge --cmd "node server.js" --dir ./verify-data --mode warnSSE bridge (wrap a remote MCP server)
npx mcpverify-bridge https://api.example.com/mcp --dir ./verify-data --mode strictClaude Desktop config
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": [
"mcpverify-bridge",
"--cmd", "node",
"--args", "server.js",
"--dir", "./verify-data",
"--mode", "warn"
]
}
}
}Options
| Flag | Description |
|------|-------------|
| --cmd <command> | Upstream server command (stdio mode) |
| --args <a,b,c> | Comma-separated args for the command |
| --env <K=V,K=V> | Extra environment variables |
| --dir <path> | Directory for commitments, keys, and audit chain |
| --mode <warn\|strict> | warn logs mismatches, strict blocks them |
| --server-id <id> | Server identifier for registry lookups |
How it works
- Agent connects to the bridge via stdio
- Bridge connects to the upstream MCP server (stdio or SSE)
- On
tools/listresponse, bridge verifies tool schemas against stored commitments - On
tools/callrequest, bridge injects trace context for distributed tracing - All events logged to the tamper-evident audit chain
Learn more
License
MIT
