Best for
- Developers and security testers who need to test agent behavior locally.
- Teams assessing callbacks routed through the gateway and their risk policies.
The source describes an open-source stdio MCP security testing toolkit. The acceptance record for the frozen 3.0 source reports 100/100 community automated tests passing and gives results for specific environments; independent reproduction E4 remains blocked. Those results apply to the listed source, tests, and environments and do not establish general protection.
Strongest · Documentation 14/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 20+
Node.js 20+ is listed as a requirement. The README provides a GitHub Packages installation flow: configure the @dorianchn npm scope registry and sign in with a GitHub personal access token (classic) that has read:packages, then install @dorianchn/[email protected] globally. The README also provides a GHCR image. Run the MCP stdio server with agent-canary serve --stdio; the example client config after global installation uses command=agent-canary and args=["serve","--stdio"].
{"mcpServers":{"agent-canary":{"command":"agent-canary","args":["serve","--stdio"]}}}
Works in clients that read an "mcpServers" key. For clients such as VS Code that use a different key, the configurator below converts it.
{
"servers": {
"agent-canary": {
"command": "agent-canary",
"args": [
"serve",
"--stdio"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.agent-canary] command = "agent-canary" args = ["serve", "--stdio"]
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add agent-canary -- agent-canary serve --stdio
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm Agent Canary tools appear in the client’s tool list. Call one and verify it returns fabricated trace information rather than performing the represented action.
Once connected, you can ask your AI assistant things like:
Agent Canary is an open-source MCP and SDK security toolkit with 12 inert decoy tools, canary tokens, a guarded execution gateway, local self-tests, and an optional risk-policy console. Decoy calls create fabricated trace tokens, attempt local audit logging, and may send configured alerts; they do not perform the represented actions. The gateway protects only callbacks registered and routed through it; it does not automatically intercept a client's native tools.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 2c8e5bba236a Data synced 2026-12-05 Read the FMRS scoring method Markdown