适用于MCP服务器的OpenRouter

cp .env.example.toml .env.toml
根据需要编辑.env.toml。
go run main.go proxy
http://localhost:8025/sse/fetch
确保在.env.toml中设置了mcp_server_commands.fetch。
cp .env.example.toml .env.toml
根据需要编辑.env.toml。
go run main.go api
curl -X POST http://127.0.0.1:8027/v1/list-tools \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer fetch'
确保在.env.toml中设置了mcp_server_commands.fetch。