Skip to content

MCP configured and Claude code selected, but not configured in ClaudeCode

Quick fix

Upgrade to the latest CC Switch 4.0 and sync again. If it still fails, save the MCP configuration once and provide logs.

Error output
已经配置MCP服务且勾选Claude code,但是在ClaudeCode中并没有配置到
English translation

The MCP service is configured and Claude code is selected, but it is not configured in ClaudeCode.

MCP synchronization in CC Switch 3.14.1 through 3.16.1 has several related issues: the configuration is not written after selecting Claude Code, command is rewritten when importing a stdio MCP, and switching provider overwrites `~/.claude.json` with an older saved configuration. Content saved in the configuration management interface overwrites `~/.claude.json`, so manually updating the key only in the file may still restore the old value after switching provider.

The maintainer stated that CC Switch 4.0 reworked MCP synchronization: new servers are written directly to each application's configuration, write failures are reported with a retry option, and an error for one server no longer blocks other servers. However, the related issues were closed after receiving no new feedback or under the inactivity policy, so the corpus contains no user confirmation that 4.0 fully resolves every variant.

  1. Upgrade to the latest version of CC Switch 4.0, select Claude Code again, and sync the MCP configuration.

  2. If the old key reappears after switching provider, find the corresponding configuration in CC Switch that overwrites `~/.claude.json`, then remove it or update it with the correct key. Do not modify only `~/.claude.json` manually.

  3. If the MCP still does not appear, exit Claude Code, open the MCP configuration in CC Switch, save it once, and restart Claude Code. A user reported that this worked for Codex, but the corpus does not confirm that it also works for Claude Code.

  4. If the issue still occurs in the latest version, record the CC Switch version, operating system, and synchronization failure message, then submit the relevant logs from `~/.cc-switch/logs/cc-switch.log`.

ToolClaude Code
Version受影响:3.14.1 - 3.16.1
PlatformsWindowsmacOSLinux
Does CC Switch also manage this `.claude.json`?
Yes. An issue reply states that the corresponding configuration in CC Switch overwrites `~/.claude.json`; remove that configuration in CC Switch or correct its key.
Does this issue occur on Windows or when using WSL?
The threads include a report of installing CC Switch on Windows and symlinking the Windows Claude configuration from WSL, as well as a report of importing an MCP configuration in WSL2 on Windows. A different synchronization failure was also reported on macOS 3.14.1.
Has CC Switch 4.0 fixed MCP synchronization?
The maintainer stated that 4.0 reworked MCP synchronization and corrected the related write logic, but no user confirmed a successful retest in the threads. If it still occurs in the latest version, provide the version, operating system, failure message, and logs.

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.