Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

QuarantineGate blocked a rug-pulled MCP tool that mcpproxy had auto-approved

QuarantineGate refuses to start an agent session while an MCP server awaits review or a tool changed since a human approved it. On the real mcpproxy v0.71.1, 8 of 8 scenarios matched.

By David Discua

Measured in the lab

8/8
scenarios matched
0
mcpproxy review count on the auto-approved rug pull
702 ms
qgate check, median of 5
446 ms
prompt hook, median of 5
qgate check2 servers, 3 tools702 ms
Claude prompt hook446 ms
  • a quarantined server blocks check, run and the hooks
  • a changed tool that mcpproxy held as changed blocked
  • a changed tool that mcpproxy auto-approved blocked on the qgate hash
  • qgate run refused to start the agent command while blocked
  • mcpproxy stopped means block (fail closed)

From reports/report.json · run on October 21, 2026. mcpproxy v0.71.1 (commit e35d84d3ad2f) darwin/amd64, Bun 1.4.3; two stdio fixture MCP servers, keyless

How it is wired

MCPreview showsha256mismatchAgentClaude Code, CursorLock fileapproved hashesqgatecheck before startmcpproxyquarantine + reviewBlockedexit 1

01/04Your agent's only MCP entry is mcpproxy.

You can add an MCP server to Cursor or Claude Code in one click, and nothing makes you review its tools before the agent reads them. A server you approved last week can also rewrite a tool description later to slip instructions to the agent, which is a rug pull. mcpproxy already quarantines new servers and holds changed tools for review. QuarantineGate (qgate) turns that state into a go or no-go check in front of the agent, and keeps its own hash of every tool definition a human approved. On the real mcpproxy v0.71.1 with two fixture servers, all 8 scenarios matched, including a rug pull that mcpproxy approved on its own and qgate still blocked. The catch is that the hooks were never run inside a live Claude Code or Cursor session.

The catch

The hook outputs follow each app's docs, checked on October 21, 2026, and their JSON is unit-tested. Nobody ran them inside a real Claude Code or Cursor session for this lab. Neither app lets a session-start hook block the session, so qgate enforces on the next events that can block. Every prompt is rejected and MCP tool calls are denied until the gate is green. qgate run -- <agent> is the hard refusal. In Claude Code, a hook that crashes fails open. In Cursor, failClosed: true applies only to beforeMCPExecution.

qgate only sees servers behind mcpproxy. A server configured directly in the agent is invisible to it. It hashes what mcpproxy captured and does not connect to upstreams itself, and it sees a change only after mcpproxy re-discovers tools. The lock file is written with mode 0600 and is not signed. mcpproxy's own scan ran only on the notes definitions from before the rug pull, so we make no claim about what that scanner would catch.

What we ran (keyless)

bun install --frozen-lockfile
bun run fetch:mcpproxy
bun test
bun run report

From reports/report.json, run on October 21, 2026. notes starts quarantined, weather starts trusted with auto_approve_tool_changes: true, and each rug pull rewrites a fixture's tool file and restarts the upstream:

#Scenarioqgate verdictExitmcpproxy review countReason
1clean, no MCP serversallow00none
2new servers, notes quarantined, weather auto-baselinedblock11server_quarantined, tool_not_in_lock
3after qgate approve notes + weatherallow00none
4rug pull on notes:read_note, held by mcpproxyblock11tool_changed
5after re-approval of notesallow00none
6rug pull on weather:get_forecast, auto-approved by mcpproxyblock10tool_hash_mismatch
7after re-approval of weatherallow00none
8mcpproxy daemon stoppedblock1n/amcpproxy_unavailable

Row 6 is the case the second hash exists for. mcpproxy's review list count is 0 because it accepted the changed description, and qgate blocked on tool_hash_mismatch. Row 2 shows the other gap mcpproxy leaves, a trusted server's first discovery approved without a human. qgate run refused to start the agent command while blocked. A full qgate check took a median of 702 ms over 5 runs with 2 servers and 3 tools, and the Claude prompt hook took 446 ms.

How it is wired

qgate check calls mcpproxy review list, upstream list and review show for each enabled server, so a check makes 2 plus N CLI calls. It blocks on quarantined servers, pending or changed tools, served tools missing from ~/.quarantinegate/lock.json, and any sha256 of name, description, schemas and annotations that differs from the locked one. qgate approve saves the review a human saw and passes it to mcpproxy review approve --from-review, which refuses if a definition changed in between. The example Claude Code settings deny qgate approve and mcpproxy review approve to the agent.

Minilab (open source)

Upstream is smart-mcp-proxy/mcpproxy-go (398 stars, MIT, Go, as of October 24, 2026). The tests download the pinned v0.71.1 binary and verify its sha256. Re-run bun run report and check that matched_expected stays at 8 in reports/report.json.

Run it yourself

SkilledDragonCorp/quarantinegate

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run fetch:mcpproxy && bun run report

SkilledDragon is not affiliated with the mcpproxy-go / Smart MCP Proxy project, Anthropic (Claude Code) or Anysphere (Cursor). Numbers are from our own keyless lab run; re-run the report before relying on them. Marks belong to their owners.

All labs