使用说明
Cloudbet体育MCP服务器
单个文件,实现最少 模型上下文协议 (MCP)使用Cloudbet公共API进行体育数据和博彩工具曝光。此演示服务器遵循 MCP服务器规范 并且仅用于教育和演示目的。请负责任地使用,并自行承担风险。
- 运行服务器:
go run .
- 列出工具(描述):
curl -X POST http://localhost:8080/ -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}' | jq .
- 调用工具:
curl -X POST http://localhost:8080/ -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "findEventsAndMarketsByCompetition",
"arguments": {
"competitionName": "Premier League"
}
}
}' | jq .