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

# Update MCP server

> Update an existing MCP server. All fields are optional.

`authentication_method` determines how the server authenticates requests. Possible values:
- `none`: no authentication required
- `url`: credentials are appended to the `url` as the `apiKey` query parameter
- `bearer_token`: credentials are sent as a Bearer token in the Authorization header (provide the token in the `credentials` field)




## OpenAPI

````yaml /api-reference/openapi-v3.yaml patch /api/v3/mcp/{id}
openapi: 3.1.0
info:
  title: LightOn API
  version: 3.15.0 (v3)
  description: >-
    LightOn gives you an API to search, parse, and ingest documents at scale.
    Build knowledge-retrieval pipelines without managing vector databases or OCR
    models.
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Facets
    description: Operations about facets
  - name: Tags
    description: Operations about tags
  - name: Workspaces
    description: Operations about workspaces
  - name: Files Processing
    description: Operations about files processing
  - name: Users
    description: Operations about users
  - name: API Keys
    description: Operations about API keys
  - name: User Groups
    description: Operations about user groups
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/mcp/{id}:
    patch:
      tags:
        - MCP
      summary: Update MCP server
      description: >
        Update an existing MCP server. All fields are optional.


        `authentication_method` determines how the server authenticates
        requests. Possible values:

        - `none`: no authentication required

        - `url`: credentials are appended to the `url` as the `apiKey` query
        parameter

        - `bearer_token`: credentials are sent as a Bearer token in the
        Authorization header (provide the token in the `credentials` field)
      operationId: api_v3_mcp_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedUpdateMCPServerRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedUpdateMCPServerRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedUpdateMCPServerRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPServerResponse'
          description: ''
        '400':
          description: Invalid request data
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions
        '404':
          description: MCP server not found
        '503':
          description: >-
            API is under maintenance. Check `GET /api/v3/system/status` for
            active periods and retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceMaintenance503'
      security:
        - bearerAuth: []
components:
  schemas:
    PatchedUpdateMCPServerRequest:
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
        url:
          type:
            - string
            - 'null'
        authentication_method:
          oneOf:
            - $ref: '#/components/schemas/AuthenticationMethodEnum'
            - $ref: '#/components/schemas/NullEnum'
        credentials:
          type:
            - string
            - 'null'
        enabled:
          type:
            - boolean
            - 'null'
        availability_scope:
          oneOf:
            - $ref: '#/components/schemas/AvailabilityScopeEnum'
            - $ref: '#/components/schemas/NullEnum'
        authorized_company_id:
          type:
            - integer
            - 'null'
        authorized_group_id:
          type:
            - string
            - 'null'
          format: uuid
    MCPServerResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        object:
          type: string
          default: mcp_server
        name:
          type: string
        url:
          type:
            - string
            - 'null'
        authentication_method:
          type: string
        has_credentials:
          type: boolean
        enabled:
          type: boolean
        availability_scope:
          type: string
        is_global:
          type: boolean
        company_id:
          type:
            - integer
            - 'null'
        group_id:
          type:
            - integer
            - 'null'
      required:
        - authentication_method
        - availability_scope
        - enabled
        - has_credentials
        - id
        - is_global
        - name
    ServiceMaintenance503:
      type: object
      description: >-
        Returned by the maintenance middleware when the requested endpoint is
        blocked.
      required:
        - detail
        - error
        - mode
      properties:
        detail:
          type: string
          example: System is under maintenance.
        error:
          type: string
          example: service_maintenance
        mode:
          type: string
          enum:
            - full_shutdown
            - warning_banner
          description: >-
            `full_shutdown` blocks all traffic; `warning_banner` also blocks and
            shows a dismissible toast.
        reason:
          type: string
          description: Operator-supplied maintenance reason, if any.
        started_at:
          type: string
          format: date-time
        endpoint_category_names:
          type: array
          items:
            type: string
          description: >-
            Non-empty only for category-scoped periods. Empty means all
            endpoints are affected.
    AuthenticationMethodEnum:
      enum:
        - none
        - url
        - bearer_token
      type: string
      description: |-
        * `none` - none
        * `url` - url
        * `bearer_token` - bearer_token
    NullEnum:
      type: 'null'
    AvailabilityScopeEnum:
      enum:
        - all_companies
        - selected_company
        - selected_companies
      type: string
      description: |-
        * `all_companies` - all_companies
        * `selected_company` - selected_company
        * `selected_companies` - selected_companies
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````