Claude Code Switch,基于 CLIProxyAPI 的本地 AI 客户端代理工具
安装
bash
pnpm i -g @kaitranntt/ccs常用命令
bash
ccs config
# 打开仪表盘 http://localhost:3000
使用 gemini cli 模型出现 bug
- 相关 issue
log
API Error: 400 {"error":{"code":400,"message":"The
GenerateContentRequest proto is invalid:\n *
tools[0].function_declarations[24].name: [FIELD_INVALID] Invalid
function name. Must start with a letter or an underscore. Must be
a-z, A-Z, 0-9, or contain underscores (_), dots (.), colons (:),
or dashes (-), with a maximum length of
64.","status":"INVALID_ARGUMENT"}}- 我在特定项目内,发现这样的错误。

- 出现工具识别错误的情况。
- 我判断是 mcp 工具命名过于冗长的缘故,超出了最大长度 64。在我手动修改
.mcp.json的 MCP 工具名称从gitmcp__plus-pro-components__plus-pro-components长名称换成gitmcp__plus-pro-components短名称之后,就能正常运行了。