Windsurf
Shayan Taslim更新
Windsurf 通过 MCP 配置文件和来自 Settings → MCP & API 的 API 令牌连接到 UserJot 的远程 MCP 服务器。
打开 MCP 配置文件
编辑:
text
~/.codeium/windsurf/mcp_config.json添加 UserJot 服务器
在 Settings → MCP & API 中创建 API 令牌,然后添加以下配置:
JSON
{
"mcpServers": {
"userjot": {
"serverUrl": "https://api.userjot.com/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_USERJOT_API_TOKEN"
}
}
}
}Windsurf 支持在 MCP 配置值中插入环境变量,因此你可以在启动 Windsurf 前将令牌存储在 USERJOT_API_TOKEN 环境变量中,而不必将其硬编码在文件中。
重启并验证
编辑配置后,重启 Windsurf,然后打开 MCP 面板并确认服务器 userjot 可用。
如果无法连接,请检查:
JSON 格式有效。
令牌(或环境变量)已正确设置。
令牌尚未在 Settings → MCP & API 中撤销。
配置文件已保存到
~/.codeium/windsurf/mcp_config.json。