MCP examples
JSON-RPC examples for paid MCP access
Use the server-card to create checkout, claim a bearer token, and call the fixed risk-ledger tools.
Initialize
POST /mcp
Authorization: Bearer <token>
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": { "name": "risk-review-agent", "version": "1.0.0" }
}
}
Scan server
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "scan_server",
"arguments": {
"serverUrl": "https://vendor.example/mcp",
"clientConfig": {
"tools": [
{ "name": "write_file", "description": "Create or update files" },
{ "name": "delete_record", "description": "Delete records" }
],
"auth": "bearer"
}
}
}
}
Structured result shape
{
"ok": true,
"workspaceId": "ws_...",
"source": { "type": "scan_server", "serverUrl": "https://vendor.example/mcp" },
"timeRange": { "generatedAt": "2026-05-17T00:00:00.000Z" },
"score": { "overall": 76, "rating": "high" },
"findings": [],
"riskyTools": [],
"recommendedPolicy": {},
"reportUrl": "https://mcpriskledger.clauxel.com/success/?report=...",
"nextActions": []
}