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

# MCP streaming request

> The SDK accepts a GET with Accept: text/event-stream. Mill closes the per-request server after the response is created and does not provide a persistent event session. Use POST JSON-RPC for normal tool calls. Missing the SSE Accept type returns HTTP 406.

An OAuth bearer token issued for this installation's MCP resource is required. Static REST API keys cannot access /mcp.

The SDK accepts a GET with Accept: text/event-stream. Mill closes the per-request server after the response is created and does not provide a persistent event session. Use POST JSON-RPC for normal tool calls. Missing the SSE Accept type returns HTTP 406.

[Request conventions](https://www.mill.fyi/api-reference/overview.md) · [API keys](https://www.mill.fyi/api-keys.md) · [MCP connections](https://www.mill.fyi/mcp-connections.md)


## OpenAPI

````yaml api-reference/openapi.json GET /mcp
openapi: 3.1.0
info:
  title: Mill HTTP API
  version: 1.0.6
  description: >-
    All registered task-board, account, OAuth, MCP transport and health
    operations. MCP tool schemas come from runtime validators; account
    operations follow their server handlers. Example data is fictional.
    Generation imports routes without issuing requests or connecting to a
    database.
servers:
  - url: https://mill-api.example.com
security: []
paths:
  /mcp:
    get:
      tags:
        - OAuth and MCP transport
      summary: MCP streaming request
      description: >-
        The SDK accepts a GET with Accept: text/event-stream. Mill closes the
        per-request server after the response is created and does not provide a
        persistent event session. Use POST JSON-RPC for normal tool calls.
        Missing the SSE Accept type returns HTTP 406.


        An OAuth bearer token issued for this installation's MCP resource is
        required. Static REST API keys cannot access /mcp.
      operationId: get_mcp
      parameters:
        - name: Accept
          in: header
          required: true
          schema:
            type: string
          description: text/event-stream
      responses:
        '200':
          description: >-
            Successful response. Examples are illustrative; field values vary by
            record.
          content:
            text/event-stream:
              schema:
                type: string
        default:
          description: >-
            Request failure. Inspect code, message and requestId; respect
            Retry-After on HTTP 429.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - mcpBearer: []
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
  securitySchemes:
    mcpBearer:
      type: http
      scheme: bearer
      description: OAuth bearer token issued for /mcp; REST API keys are not accepted

````

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