MCP with AgentFox
what gets checked, and where
A scan on Monday says nothing about the call on Thursday. So each server is scanned without being started, each tool's definition is pinned, and at call time a changed definition, an undeclared tool or a poisoned result is caught where it happens.
Three lines
Everything starts in Watch: nothing is stopped until you switch a library to Block.
agentfox scan mcp # the servers in this repository's config; starts none of them agentfox scan machine # the servers Claude Code, Cursor, VS Code, Codex and others load on this machine agentfox permit grant <agent> mcp:github/search_issues --yes
What gets checked
Each row is a check that runs in your process, before the thing it checks happens.
| Checked | How |
|---|---|
| Each server's config | What it can reach, a version that is not pinned, a token written into env, a remote server with no auth; configs of Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Cline, Gemini CLI and Codex are read |
| Each tool's definition | Snapshotted from tools/list; a later name, description, schema or impact change refuses the tool's calls with mcp.schema_drift and raises an issue, and accepting the change takes two people |
| Each call | Authorised as mcp:<server>/<tool> against the agent's grants, from Python (McpGovernor), any language (the guard API) or the Claude Code and Codex hooks |
| Each result | Checked as tool output for injected instructions; an argument later derived from it keeps that taint |
| A tool nobody registered | Becomes an observed tool and a discovery finding instead of staying invisible |
Found in the code by agentfox scan: .mcp.json, .cursor/mcp.json, .claude/settings.json, claude_desktop_config.json and similar, plus installed skills. The scan reads the repository and runs nothing, so it works before any of the lines above are added.
- The scan reads config files and saved tools/list responses. It never starts a server, so a tool list has to be saved to a file and scanned to be pinned.
- Hosted MCP tools OpenAI runs inside the Responses API have run before the response arrives: recorded, not stopped.
- Pull requests: the GitHub Marketplace Action (uses: architsharm/agentfox@main) scans each PR's MCP config for lethal trifectas and poisoned tool descriptions, offline, with no account.
- Laptops: agentfox scan machine lists the servers every AI tool on the machine loads, with unpinned versions and tokens written into env, before any of them is started.
- Assistants: the server on the official MCP Registry (io.github.architsharm/agentfox, uvx agentfox serve mcp) answers which agent holds which tools and what was held, read-only.
Where to go from here
MCP servers: scan, pin, record the tools, grant them Tool access: which tools the agent may call What the checks catch, with their limits Every framework
Try AgentFox on your own agent
One command finds your agents. It starts in watch mode, so nothing is blocked until you say so.
uvx agentfox scan