---
title: "Update Custom Mcp"
method: PUT
path: "/api/custom-mcp/{mcp_id}"
---

# Update Custom Mcp

`PUT /api/custom-mcp/{mcp_id}`

Update an existing custom MCP server. If auth_header_value is not provided, the existing value is preserved.

## Path parameters

- `mcp_id` string, required

## Request body

- CustomMCPUpdateRequest — Request body for updating a custom MCP server. auth_header_value is optional - if not provided, the existing value is preserved.
  - `name` string, required — Display name for the MCP server
  - `server_url` string, required — Streamable HTTP endpoint URL for the MCP server
  - `auth_header_name` string — Header name for authentication
  - `auth_header_value` string, nullable — Pre-shared secret or API key for authentication (optional - if not provided, existing value is preserved)
  - `description` string, nullable — Description of what this MCP server does

## Response `200`

Successful Response

- CustomMCPResponse — Response model for a custom MCP server.
  - `id` string, required
  - `name` string, required
  - `server_url` string, required
  - `auth_header_name` string, required
  - `description` string, nullable, required
  - `is_enabled` boolean, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/versions/2e2a6de8aeda/schema)
