> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dataturner.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Read the MCP token contract and OAuth 2.1 discovery.

The OAuth 2.1 authorization server issues tokens for approved clients.
Users consent to the requested scopes for their active workspace.

## Resource Server token contract

Send the access token in the `Authorization: Bearer` header on each MCP
request. The server verifies the ES256 signature and requires the JWT
header `typ: "at+jwt"`. Console session JWTs cannot call `/mcp`, and MCP
access tokens cannot call regular REST routes.

| Claim | Requirement |
| - | - |
| `aud` | Exactly `MCP_RESOURCE_URL`, as a string or a single-entry array |
| `iss` | Exactly the configured `MCP_TOKEN_ISSUER` |
| `sub` | User identifier |
| `azp` | OAuth client identifier |
| `org_id` | Active organization identifier. The verifier also accepts `activeOrganizationId`. |
| `scope` | Granted scopes. The verifier also accepts `scp`. Use a space-delimited string or an array. |
| `iat`, `exp` | Issued-at and expiration claims |

## Discover the resource and its scopes

On the MCP resource origin, request
`GET /.well-known/oauth-protected-resource/mcp`. This RFC 9728 document
lists the resource URL, configured authorization server, supported scopes,
and bearer transport method (`header`).

| Scope | Tool access |
| - | - |
| `atlas:read` | Discover and describe Model Atlas objects and query records |
| `workflows:read` | List and read workflow definitions |
| `apps:read` | List and read Record App projections |

A scope is one part of the access check. Tenant opt-in and live user
permissions still apply.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.