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

# Update Custom Mcp

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

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/custom-mcp/{mcp_id}`
- Auth: none declared

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.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
