主题
Cline 接入
Cline(前身 Claude Dev)是 VS Code 上的开源 AI 编程扩展,原生支持 MCP 远程服务器。
一、安装 Cline
- VS Code 扩展商店搜索 Cline(发布者 saoudrizwan)→ 安装
- 左侧活动栏会出现 Cline 图标,点击打开
- 第一次使用会要求填模型 API Key(OpenAI / Anthropic / DeepSeek 任选)

二、配置 AI 大模型
Cline 支持十几家供应商:
- 主面板顶部齿轮 → API Provider 下拉选一家
- 填入 API Key 与模型 ID(如
claude-3-5-sonnet-20241022/deepseek-chat) - 点 Done 保存

推荐 Claude 3.5 Sonnet / Claude Opus 4 / DeepSeek-V3,工具调用稳定。
三、配置 Keepamore MCP
- Cline 主面板顶部 MCP Servers 图标(叠在一起的方块)
- 点 Remote Servers 标签 → Add Server

- 表单填:
| 字段 | 值 |
|---|---|
| Server Name | keepamore |
| Server URL | https://mcp.keepamore.com/mcp |
| Headers | X-API-Key = km_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |

- 点 Add Server,状态变绿,并自动拉取工具列表
Cline 也支持直接编辑
cline_mcp_settings.json(路径在主面板 → MCP → Edit Settings),格式与 Claude Desktop 类似但字段是url+headers,不需要mcp-remote桥接。
json
{
"mcpServers": {
"keepamore": {
"url": "https://mcp.keepamore.com/mcp",
"headers": { "X-API-Key": "km_xxx" },
"disabled": false,
"autoApprove": []
}
}
}四、配置 Keepa 数据分析师 Custom Instructions
- Cline 主面板齿轮 → Custom Instructions
- 粘贴 Keepa 数据分析师 prompt
- 保存
Cline 的 Custom Instructions 是全局生效的,会附加到每次对话的 system prompt。如果你同时还在写代码,建议精简一下 prompt 只保留"工具调用规范"那几段。

五、开始对话
直接在 Cline 输入框提问:
帮我看下 B08N5WRWNW 最近 60 天的价格走势,并分析一下当前是否值得入手Cline 会显式弹出 工具调用申请(keepa_get_product),点 Approve 后执行;也可以勾选 Auto-approve 让常用工具免确认。

可以把常用 Keepamore 工具加到 Auto-approve 列表,提高效率:
keepa_get_quota(免费,可放心 auto)keepa_time_convert(免费)keepa_get_product(按需)keepa_product_search(按需)
高消耗工具(
keepa_product_finder/keepa_get_product带offers)建议不要 auto-approve,避免 AI 误判刷掉大量 units。
故障排查
| 现象 | 原因 | 处理 |
|---|---|---|
| Add Server 保存后无工具 | URL 或 header 错 | 鼠标悬停服务名看错误提示,常见是 401 / DNS |
报 Method not allowed | 客户端走了 SSE 老协议 | 升级 Cline 到最新版(≥ 3.x 支持 Streamable HTTP) |
| 工具调用全部 timeout | 公司代理拦截 SSE | 在 VS Code 设置 http.proxy 配代理,或换网络 |
| Auto-approve 失效 | 名称大小写或前缀错 | 必须完整工具名 keepa_get_quota |
下一步:Codex 接入 · 扣子 Coze 接入