📡 API Endpoints
POST
/api/mcp - MCP JSON-RPC API
GET
/health - Health check & capabilities
GET
/metrics - Prometheus metrics
⚡ Quick Start
1. List Available Tools
curl -X POST https://solahaha.com/api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
2. Validate an sBPF Binary
curl -X POST https://solahaha.com/api/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "validateSbpfBinary",
"arguments": {
"programBinary": "'$(base64 -w 0 program.so)'"
}
},
"id": 1
}'
3. Prepare for Devnet Deployment
curl -X POST https://solahaha.com/api/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "prepareDevnetDeploy",
"arguments": {
"programBinary": "'$(base64 -w 0 program.so)'"
}
},
"id": 1
}'