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

# Update Mcp Server



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/mcp-servers/{server_id}
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/mcp-servers/{server_id}:
    patch:
      tags:
        - v1
        - protected
        - mcp-servers
      summary: Update Mcp Server
      operationId: update_mcp_server_v1_mcp_servers__server_id__patch
      parameters:
        - in: path
          name: server_id
          required: true
          schema:
            title: Server Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MCPServerUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPServerResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    MCPServerUpdate:
      additionalProperties: false
      description: >-
        Patch payload for an MCP server spec. All fields optional — unset =
        unchanged.
      properties:
        cmd:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cmd
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        docker_image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Docker Image Url
        env_schema:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Env Schema
        is_public:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Public
        json_spec:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Json Spec
        name:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: Name
        registry_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Registry Url
        remote_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Remote Url
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: Lifecycle status of the spec (e.g. 'active', 'deprecated').
          title: Status
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
      title: MCPServerUpdate
      type: object
    MCPServerResponse:
      properties:
        cmd:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cmd
        created_at:
          title: Created At
          type: string
        description:
          title: Description
          type: string
        docker_image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Docker Image Url
        env_schema:
          items:
            additionalProperties: true
            type: object
          title: Env Schema
          type: array
        id:
          format: uuid
          title: Id
          type: string
        is_public:
          title: Is Public
          type: boolean
        json_spec:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Json Spec
        name:
          title: Name
          type: string
        registry_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Registry Url
        remote_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Remote Url
        slug:
          title: Slug
          type: string
        status:
          title: Status
          type: string
        tags:
          items:
            type: string
          title: Tags
          type: array
        updated_at:
          title: Updated At
          type: string
        version:
          title: Version
          type: string
      required:
        - id
        - slug
        - name
        - description
        - version
        - tags
        - is_public
        - env_schema
        - cmd
        - status
        - created_at
        - updated_at
      title: MCPServerResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````