Search the documentation
7 pages for --strict-mcp-config.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…ctors](/docs/en/mcp#use-mcp-servers-from-claude-ai). Maps to the CLI `--strict-mcp-config` flag…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…settings, and fallback model remain in effect: * `--mcp-config` and `--strict-mcp-config` * `--settings` * `--add-dir` * `--plugin-dir` * `--fallback-model` * `--allow-dangerously-skip-permissions`…
Claude Code changelog
Claude Code CLI · in the page
changelog
…r malformed commands with a dangling `&&` or `||` operator * Fixed `--strict-mcp-config` sessions prompting to approve `.mcp.json` servers they would never load, which left background sessions waiti…
CLI reference
Claude Code CLI · in the page
cli-reference
…| | `--strict-mcp-config` | Only use MCP servers from `--mcp-config`, ignoring all other MCP configurations.…
Control MCP server access for your organization
Claude Code CLI · in the page
managed-mcp
…ns exited with the same error a workstation shows. If a user passes `--strict-mcp-config`, Claude Code exits at startup on a workstation and in a cloud session alike, because that flag asks to replac…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…ags) or the SDK's `settingSources` option. * Start the session with [`--strict-mcp-config`](/docs/en/cli-reference#cli-flags). Claude Code then uses only the MCP servers you pass with `--mcp-config`.…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…ain session also cover servers declared in subagent frontmatter: * [`--strict-mcp-config`](/docs/en/cli-reference) and [`--bare`](/docs/en/cli-reference) * [Enterprise managed MCP configuration](/doc…