# 1) initialize
curl -X POST "https://api.omnibrief.app/mcp" \
-H "Authorization: Bearer omni_live_..." \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": { "protocolVersion": "2025-11-05" }
}'
# 2) notifications/initialized (JSON-RPC notification, no id)
curl -X POST "https://api.omnibrief.app/mcp" \
-H "Authorization: Bearer omni_live_..." \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "notifications/initialized",
"params": {}
}'
# 3) tools/list
curl -X POST "https://api.omnibrief.app/mcp" \
-H "Authorization: Bearer omni_live_..." \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list",
"params": {}
}'
# 4) tools/call (Idempotency-Key required)
curl -X POST "https://api.omnibrief.app/mcp" \
-H "Authorization: Bearer omni_live_..." \
-H "Idempotency-Key: idem_mcp_call_001" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "fred.search",
"arguments": { "q": "cpi", "limit": 3 }
}
}'