Variable: allowAnyMcpTool
const allowAnyMcpTool: CanUseTool;
Defined in: core/mcpPermissions.ts:44
Approves any MCP tool call ("mcp__
Dropping a .mcp.json inside a project is itself the user's opt-in (the same trust model
already used for a custom skill dropped into .claude/skills/ — no separate confirmation
step there either), so this approves silently rather than prompting. disallowedTools
still takes full precedence over this — confirmed empirically that a disallowed tool
never even reaches this callback, let alone executes.
Every non-MCP tool the agent can use (Read/Write/Glob/WebFetch/WebSearch, ...) is
normally granted via the tools/allowedTools arrays passed to query(), which
pre-approves them before this callback would ever be consulted — so the "deny"
fallback below is a defensive default for anything unexpected, not something normal
operation should ever hit.