使用说明
麦普罗特
MCP服务器的OpenRouter
启动代理服务器
- 编辑配置文件
cp .env.example.toml .env.toml
编辑 .env.toml 根据需要。
- 启动代理服务器
go run main.go proxy
- 将代理URL添加到MCP客户端,如游标
http://localhost:8025/sse/fetch
确保你已经设置好了 mcp_server_commands.fetch 在……里面 .env.toml
启动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'
确保你已经设置好了 mcp_server_commands.fetch 在……里面 .env.toml