OPS中心MCP服务器
一个基于FastAPI的CRUD服务器,用于管理租户、标签、任务映射和代理性能。
快速开始
- 克隆仓库:
git clone https://github.com/YOUR_USER/ops-center-mcp-server.git
cd ops-center-mcp-server
## JSON‑RPC 2.0 Interface
端点: POST /rpc
支持的方法:
get_agent_task_count(agent: str, days: int)list_recent_tasks(agent: str, limit: int)average_completion_time(agent: str)list_tags(tenant_id: int)assign_task(agent: str, task_id: int, workbench_id: int)update_task_status(task_id: int, agent: str, status: str)
有效载荷示例:
{
"jsonrpc": "2.0",
"method": "get_agent_task_count",
"params": {"agent":"Agent A","days":3},
"id": 1
}
---
## 4. Commit & push
git add rpc_server.py requirements.txt README.md git commit -m "Add JSON-RPC 2.0 interface with full set of methods" git push origin main
