15 pages for --mcp-config.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…o its MCP servers, settings, and fallback model remain in effect: * `--mcp-config` and `--strict-mcp-config` * `--settings` * `--setting-sources` * `--add-dir` * `--plugin-dir` * `--fallback-model` *…
Claude Code changelog
Claude Code CLI · in the page
changelog
…utting down MCP servers added through an `--exec-path` wrapper's own `--mcp-config` when connectors change mid-session * Fixed `claude plugin eval` passing runs that the API refused: a run that ends o…
CLI reference
Claude Code CLI · in the page
cli-reference
…-and-effort). Accepts `--settings`, `--add-dir`, `--plugin-dir`, and `--mcp-config` like the top-level `claude` command. Opening agent view requires an interactive terminal…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…yaml theme={null} claude_args: "--max-turns 5 --model claude-sonnet-5 --mcp-config /path/to/config.json" ``` Common arguments: * `--max-turns`: limit the number of conversation turns * `--model`: mo…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…t-file` | | Settings | `--settings <file-or-json>` | | MCP servers | `--mcp-config <file-or-json>` | | [Custom agents](/docs/en/sub-agents#choose-the-subagent-scope) | `--agents <file-or-json>` | | A…
Control MCP server access for your organization
Claude Code CLI · in the page
managed-mcp
…vers, including plugin-provided servers and servers passed with the [`--mcp-config` CLI flag](/docs/en/cli-reference#cli-flags). The file also suppresses the claude.ai connectors Claude Code fetches i…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…dflags) | Reject the `--plugin-dir`, `--plugin-url`, `--agents`, and `--mcp-config` flags at startup. In cloud sessions, Claude Code instead starts the session and drops the server-delivered `--mcp-co…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…-output-format stream-json` runs, Claude Code also reports a skipped `--mcp-config` entry in the `system/init` event's [`mcp_server_errors` field](/docs/en/headless#stream-responses), so scripts can d…
Manage mods for your organization
Claude Code CLI · in the page
plugins/mods/admin
…ring a session from loading. The setting also rejects `--agents` and `--mcp-config`. Read [`disableSideloadFlags`](/docs/en/settings-reference#disablesideloadflags) before you set it. Mods built into…
Manage Claude Code plugins for your organization
Claude Code CLI · in the page
plugins/org
…plugin-url`, `--agents`, the Agent SDK `plugins` option, and non-SDK `--mcp-config` at startup, and rejects folders named in the [`CLAUDE_CODE_PLUGIN_DIRS`](/docs/en/env-vars#variables) variable the s…
Troubleshoot plugins
Claude Code CLI · in the page
plugins/troubleshooting
…started `claude` with `--plugin-dir`, `--plugin-url`, `--agents`, or `--mcp-config`. Claude Code exited with this message and `Plugins, custom agents, and MCP servers can only be loaded from sources y…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…ld shuts down any stdio, HTTP, or SSE server your wrapper adds with [`--mcp-config`](/docs/en/cli-reference#cli-flags) that isn't in the update. Requires Claude Code v2.1.299 or later. | | `ANTHROPIC_…
Manage sessions
Claude Code CLI · in the page
sessions
…lag from the original launch is restored. If the session depended on `--mcp-config`, `--settings`, `--plugin-dir`, `--fallback-model`, or directories added with `--add-dir`, pass them again when you r…
Claude Code settings
Claude Code CLI · in the page
settings
…erride a user- or policy-level `true`. Servers passed explicitly via `--mcp-config` are unaffected. To deny individual connectors instead of all of them, use [`deniedMcpServers`](/docs/en/managed-mcp)…
Week 20 · May 11–15, 2026
Claude Code CLI · in the page
whats-new/2026-w20
…s `claude agents` gained dispatch flags (`--add-dir`, `--settings`, `--mcp-config`, `--plugin-dir`, `--permission-mode`, `--model`, `--effort`, `--dangerously-skip-permissions`) to configure backgrou…