Claude Code · tool · fg-0010

MCP servers with write access to one project load in every directory

Tools for one client's systems are available in an unrelated folder

Verified 2026-08-03 · Confirmed by 0 builders · Trust 50/100

Cause

Servers in the top-level mcpServers block of ~/.claude.json load in every working directory.

Fix

Register servers under each project's own block and keep the top-level block empty unless a server truly belongs everywhere.

Apply

Move entries from mcpServers to projects["/path/to/project"].mcpServers in ~/.claude.json, after backing the file up

Affects: Claude Code, August 2026

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp