Skip to main content

Errors

MCP returns structured errors so hosts and agents can recover. Prefer the recovery hint on the error result when present. Agents can also read opensolar://docs/errors.

The tables below are a non-exhaustive list. Ask the agent or read opensolar://docs/errors for the current set of codes.

Common MCP codes​

CodeTypical HTTPWhenWhat to do
MCP_0002403Token lacks the required scopeRe-consent with WRITE or DELETE as needed
MCP_0004403Tool org_id does not match the token orgUse the token organisation; do not pass a different org_id
MCP_0006≥400 (upstream)OpenSolar API returned an errorInspect included error / detail; fix the request payload
MCP_0008403Tool is not on the allowlist / deniedUse a published tool from Tools
MCP_0011402Org missing Raw Data API Access for an API-backed toolEnable Raw Data API Access
MCP_0012429Daily or burst quota exceededWait for Retry-After / window reset; see MCP Limits

Access and policy codes​

Code / signalWhenWhat to do
MCP_ACCESS_0001 / introspect mcp_access_requiredOrganisation missing MCP AccessEnable MCP Access
Introspect mcp_role_deniedUser role lacks MCP Access (view) permissionGrant the role permission

HTTP expectations​

SituationResponse
Unauthenticated POST /mcp401 + WWW-Authenticate with resource_metadata
Rate limited tool call429 + MCP_0012
Successful tool errorTool result / error with MCP code (not always a transport failure)

Recovery tips for agents​

  1. On MCP_0011, tell the user to enable Raw Data API Access — do not retry in a loop.
  2. On MCP_0002, stop and request re-authentication with broader scopes.
  3. On MCP_0012, back off using Retry-After or the daily reset time.
  4. On MCP_0006, surface the upstream API message; many cases are validation errors on fields.