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

# Rename an MCP Gateway connector or change its tool review

> Change the `name` of a connector (`connectorId` from `getMcpGatewayConnectors`), its `toolReview`, or both, and return it with its `setupStatus` and `cockpitUrl`. `toolReview.newTools` is the status a tool the server lists for the first time takes: `approved`, `approved_if_no_risk` (the default: approved unless its scan finds a risk), `to_review` or `blocked`. `toolReview.changedTools` is what a tool whose definition changes becomes: `keep_status`, `keep_status_if_no_risk` (the default) or `to_review`; a blocked tool stays blocked. The tool prefix, the credential mode and the source never change. To enable or disable it, use `enableMcpGatewayConnector` or `disableMcpGatewayConnector`. A 404 means the company has no such connector. The MCP Gateway serves employees, through their one Primo connection, the tools of the MCP servers (connectors) IT added. No credential is ever sent or returned here: a shared account is connected, and the address or authentication of a custom connector changed, in the cockpit, at `cockpitUrl`. A company without the MCP Gateway gets a 403 `McpGatewayNotEnabledError`; a 503 means Primo could not check it, try again in a minute.

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json patch /mcp-gateway/connectors/{connectorId}
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /mcp-gateway/connectors/{connectorId}:
    patch:
      tags:
        - McpGateway
      summary: Rename an MCP Gateway connector or change its tool review
      description: >-
        Change the `name` of a connector (`connectorId` from
        `getMcpGatewayConnectors`), its `toolReview`, or both, and return it
        with its `setupStatus` and `cockpitUrl`. `toolReview.newTools` is the
        status a tool the server lists for the first time takes: `approved`,
        `approved_if_no_risk` (the default: approved unless its scan finds a
        risk), `to_review` or `blocked`. `toolReview.changedTools` is what a
        tool whose definition changes becomes: `keep_status`,
        `keep_status_if_no_risk` (the default) or `to_review`; a blocked tool
        stays blocked. The tool prefix, the credential mode and the source never
        change. To enable or disable it, use `enableMcpGatewayConnector` or
        `disableMcpGatewayConnector`. A 404 means the company has no such
        connector. The MCP Gateway serves employees, through their one Primo
        connection, the tools of the MCP servers (connectors) IT added. No
        credential is ever sent or returned here: a shared account is connected,
        and the address or authentication of a custom connector changed, in the
        cockpit, at `cockpitUrl`. A company without the MCP Gateway gets a 403
        `McpGatewayNotEnabledError`; a 503 means Primo could not check it, try
        again in a minute.
      operationId: updateMcpGatewayConnector
      parameters:
        - name: connectorId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMcpGatewayConnectorBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMcpGatewayConnectorResponse_Output'
components:
  schemas:
    UpdateMcpGatewayConnectorBody:
      type: object
      properties:
        name:
          description: The name employees and IT see
          type: string
          minLength: 1
          maxLength: 80
        toolReview:
          description: What the tools the server lists become, both settings given
          type: object
          properties:
            newTools:
              description: The status a tool the server lists for the first time takes
              type: string
              enum:
                - approved
                - approved_if_no_risk
                - to_review
                - blocked
            changedTools:
              description: >-
                What a tool whose definition changed becomes; a blocked tool
                stays blocked
              type: string
              enum:
                - keep_status
                - keep_status_if_no_risk
                - to_review
          required:
            - newTools
            - changedTools
    UpdateMcpGatewayConnectorResponse_Output:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        toolPrefix:
          description: What the names of its tools start with
          type: string
        source:
          description: '`catalog` (an entry of the catalog) or `custom` (an address)'
          type: string
          enum:
            - catalog
            - custom
        catalogKey:
          description: The `key` of its catalog entry, null for a custom connector
          anyOf:
            - type: string
            - type: 'null'
        serverUrl:
          description: The origin and the path of the server, never its query or fragment
          type: string
        transport:
          description: >-
            How the gateway talks to the server: `streamable_http`, or `sse` for
            an older server
          type: string
          enum:
            - streamable_http
            - sse
        authentication:
          description: >-
            How the server is signed in to: OAuth (`oauth_dynamic`, or
            `oauth_client` with its client id), a token in a header
            (`header_token`, its header name and scheme), several headers
            (`custom_headers`, their names) or `none`. Never a secret: the
            credential itself is connected in the cockpit
          anyOf:
            - type: object
              properties:
                type:
                  type: string
                  const: oauth_dynamic
                scopes:
                  type: array
                  items:
                    type: string
              required:
                - type
                - scopes
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  const: oauth_client
                clientId:
                  type: string
                scopes:
                  type: array
                  items:
                    type: string
              required:
                - type
                - clientId
                - scopes
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  const: header_token
                headerName:
                  type: string
                scheme:
                  anyOf:
                    - type: string
                    - type: 'null'
              required:
                - type
                - headerName
                - scheme
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  const: custom_headers
                headerNames:
                  type: array
                  items:
                    type: string
              required:
                - type
                - headerNames
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  const: none
              required:
                - type
              additionalProperties: false
        credentialMode:
          description: >-
            `per_employee`: each employee connects their own account; `shared`:
            IT connects one account that every employee uses
          type: string
          enum:
            - per_employee
            - shared
        enabled:
          description: Whether employees are served its tools; IT enables it in the cockpit
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
        listedToolCount:
          description: How many tools its snapshot lists
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        setupStatus:
          description: >-
            The first thing IT still has to do in the cockpit before it serves
            its tools, or `ready`
          type: string
          enum:
            - disabled
            - no_tools_listed
            - shared_credential_missing
            - shared_credential_to_reconnect
            - employees_connect_themselves
            - ready
        cockpitUrl:
          description: Its page in the cockpit, where IT finishes its setup
          type: string
      required:
        - id
        - name
        - toolPrefix
        - source
        - catalogKey
        - serverUrl
        - transport
        - authentication
        - credentialMode
        - enabled
        - createdAt
        - updatedAt
        - listedToolCount
        - setupStatus
        - cockpitUrl
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.