Meta · mcp
MCP server (Streamable HTTP)
POST /mcp
Model Context Protocol over Streamable HTTP (JSON-RPC), authenticated with an API key. Tools: ask_human, get_decision, withdraw_ask, list_asks, send_event, report_metric, whoami.
- Who may call it
- Anyone (no credentials)
- Server
- https://api.logu.dev
Request body#
Content type application/json.
Example#
curl -s -X POST "https://api.logu.dev/mcp" \
-H "Authorization: Bearer $LOGU_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
Responses#
200
A JSON-RPC response (or an event stream).
Content type text/event-stream.
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 429 | rate_limited | This API key sent too many requests, or a human did too much too fast: sign-in attempts, workspaces created in a day, or a global daily cap on new accounts was reached. |