46 lines
880 B
Markdown
46 lines
880 B
Markdown
# Windsurf
|
|
|
|
Windsurf 是 Codeium 推出的 AI 代码编辑器,支持 MCP 协议。
|
|
|
|
## 配置步骤
|
|
|
|
### 1. 找到配置文件
|
|
|
|
| 系统 | 路径 |
|
|
|------|------|
|
|
| macOS | `~/.codeium/windsurf/mcp_config.json` |
|
|
| Windows | `%USERPROFILE%\.codeium\windsurf\mcp_config.json` |
|
|
| Linux | `~/.codeium/windsurf/mcp_config.json` |
|
|
|
|
如果文件不存在,手动创建即可。
|
|
|
|
### 2. 编辑配置文件
|
|
|
|
```json
|
|
{
|
|
"mcpServers": {
|
|
"my-api": {
|
|
"type": "http",
|
|
"url": "https://www.agentfoxapp.com/mcp/{projectId}",
|
|
"headers": {
|
|
"Authorization": "Bearer {your-api-key}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### 3. 重启 Windsurf
|
|
|
|
保存配置后,重启 Windsurf 使配置生效。
|
|
|
|
## 验证连接
|
|
|
|
在 Windsurf 的 Cascade 对话中:
|
|
|
|
```
|
|
你:请调用 get_project_overview 查看我的 API 概览
|
|
```
|
|
|
|
如果返回了项目信息,说明配置成功。
|