默认带的 5 个 Mcp 有两个直接添加报错 cc-switch
Quick fix
安装缺失的 uvx 和 mcp-server-time 依赖(pipx install uv、pipx install mcp-server-time)后重新添加 MCP。
Symptom
Section titled “Symptom”默认带的 5 个 Mcp 有两个直接添加报错cc-switch 默认带的 5 个 MCP 中,Fetch 依赖 `uvx` 命令,Time 依赖 Python 的 `mcp-server-time`。在 macOS 上如果未先通过 `pipx install uv` 与 `pipx install mcp-server-time` 安装依赖,添加这两个 MCP 会直接报错。维护者在 #136 中提到他和朋友测试 5 个 MCP 都能正常运行,并提示也可能与网络原因有关;用户随后回复“找到问题了”,未再给出其他修复步骤。
在 macOS 上安装 Fetch 依赖:运行 `pipx install uv`。
安装 Time 依赖:运行 `pipx install mcp-server-time`。Time 的 `command` 为 `Pipx`,参数为 `run Mcp-server-time`,`env` 中可配置 `local-timezone`,例如 `Asia/Shanghai`。
如果两个 MCP 仍无法添加,检查网络;可参考 https://github.com/upstash/context7/pull/723 排查。
Affected Versions
Section titled “Affected Versions”ToolClaude Code
Version未知
PlatformsmacOS
Source Issues
Section titled “Source Issues”本页汇总自 1 个真实 issue
- 请问是什么操作系统和平台,cc还是codex?
- 相关讨论确认反馈环境是 macOS 平台、Claude Code(cc)。
- 维护者说 5 个 MCP 都能正常运行,为什么我这边会报错?
- 维护者测试能运行,并提示可排查网络原因,参考 https://github.com/upstash/context7/pull/723 。如果依赖和网络都正常但仍报错,需要提供更具体的错误日志;该 issue 中用户只回复“找到问题了”,未列出更多细节。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。