> ## 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.

# Register or reload a sub-MCP app



## OpenAPI

````yaml /openapi.json post /api/sub-mcp
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/sub-mcp:
    post:
      tags:
        - sub-mcp
      summary: Register or reload a sub-MCP app
      operationId: post_api_sub_mcp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubMcpRegistration'
        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.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '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:
    SubMcpRegistration:
      description: >-
        A sub-MCP app registration: the ``slug`` to mount it under, the tool
        names

        it exposes, and the optional ``transport`` (``http`` default).
      properties:
        slug:
          minLength: 1
          title: Slug
          type: string
        tools:
          items:
            type: string
          title: Tools
          type: array
        transport:
          default: http
          title: Transport
          type: string
      required:
        - slug
        - tools
      title: SubMcpRegistration
      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
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````