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

# MCP Connection Not Established

> The referenced connection exists but is not in the connected state.

**HTTP status:** 400

## Error message

```
The MCP connection is not in a connected state.
```

## When this error occurs

A `connection_id` was referenced for a connection that is still `pending` (the OAuth consent was never completed) or in
`error`. Only `connected` connections resolve a bearer token at run time.

## How to fix

Complete the OAuth flow — visit the authorize URL returned by `POST /mcp-connections` and consent — then confirm
`GET /mcp-connections/{id}` shows `status: connected`. If it's stuck, delete it and reconnect.
