dotsagent.io
语言:简体中文
Cline Bot Inc.

向 Cline 添加 MCP 服务器

Cline 将服务器配置保存在 VS Code 扩展存储中的 cline_mcp_settings.json,CLI 则使用 ~/.cline/mcp.json。

macOS
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
CLI
~/.cline/mcp.json
顶层键
mcpServers
格式
json
远程服务器的 OAuth
未提供文档

配置示例

此示例按该客户端所需的格式,添加 GitHub 托管的服务器和作为本地服务器的 Playwright。

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "github": {
      "type": "streamableHttp",
      "url": "https://api.githubcopilot.com/mcp/",
      "disabled": false
    },
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ],
      "disabled": false
    }
  }
}

注意事项和特殊情况

  • 远程条目必须设置 type streamableHttp;否则 Cline 会回退到旧版 SSE。
  • 此处显示的路径适用于稳定版 VS Code。其他 VS Code 分支使用各自的 globalStorage 文件夹。
  • 条目还支持 disabled 和 autoApprove;autoApprove 是工具名称列表。
  • 未提供远程服务器 OAuth 的文档。
  • 运行 cline mcp 会打开交互式设置向导。

生成 Cline 配置 →

其他客户端

来源

  1. docs.cline.bot/mcp/configuring-mcp-servers
  2. github.com/cline/cline

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期:2026年10月1日