⌨️--strict-mcp-config Flag
Also known as claude --strict-mcp-config
It loads only the MCP servers you pass with --mcp-config.
Think of it like
It is like you say, we play with this one box. The rest stay on the shelf.
Example
Jack's eval runs must be the same on every laptop. He adds --strict-mcp-config, so no one's own servers sneak extra tools into the test.
Why it matters
Extra servers add tools that can change what Claude does. This keeps them out.
Definition
Example code
bash
claude --strict-mcp-config --mcp-config ./mcp.jsonCommon mistake
Key takeaways
- 1Only yours. From --mcp-config.
- 2Skips the rest. .mcp.json, plugins.
- 3Same everywhere. Good for tests.