> ## 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.

# How connecting works

> Learn how tenant opt-in, OAuth, and the Hosted MCP endpoint fit together.

The Resource Server exposes `/mcp` on the configured resource origin. The
full URL is the environment's `MCP_RESOURCE_URL`. The server is available
when configured and requires a valid access token for each request.

1. In **Admin → External AI (MCP)**, a tenant administrator sets access to
   **Read-only** and adds the client to the approved list. Access starts **Off**.
2. An approved client starts OAuth for this resource. The user signs in,
   chooses a workspace if prompted, and reviews the workspace and scopes
   before approving. Users can disconnect apps from **Account security → Connected Apps**.
3. The client sends the issued bearer token to `/mcp`. DataTurner checks
   the token, tenant setting, and live user access before it returns data.

See the [token and discovery contract](https://docs.dataturner.io/authentication.md) and the
[Hosted MCP protocol](https://docs.dataturner.io/mcp/overview.md).


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