insufficient_scope
HTTP 403The MCP token does not have the scope this tool needs.
Common causes
describe_schemaneedsschema:read,check_accessandexplain_queryneedaccess:check,query_dataneedsdata:read.- Acting as another user (
as: { userId }) needsdata:read:any_user.
How to fix
Create a token with the missing scope: castra mcp token create --scopes .... The response names the missing scope.
Response
{
"type": "https://castra.mehmetozer.dev/problems/insufficient_scope",
"title": "…",
"status": 403,
"detail": "…"
}
detail says what exactly went wrong for this request.