2xx range mean success, 4xx codes mean a problem with the request, and 5xx codes mean a problem on Lunacal’s side.
Handling errors
401 — Access token expired
401 — Access token expired
Call
/api/mcp/refresh to get a new token pair, then retry the original request once.400 — Refresh token invalid
400 — Refresh token invalid
The refresh token has expired, was already used, or was revoked. Send the user through the authorization flow again.
400 — Unknown key on update
400 — Unknown key on update
event-types/update uses a strict schema. Remove any fields not listed in its reference.405 — Method not allowed
405 — Method not allowed
Every MCP endpoint accepts
POST only, including read operations.