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

# Update MCP

> Updates an existing MCP configuration by its ID. Requires `x-api-key` authentication.



## OpenAPI

````yaml PUT /ext/mcp/{id}
openapi: 3.0.3
info:
  title: TruGen Developer Platform API
  version: 1.0.0
  description: OpenAPI specification for MCP endpoint
servers:
  - url: https://api.trugen.ai/v1
security: []
paths:
  /ext/mcp/{id}:
    put:
      summary: Update MCP
      description: >-
        Updates an existing MCP configuration by its ID. Requires `x-api-key`
        authentication.
      operationId: updateMCP
      parameters:
        - name: id
          in: path
          required: true
          description: Unique identifier of the MCP
          schema:
            type: string
            format: uuid
            example: 0d585f9a-e992-42d4-bda2-9c25f2bd7eda
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  example: Livekit Docs1
                description:
                  type: string
                  example: MCP server to get livekit info1
                type:
                  type: string
                  example: shttp/sse
                request_config:
                  type: object
                  properties:
                    url:
                      type: string
                      format: uri
                      example: https://www.example.com/information
                    headers:
                      type: object
                      additionalProperties:
                        type: string
                      example:
                        User-Agent: Trugen Avatar
                        Accept: application/json
                  required:
                    - url
              required:
                - name
                - description
                - type
                - request_config
            example:
              name: Livekit Docs1
              description: MCP server to get livekit info1
              type: shttp/sse
              request_config:
                url: https://www.example.com/information
                headers:
                  User-Agent: Trugen Avatar
                  Accept: application/json
      responses:
        '200':
          description: MCP updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    example: dcf04568-6bf5-40cf-bd6f-d68e4cb5b216
                  name:
                    type: string
                    example: Livekit Docs1
                  description:
                    type: string
                    example: MCP server to get livekit info1
                  type:
                    type: string
                    example: shttp/sse
                  request_config:
                    type: object
                  updated_at:
                    type: string
                    format: date-time
                    example: '2025-10-05T12:30:45.123Z'
                required:
                  - id
                  - name
                  - description
                  - type
                  - request_config
                  - updated_at
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Invalid request body
        '401':
          description: Unauthorized – Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Unauthorized: not a valid authorization api key'
        '404':
          description: MCP not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: MCP not found
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Failed to update MCP details
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````