Skip to main content
POST
Stream an LLM chat turn that uses the MCP server as its toolbelt

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