[Bug] /mcp command with no args resets .claude.json to minimal state, wiping all MCP server configs
Status Closed — not planned
Reported on v2.1.222
Maintainer reply None cached
Activity 1 comment · opened Aug 5, 2026 · closed Sep 7, 2026
Description
Running /mcp (with no arguments) resets the entire .claude.json configuration file to a minimal initial state, wiping out all mcpServers configurations and other user settings.
Steps to Reproduce
- Have multiple MCP servers configured in
mcpServerssection of~/.claude.json - In Claude Code, type
/mcpand press Enter (no arguments) - Observe
.claude.jsonis replaced with a minimal config
Expected Behavior
/mcp with no arguments should display the current MCP server status. It should never modify the config file.
Actual Behavior
The entire .claude.json is overwritten — all mcpServers, projects, customApiKeyResponses, env settings, editorMode, etc. are lost.
Environment
- Platform: macOS (darwin)
- Claude Code version: 2.1.222
- VSCode extension
Impact
This is data loss — user configuration is silently destroyed. Recovery is only possible if the user has manually created a backup.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗