MCP
MCP endpoint (JSON-RPC)
The Streamable HTTP MCP endpoint: `initialize`, then `tools/list` and `tools/call`. The samples use the MCP host `https://mcp.plungeai.com/v1`, the same server.
Headers: send Accept: application/json, text/event-stream. The server is stateless by default; Mcp-Session-Id and MCP-Protocol-Version are optional and forwarded. Every tool, resource and protocol method is in the MCP Reference.
Authorization: send Authorization: Bearer $PLUNGE_API_KEY; X-API-Key: <ozk_ key> is accepted as an alternative.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Body
application/jsonJSON-RPC 2.0 message
Type: object
Response
JSON-RPC response (JSON, or SSE for streamed tool calls)
application/jsontext/event-stream
Missing, invalid, expired or revoked ozk_ key.
Error code: unauthorizedfrom code
rate_limited — Retry-After header
application/json
Stream events
| Event | Description |
|---|---|
notifications/progress | Progress of a long tools/call. |
notifications/message | A log line from the server. |
result | The final JSON-RPC response. |
event: message
data: {"jsonrpc":"2.0","method":"notifications/progress","params":{"progressToken":1,"progress":1,"message":"Running…"}}event: message
data: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"…"}}event: message
data: {"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"…"}]}}