---
title: "PATCH /projects/{project_id}/mcp-servers/{slug}"
method: PATCH
path: "/projects/{project_id}/mcp-servers/{slug}"
tags: ["Agents"]
---

# PATCH /projects/{project_id}/mcp-servers/{slug}

`PATCH /projects/{project_id}/mcp-servers/{slug}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/mcp-servers/{slug}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `slug` string, required

## Request body

- UpdateMcpRequest: Partial update of an MCP server: omitted or `null` fields keep their current value.
  - `config` object, nullable, required: Replacement server config. Omit or send `null` to keep the current config; masked (`***`) credential values keep the stored secret.
  - `description` string, nullable: New description. Omit or send `null` to keep the current description; an empty string clears it (stored and returned as `null`).
  - `name` string, nullable: New display name. Omit or send `null` to keep the current name.

## Response `200`

Updated definition

- McpDefinitionResponse
  - `config` object, required
  - `created_at` string, required
  - `description` string, nullable
  - `id` integer, required
  - `name` string, required
  - `project_id` integer, nullable
  - `slug` string, required
  - `updated_at` string, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: MCP server not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/mcp-servers/:slug/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
