Skip to main content
POST
/
v1
/
mcp-chat
/
stream
Stream an LLM chat turn that uses the MCP server as its toolbelt
curl --request POST \
  --url https://api-sandbox.featherhq.com/v1/mcp-chat/stream \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "messages": [
    {
      "content": "<string>"
    }
  ],
  "end_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "model": "gpt-5.4-mini",
  "max_tokens": 4096
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

x-api-key
string
header
required

Body

application/json

Body for POST /v1/mcp-chat/stream.

messages is the full rolling history. end_user_id (optional) pins the bound end-user for the MCP tool calls — same semantics as the x-end-user-id header on the MCP HTTP endpoint.

messages
ChatMessage · object[]
required
Minimum array length: 1
end_user_id
string<uuid> | null
model
string
default:gpt-5.4-mini

Chat completions model identifier (OpenAI).

max_tokens
integer
default:4096
Required range: 1 <= x <= 16384

Response

Successful Response