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

# Replace the MCP config section and hot-reload



## OpenAPI

````yaml /openapi.json post /api/mcp-config
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/mcp-config:
    post:
      tags:
        - manifest
      summary: Replace the MCP config section and hot-reload
      operationId: post_api_mcp_config
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpConfigUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReloadingError'
          description: The server is applying a config reload; retry shortly.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
      security:
        - ApiKeyAuth: []
components:
  schemas:
    McpConfigUpdate:
      description: |-
        A replacement MCP config section — the full list of MCP server entries
        that overwrites the manifest's ``mcp`` list before the reload.
      properties:
        mcp:
          items:
            $ref: '#/components/schemas/TaiMCPConfig'
          title: Mcp
          type: array
      required:
        - mcp
      title: McpConfigUpdate
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
    ReloadingError:
      properties:
        error:
          const: reloading — the server is applying a config reload; retry shortly
          type: string
        reloading:
          const: true
          type: boolean
      required:
        - error
        - reloading
      type: object
    TaiMCPConfig:
      properties:
        config:
          $ref: '#/components/schemas/MCPConfig'
        exclude:
          items:
            type: string
          title: Exclude
          type: array
        extensions:
          additionalProperties:
            items:
              items:
                anyOf:
                  - type: string
                  - additionalProperties: true
                    type: object
              type: array
            type: array
          title: Extensions
          type: object
        include:
          items:
            type: string
          title: Include
          type: array
        managed:
          anyOf:
            - $ref: '#/components/schemas/ConnectorRef'
            - type: 'null'
          default: null
        title:
          title: Title
          type: string
      required:
        - title
        - config
      title: TaiMCPConfig
      type: object
    MCPConfig:
      properties:
        args:
          items:
            type: string
          title: Args
          type: array
        command:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Command
        env:
          additionalProperties:
            type: string
          title: Env
          type: object
        headers:
          additionalProperties:
            type: string
          title: Headers
          type: object
        type:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Type
        uds:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Uds
        url:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Url
      title: MCPConfig
      type: object
    ConnectorRef:
      description: |-
        Marker on a manifest entry pointing back at a Connection. Hand-authored
        entries leave ``managed`` as ``None`` and are unaffected.
      properties:
        connection_id:
          title: Connection Id
          type: string
        provider_id:
          maxLength: 64
          minLength: 1
          title: Provider Id
          type: string
        sub_service:
          maxLength: 64
          minLength: 1
          title: Sub Service
          type: string
      required:
        - connection_id
        - provider_id
        - sub_service
      title: ConnectorRef
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````