Castra · Problem types

roles_not_allowed

HTTP 400

The remote /mcp server does not accept as.roles.

Common causes

How to fix

Pass only as: "anonymous" or as: { "userId": "..." }.

Response

{
  "type": "https://castra.mehmetozer.dev/problems/roles_not_allowed",
  "title": "…",
  "status": 400,
  "detail": "…"
}

detail says what exactly went wrong for this request.