Developer & Agent API Portal
Model Context Protocol (MCP) Guide
Connect MCP-compatible AI assistants to Fusion Bot using streamable HTTP JSON-RPC 2.0 at /api/mcp.
MCP Discovery & Endpoint
- Manifest:
GET https://panel.fusionhub.in/.well-known/mcp(also aliased at/.well-known/mcp.json) - Streamable HTTP JSON-RPC 2.0 Endpoint:
POST https://panel.fusionhub.in/api/mcp(Protocol version2024-11-05) - Implemented Live Tools (
tools/call):get_bot_stats,get_bot_info, andget_pricing_plansreturn live JSON telemetry; additional agent tool definitions appear intools/list.
MCP Client Example Requests
bash
curl -sS -X POST "https://panel.fusionhub.in/api/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":"1","method":"initialize"}'
bash
curl -sS -X POST "https://panel.fusionhub.in/api/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":"2","method":"tools/list"}'
javascript
const rpc = await fetch('https://panel.fusionhub.in/api/mcp', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 'stats-check',
method: 'tools/call',
params: { name: 'get_bot_stats', arguments: {} }
})
});
console.log(await rpc.json());
python
import requests
r = requests.post(
"https://panel.fusionhub.in/api/mcp",
json={
"jsonrpc": "2.0",
"id": "pricing-1",
"method": "tools/call",
"params": {"name": "get_pricing_plans", "arguments": {}},
},
timeout=5,
)
print(r.json()["result"])