claude --strict-mcp-config
Only use MCP servers from --mcp-config.
Example
claude --strict-mcp-config --mcp-config ./mcp.jsonSource: Claude Code CLI reference, checked 2026-10-24.
More flags
- --settings: Load a settings file or inline JSON for this session.
- --session-id: Use a specific session UUID.
- --fork-session: When resuming, create a new session ID instead of reusing the original.