Gateway
One process sits between the agent and every MCP server. Stdio in, a namespaced catalog out.
Drawbridge
An MCP gateway that treats every tool result as untrusted, and asks you before an agent sends anything out.
One process sits between the agent and every MCP server. Stdio in, a namespaced catalog out.
First-match policy decides the scanner. Untrusted results come back between <<untrusted>> and <<end untrusted>>, and the session is tainted.
After untrusted content, a send waits for a person. Approve once, or deny. Unanswered calls are denied after 120 seconds. Approvals are once-only.
Every event is hashed to the one before it. The in-browser replay recomputes the chain from a JSONL log; nothing is trusted just because it is on disk.
The attack suite is 8/8 on the scenarios below. This is the recorded run in docs/attack-results.md, not a forecast.
| Scenario | Expected | Result |
|---|---|---|
| Indirect prompt injection to exfiltration | fixture wrapped, then held and not sent | Pass |
| Direct prompt injection to exfiltration | argument echoed wrapped, then held and not sent | Pass |
| Tool-description poisoning | tool description wrapped | Pass |
| Rug pull after the first tools/list | first call allowed, changed description denied | Pass |
| Confused deputy (client credentials) | client credentials stripped and not forwarded | Pass |
| Secret leakage | secret absent from audit, stderr, and dashboard | Pass |
| Audit tampering | audit verify exits 1 | Pass |
| Kill switch | new call denied while paused | Pass |
fixture wrapped, then held and not sent
Passargument echoed wrapped, then held and not sent
Passtool description wrapped
Passfirst call allowed, changed description denied
Passclient credentials stripped and not forwarded
Passsecret absent from audit, stderr, and dashboard
Passaudit verify exits 1
Passnew call denied while paused
PassSee a held send, a wrap, and the hash chain in the browser.
Open the audit replayInstall, build, and run the local demo. The config below is trimmed from examples/drawbridge.yaml. The README has the full file and the demo script.
pnpm install pnpm build pnpm demo
# examples/drawbridge.yaml
# Credentials use env: or file: refs.
scanner:
mode: wrap
upstreams:
notes:
command: ["node", "examples/demo-upstream/dist/index.js"]
trusted: false
mail:
command: ["node", "examples/demo-upstream/dist/index.js", "mail"]
trusted: true