← Back to directory
A

Agent Canary

Community
Decoy tools and an execution gateway for AI agent security testing.
Category
Dev Tools #282 of 751
Stars
★ 103 Very popular
Transport
stdio (local process)
Runtime
Node.js 20+
Credentials
No credential needed
License
MIT
Last commit
53FMRS · D

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

Reliability
8/20
Security and permissions
10/20
Maintenance
9/20
Documentation
14/20
Setup experience
12/20
Why each score
Reliability 8/20
The README and manifest claim 12 inert decoy tools and report tests and acceptance results, but the available material contains no source, committed tests, or CI workflows to verify them. Under the static calibration, initialization, tool-behavior consistency, and error handling remain unverified, so the score is limited.
Security and permissions 10/20
The material describes a guarded execution gateway, denied writes, optional alerts, and limitations. It also says native client tools are outside the protection boundary and late side effects remain possible. These behaviors and data flows cannot be checked against source; alerts may be sent, installation requires GitHub Packages authentication, and permission scope and credential-handling details are incomplete. The material shows no evidence of a red-line issue.
Maintenance 9/20
The material identifies an MIT license, a 3.0.0 release, and a public repository, providing version and license information. It provides no commit timeline, dependency-update history, issue-response evidence, or security-response channel. Stars and open issue counts do not add maintenance points.
Documentation 14/20
The README provides installation steps, a client configuration example, an SDK entry point, validation summaries, troubleshooting guidance, and several security limitations, with links to further reports. Deductions reflect missing per-tool parameters and a complete cost account in the available material, as well as the inability to verify linked documents and acceptance evidence.
Setup experience 12/20
The README gives a stdio client configuration example and Docker launch instructions, and states the runtime requirement. npm installation requires GitHub Packages configuration and token authentication, adding steps. The material lacks examples for multiple mainstream clients and verifiable source-level execution evidence.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

Best for

  • Developers and security testers who need to test agent behavior locally.
  • Teams assessing callbacks routed through the gateway and their risk policies.

Not for

  • Users who need to intercept every client-native tool, process, or unregistered callback.
  • Users expecting decoy tools to perform real file, network, or other business operations.
  • Users requiring OS-level confinement or independently reproduced validation.

Required permissions

  • Running the server starts a local process; decoy calls attempt local audit logging.
  • Calls may send alerts if alerts are configured; the required configuration permissions are not specified in the source.
  • GitHub Packages installation requires a GitHub personal access token (classic) with read:packages; using the GHCR image is another listed option.

Risks and side effects

  • Protection covers only callbacks registered and routed through the server; client-native tools and tools outside a plugin boundary are not covered.
  • The source says a non-cooperative callback may still cause a late side effect, and the results do not establish global protection, zero false positives, or complete TOCTOU elimination.
  • Independent reproduction E4 is marked blocked; clean Windows virtual machine validation is also marked blocked.

Setup

Before you start

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"].

MCP config · JSON
{"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.

.vscode/mcp.json
{
  "servers": {
    "agent-canary": {
      "command": "agent-canary",
      "args": [
        "serve",
        "--stdio"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.agent-canary]
command = "agent-canary"
args = ["serve", "--stdio"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add agent-canary -- agent-canary serve --stdio

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

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.

Troubleshooting

  1. For npm 401 errors, check that the token is a classic token with read:packages and enter the GitHub username and token when prompted; npm 9+ requires --auth-type=legacy for prompt-based login.
  2. For 403 errors, check package access for the account and authorize the token for SSO if the organization requires it.
  3. For 404 errors or a missing version, check the package name and version, and confirm the @dorianchn registry is https://npm.pkg.github.com.
  4. Check that Node.js 20+ is installed and that the client config runs agent-canary serve --stdio.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the available Agent Canary security testing tools.
  • Call a decoy tool and describe the trace information it returns.

Use cases

Test how AI agents respond to prompt injection or prohibited actions.
Run local security exercises with decoy calls, trace tokens, and audit logging.
Protect registered callbacks with the SDK gateway and assess risk policies.

Overview

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.

Similar servers

Source revision 2c8e5bba236a Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/shanchuanzhi-agent-canary.svg)](https://followmcp.com/en/servers/shanchuanzhi-agent-canary)