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

# Hosted MCP

> Use the stateless Streamable HTTP endpoint and interpret tool results.

Use the configured `/mcp` resource URL with MCP Streamable HTTP. The
endpoint is stateless and returns JSON for request results. The client
sends its bearer token on each request and uses JSON-RPC 2.0
`tools/list` to discover tools and `tools/call` to run a tool. See
[Authentication](https://docs.dataturner.io/authentication.md) for the OAuth token contract.

## HTTP authentication failures

A missing or invalid bearer token returns HTTP `401 Unauthorized`.
The `WWW-Authenticate` header carries a `Bearer` challenge with a
`resource_metadata` parameter. Follow that URL to find the protected-resource
metadata on the MCP resource origin. Handle this response at the HTTP transport.

## Tool refusals

A refused tool call has `isError: true` in the MCP tool result. Read
`structuredContent` for the `status: "refused"` and `reason` fields after
the HTTP request succeeds.

```json theme={null}
{"status": "refused", "reason": "insufficient_scope"}
```

The table lists all refusal codes raised directly by the MCP adapter.

| Reason | Meaning |
| - | - |
| `mcp_disabled` | Tenant MCP read access is off. |
| `client_not_approved` | The workspace no longer approves this OAuth client. |
| `permission_denied` | The caller lacks the current identity or permissions needed for this read. |
| `rate_limited` | The tenant and client exceeded their request window. |
| `insufficient_scope` | The token lacks the scope required by the tool. |
| `read_authority_changed` | The server could no longer confirm read authority before release. |
| `source_unavailable` | The server or an upstream source could not complete the read. |
| `invalid_request` | The arguments failed input validation. |
| `unknown_tool` | This tool name is unavailable. |
| `atlas_disabled` | Model Atlas tools are disabled. |
| `outlet_scope_unsupported` | The Atlas read cannot enforce the caller's outlet scope. |
| `object_unavailable` | The requested Atlas object is unavailable to the caller. |
| `workflows_disabled` | Workflow reads are disabled. |

The adapter may pass through other `reason` values from the owners below.

* Atlas read authority comes from `platform/ai/agents/authority.atlas_read_denied`.
* Atlas catalogue and query reasons come from `bootstrap/object_catalogue.CatalogueRefusal`
  and `bootstrap/object_semantic_query.QueryError` or `execute_semantic`.
* Integrated row-source reasons come from `platform/integrations/ports/row_source.RowSourceError.cause`.
* Workflow list reasons come from `platform/workflows/service.workflow_projection`.
* `get_workflow` returns the result of `platform/workflows/read_projection.read_workflow` directly.
* `list_record_apps` and `get_record_app` return refusal results directly from
  `platform/record_apps/read_projection`.

The adapter maps an Atlas owner reason of `permission` to
`object_unavailable` and a workflow list owner reason of `permission` to
`permission_denied`.

## Limits and audit

A sliding one-minute limit applies per tenant and OAuth client. After
tenant resolution, DataTurner records a content-free `mcp.tool.call` audit
event. See [Egress and governance](https://docs.dataturner.io/security/egress-and-governance.md).


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