Claude Code cannot see a newly enabled MCP - cc-switch
Quick fix
Upgrade cc-switch to the latest version, or copy the contents of the sibling .claude.json into the one inside CLAUDE_CONFIG_DIR by hand.
Symptom
Section titled “Symptom”Claude Code 看不到新启用的 MCP。cc-switch DB 里 enabled_claude=1,UI 显示已启用,但 Claude Code 完全没反应。Claude Code cannot see a newly enabled MCP. The cc-switch DB has enabled_claude=1 and the UI shows it enabled, but Claude Code does not react at all.
Reading the source shows that with CLAUDE_CONFIG_DIR set explicitly, Claude Code reads .claude.json and other config from inside that directory. But older cc-switch versions derived the MCP config path wrongly and wrote it as a sibling of the custom config directory, so the file cc-switch writes and the path Claude Code reads do not match. Early versions also failed to detect the CLAUDE_CONFIG_DIR environment variable automatically.
Upgrade cc-switch to the latest version for the .claude.json path derivation fix under a custom config directory and the environment variable detection fix.
If you are not upgrading yet, copy the fields from the sibling .claude.json cc-switch generated into the .claude.json under the CLAUDE_CONFIG_DIR path by hand.
To migrate session history off the C drive, set the CLAUDE_CONFIG_DIR environment variable and change the CLI tool directory in CC Switch settings to the same path, or create a directory link with mklink /J.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 3 real issues
- Why are there two .claude.json files on disk?
- Because cc-switch wrote the MCP as a sibling of the override directory while Claude Code, in CLAUDE_CONFIG_DIR mode, reads the .claude.json inside the directory.
- What are the default Claude Code config paths?
- By default settings.json lives in ~/.claude/ while the global state and MCP config .claude.json lives at ~/.claude.json — the two are split by design.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.