---
title: "Deprecated alias of `PATCH /projects/{project_id}/mcp-servers/{slug}`: a partial update, where omitted or `null` fields keep their current value."
method: PUT
path: "/projects/{project_id}/mcp-servers/{slug}"
tags: ["Agents"]
deprecated: true
---

# Deprecated alias of \`PATCH /projects/{project_id}/mcp-servers/{slug}\`: a partial update, where omitted or \`null\` fields keep their current value.

`PUT /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

> **Deprecated.**

## 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`: 5 info
  - api operation id `update_mcp` removed and replaced with `update_mcp_put`
  - endpoint deprecated
  - the request property `config` became nullable
  - added the non-success response with the status `403`
  - …1 more
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/mcp-servers/:slug/put.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)
