Overview
Auth errors are thrown when authentication or authorization fails at the request level. These are public errors that inform clients about what action is needed (re-authenticate, authorize an app, etc.). For internal auth infrastructure errors, see Auth Internal Errors.Error Reference
UnauthorizedError
Thrown when a request is missing valid credentials.AuthConfigurationError
Thrown when the authentication configuration is invalid (e.g., transparent mode on a parent with multiple child providers).SessionMissingError
Thrown when a request arrives without a valid session. This tells the client it needs to authenticate.UnsupportedClientVersionError
Thrown when a client connects with an unsupported MCP protocol version.AuthorizationRequiredError
Thrown when a tool requires app-level authorization the user has not yet granted. Supports progressive/incremental authorization. Behavior depends on session mode:- Stateful: Returns an
auth_urllink for incremental authorization - Stateless: Returns an unauthorized error (user must re-authenticate)
Example (stateful):