Skip to main content
Every request to the MCP server requires a Bearer token in the Authorization header. There are four supported token types, evaluated in this priority order:

Required scope

All API keys used with the MCP must carry the mcp:patient-state scope. Keys without this scope receive 403 Forbidden. Create a key with the correct scope in the Console or with the CLI:

Patient Tokens

Patient Tokens are short-lived (15 min) JWTs locked to a single patient. Use them when running an agent on a patient-facing device; the patient_id is embedded in the token and cannot be overridden by the caller. Mint server-side using the SDK. The API key used here must carry the sdk:patient-token scope; create one with olira keys create --name "token-minter" --scopes sdk:patient-token.
When using a Patient Token, omit patient_id from all tool arguments; it is resolved automatically from the token.

Authentication errors