Cognition
เพิ่มเซิร์ฟเวอร์ MCP ใน Windsurf / Devin Desktop
ปัจจุบัน Windsurf ใช้ชื่อ Devin Desktop โดยอ่านไฟล์ mcp_config.json แต่เอกสารทางการระบุตำแหน่งของไฟล์นี้ไม่ตรงกัน
- macOS
~/.config/devin/mcp_config.json (current Cascade doc); legacy ~/.codeium/windsurf/mcp_config.json; FAQ says ~/.codeium/mcp_config.json- Windows
%APPDATA%\devin\mcp_config.json (current Cascade doc)- Linux
~/.config/devin/mcp_config.json (or $XDG_CONFIG_HOME/devin/mcp_config.json)- ไฟล์โปรเจกต์
.devin/mcp_config.json (Devin CLI / Devin Local project scope)- Key ระดับบนสุด
mcpServers- รูปแบบ
- json
- OAuth สำหรับเซิร์ฟเวอร์ remote
- ใช่
ตัวอย่าง config
ตัวอย่างนี้เพิ่มเซิร์ฟเวอร์ที่ GitHub โฮสต์ไว้และ Playwright เป็นเซิร์ฟเวอร์ local โดยใช้รูปแบบที่ไคลเอนต์นี้รองรับ
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"transport": "http"
},
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
devin mcp add github https://api.githubcopilot.com/mcp/
devin mcp add playwright -- npx @playwright/mcp@latest
หมายเหตุและข้อควรระวัง
- Windsurf เปลี่ยนชื่อเป็น Devin Desktop เมื่อ 2026-06-02 และตอนนี้ Devin Local เป็น agent เริ่มต้น
- เอกสาร Cascade ระบุ ~/.config/devin/mcp_config.json, ส่วน FAQ ระบุ ~/.codeium/mcp_config.json และ path เดิมคือ ~/.codeium/windsurf/mcp_config.json ตรวจสอบว่า build ของคุณอ่านไฟล์ใด
- Devin Local เพิ่มขอบเขตระดับโปรเจกต์ใน .devin/mcp_config.json และ .devin/mcp_config.local.json
- รายการเซิร์ฟเวอร์ระยะไกลใช้ url, transport http หรือ sse, headers, oauthClientId, oauthClientSecret และ oauthResource ส่วน Cascade ยังรองรับ serverUrl ด้วย
- ค่าใช้ ${env:VAR} และ ${file:path} ได้ และ Cascade จำกัดเครื่องมือไว้ที่ 100 รายการ
สร้าง config สำหรับ Windsurf / Devin Desktop →
ไคลเอนต์อื่น
Claude DesktopClaude CodeCursorVS Code (GitHub Copilot)ZedOpenAI Codex CLIGemini CLIChatGPTOpenClawClineContinueJetBrains AI Assistant