dotsagent.io
ภาษา:ไทย
Cline Bot Inc.

เพิ่มเซิร์ฟเวอร์ MCP ใน Cline

Cline จัดเก็บเซิร์ฟเวอร์ไว้ใน cline_mcp_settings.json ในพื้นที่จัดเก็บส่วนขยายของ VS Code หรือใน ~/.cline/mcp.json สำหรับ CLI

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
Key ระดับบนสุด
mcpServers
รูปแบบ
json
OAuth สำหรับเซิร์ฟเวอร์ remote
ไม่มีเอกสารระบุ

ตัวอย่าง config

ตัวอย่างนี้เพิ่มเซิร์ฟเวอร์ที่ GitHub โฮสต์ไว้และ Playwright เป็นเซิร์ฟเวอร์ local โดยใช้รูปแบบที่ไคลเอนต์นี้รองรับ

~/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 รุ่น stable ส่วน VS Code fork อื่น ๆ จะมีโฟลเดอร์ globalStorage ของตัวเอง
  • รายการยังรองรับ disabled และ autoApprove ซึ่งเป็นรายการชื่อเครื่องมือ
  • ไม่มีเอกสารอธิบายการใช้ OAuth กับเซิร์ฟเวอร์ระยะไกล
  • cline mcp เปิดตัวช่วยตั้งค่าแบบโต้ตอบ

สร้าง config สำหรับ Cline →

ไคลเอนต์อื่น

แหล่งที่มา

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