MCP stdio connection failure: cmd /c wrapper prevents Claude Code from connecting
Quick fix
On Windows, if editing MCP configuration introduces a cmd /c wrapper and causes connection failure, check the generated command and args, then upgrade to a…
Symptom
Section titled “Symptom”claude mcp list 显示 ✘ Failed to connectclaude mcp list shows ✘ Failed to connect
This cluster includes several types of MCP issues that cannot be explained by one symptom or fix. #5132 describes the MCP stdio command being wrapped as `cmd /c` on Windows, disrupting stdin/stdout communication. #673 describes Linux commands being incorrectly wrapped in Windows format when editing configuration for WSL on Windows; the maintainer replied that the issue had been fixed. Other issues involve MCP import, saving, syncing external changes, and configuration being re-injected after deletion. The available issues do not establish a shared cause or a unified fix for these cases.
If the issue is a Windows MCP stdio command wrapped as `cmd /c` that fails to connect, compare the command and args before and after generation. #5132 was closed as a duplicate, and a comment points to #1286, but this cluster does not provide that issue’s fixed version or specific resolution steps.
If the issue occurs while managing MCP configuration for WSL on Windows, the maintainer replied that the issue in #673 had been fixed and would be included in a later release; the issue does not specify a version.
If the issue involves importing, saving, syncing external changes, or configuration reappearing after deletion, these are distinct failures. This cluster provides no confirmed general fix.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 10 real issues
- #134mcp 管理功能不支持 wsl
- #453[claude code skills] Windows requires 'cmd /c' wrapper to execute npx
- #673在 Windows 上编辑 WSL 配置时,MCP 服务器命令被错误地包装成 cmd /c 格式
- #1042fix: MCP import ignores external config changes
- #1500[BUG反馈] MCP配置功能异常
- #3082[Bug] 通过 claude mcp remove 卸载 MCP 后,切换供应商时被恢复
- #4644ccswitch 扩展功能中 MCP已有无法导入和添加无法注入问题
- #4645ccswitch 扩展功能中 MCP服务器管理 导入及保存 都无效
- #5132[Windows] MCP stdio 配置中 command 被错误包装为 cmd /c,导致 Claude Code 连接失败
- #5289CC-Switch 在Windows平台启动有黑框弹出。
(No FAQ yet)
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.