{"name":"--strict-mcp-config","slug":"strict-mcp-config","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Only use MCP servers from `--mcp-config`, ignoring all other MCP configurations. See [Exclusive control with managed-mcp.json](\/docs\/en\/managed-mcp#exclusive-control-with-managed-mcp-json) for what the flag does under a managed MCP file","description_source":"docs","described_by":{"doc":"claude-code\/cli-reference","title":"CLI reference"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.281","released_at":"2026-09-23 17:01:17","spans":1}},"aliases":[],"entries":[{"version":"2.1.290","anchor":"safe-mode-is-now-evaluated-lazily-and-uses-the-same-check","heading":"--safe-mode is now checked the same way as --restricted","line":"The `--safe-mode` flag now goes through the same check as `--restricted` and `--strict-mcp-config`, run when it is needed","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text, named in this entry"},{"version":"2.1.288","anchor":"mcp-serve-honours-strict-mcp-config","heading":"claude mcp serve now takes --strict-mcp-config into account","line":"Running `claude mcp serve` now passes the `--strict-mcp-config` option along before the server starts","released_at":"2026-10-02 18:30:40","reason":"found in this entry's text, named in this entry"},{"version":"2.1.285","anchor":"plugin-mcp-server-resolution-with-explicit-refusal-messages","heading":"Claude Code explains why a plugin's MCP server did not connect","line":"When a plugin's MCP server does not connect, Claude Code now gives a reason such as --bare, policy or not approved","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"teammate-spawn-commands-carry-managed-settings-mcp-conf","heading":"Teammate spawn commands carry --managed-settings, --mcp-config and --strict-mcp-config","line":"Spawned teammates and agents now inherit --managed-settings, --mcp-config and --strict-mcp-config from the launching command","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.271","anchor":"dynamicstrict-mcp-config-handling-gains-a-parse-error-fallb","heading":"Dynamic\/strict MCP config handling gains a parse-error fallback path","line":"Dynamic MCP config now degrades gracefully when the enterprise config file can't be parsed","released_at":"2026-09-14 19:45:19","reason":"found in this entry's text"},{"version":"2.1.242","anchor":"cloud-hosted-sessions-now-refuse-local-cli-options-instead-o","heading":"Cloud-hosted sessions now refuse local CLI options instead of quietly dropping them","line":"Running with --cloud now tells you which local CLI options were ignored or refused, and why.","released_at":"2026-08-24 19:16:14","reason":"found in this entry's text"}],"entries_total":6,"docs":[{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":true},{"source":"claude-code","path":"agent-sdk\/python","title":"Agent SDK reference - Python","documented":false},{"source":"claude-code","path":"agent-view","title":"Manage multiple agents with agent view","documented":false},{"source":"claude-code","path":"managed-mcp","title":"Control MCP server access for your organization","documented":false},{"source":"claude-code","path":"mcp","title":"Connect Claude Code to tools via MCP","documented":false},{"source":"claude-code","path":"sub-agents","title":"Create custom subagents","documented":false}],"docs_total":6,"gates":[],"related":[{"name":"--strict","slug":"strict","description":"Incoming file bundles are unpacked and verified in a scratch directory before touching your repo."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/strict-mcp-config","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}