---
title: "Update an MCP connection"
method: PATCH
path: "/v1/ai/mcp/connections/:id"
tags: ["AI Knowledge"]
---

# Update an MCP connection

`PATCH /v1/ai/mcp/connections/:id`

## Request

- Base URL: `https://api.quillhub.ai`
- URL: `https://api.quillhub.ai/v1/ai/mcp/connections/:id`
- Auth: HTTP bearer

Partial update. Changing anything inside the `stdio`/`http` block changes `launch_fingerprint`, which invalidates the user's launch confirmation on every desktop — that is intentional.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `slug` string
  - `transport` 'stdio' | 'http'
  - `enabled` boolean
  - `stdio` object
    - `command` string, required
    - `args` string[]
    - `env` object
  - `http` object
    - `url` string, required
    - `auth` union
      - object
        - `type` 'none', required
      - object
        - `type` 'bearer', required
        - `token` string, required
      - object
        - `type` 'header', required
        - `header` string, required
        - `token` string, required

## Response `200`

Updated.

- object
  - `connection` object, required
    - `id` string, uuid, required
    - `slug` string, required
    - `name` string, required
    - `transport` 'stdio' | 'http', required
    - `enabled` boolean, required
    - `launch` union, required
      - object
        - `transport` 'stdio', required
        - `command` string, required
        - `args` string[], required
        - `env` object, required
      - object
        - `transport` 'http', required
        - `url` string, required
        - `auth_type` 'none' | 'bearer' | 'header', required
        - `auth_header` string, nullable, required
    - `launch_fingerprint` string, required
    - `tool_prefix` string, required
    - `has_secret` boolean, required
    - `secret_updated_at` string, nullable, required
    - `created_at` string, required
    - `updated_at` string, required

## Other responses

- `400`: Invalid body.
- `401`: Unauthenticated.
- `404`: Not found.
- `409`: Slug already used.

---

[API](https://skmtc.dev/quillhub/apis/quillhub-public-api.md) · [All operations](https://skmtc.dev/quillhub/apis/quillhub-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quillhub/apis/quillhub-public-api/revisions/5bd42ee9d967?raw)
