MCP 服务器的 API 路由工具
为 MCP 服务器设计的 API 路由工具。
快速入门
启动代理服务器
- 复制配置文件并编辑:
cp .env.example.toml .env.toml
根据需要修改
.env.toml
。 - 启动代理服务: go run main.go proxy
- 在客户端(如 Cursor)中设置代理 URL: http://localhost:8025/sse/fetch
启动 API 服务器
- 复制配置文件并编辑:
cp .env.example.toml .env.toml
根据需要修改
.env.toml
。 - 启动 API 服务: go run main.go api
- 使用 curl 测试 API:
curl -X POST http://127.0.0.1:8027/v1/list-tools
-H 'Content-Type: application/json'
-H 'Authorization: Bearer fetch'