Currently, when adding an MCP server to Claude Code, the server is automatically enabled and cannot be disabled without removing it entirely. This creates challenges when:
- Testing new MCP servers that may be unstable or broken
- Temporarily disabling servers for debugging purposes
- Managing multiple MCP servers where some should remain configured but not active
- Developing MCP servers that need to be toggled on/off during development
Add an enable/disable toggle functionality for MCP servers that allows users to:
- Add servers in disabled state: Option to add an MCP server without immediately enabling it
- Toggle existing servers: Enable/disable servers that are already configured
- Persistent state: Remember the enabled/disabled state across Claude Code sessions
Extend the MCP configuration to include an enabled field:
{
"mcpServers": {
"server-name": {
"command": "node",
"args": ["path/to/server.js"],
"enabled": false
}
}
}Add CLI commands for managing server state:
claude-code mcp disable <server-name>claude-code mcp enable <server-name>claude-code mcp list(show enabled/disabled status)
Add an interactive menu when managing MCP servers that shows current status and allows toggling.
- Safer testing: Test new MCP servers without affecting stable workflows
- Better debugging: Isolate issues by disabling specific servers
- Flexible development: Easily toggle servers during development cycles
- Improved user experience: Manage servers without losing configuration
- Developer testing a new MCP server: Add server in disabled state, enable when ready
- Troubleshooting: Disable potentially problematic servers to isolate issues
- Selective usage: Keep multiple servers configured but only enable needed ones
- CI/CD environments: Different enabled states for different environments
Currently, users must completely remove and re-add MCP servers to "disable" them, which:
- Loses configuration settings
- Requires remembering server setup details
- Creates friction in development workflows