---
title: "Update Mcp"
method: PUT
path: "/v1/mcp/{agent_slug}"
tags: ["MCP"]
---

# Update Mcp

`PUT /v1/mcp/{agent_slug}`

Update MCP server status and/or visibility.

## Path parameters

- `agent_slug` string, required

## Headers

- `authorization` string, nullable

## Request body

- MCPUpdate — Schema for updating MCP server configuration.
  - `status` string, nullable — MCP server status (active/inactive)
  - `public` boolean, nullable — Whether the MCP server is publicly accessible

## Response `200`

Successful Response

- MCPGetResponse — Schema for getting MCP server details.
  - `mcp` MCPResponse — Schema for MCP server response.
    - `id` string, required — MCP server ID
    - `agentSlug` string, required — Agent slug
    - `agentId` string, required — Agent ID
    - `organizationSlug` string, required — Organization slug
    - `domain` string, required — Domain for the MCP server
    - `invocationCount` integer — Number of invocations
    - `status` string, required — MCP server status
    - `public` boolean, required — Whether the MCP server is publicly accessible
    - `createdAt` string, date-time, required — Creation timestamp
    - `updatedAt` string, date-time, nullable — Last update timestamp

## Other responses

- `422` — Validation Error

---

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