---
title: "Toggle MCP server enabled/disabled status"
method: POST
path: "/api/v1/mcp-servers/{id}/toggle"
tags: ["mcp-servers"]
---

# Toggle MCP server enabled/disabled status

`POST /api/v1/mcp-servers/{id}/toggle`

## Path parameters

- `id` string, required

## Response `200`

- McpServerResponseDto
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `transportType` 'http' | 'stdio', required
  - `endpoint` string, nullable, required
  - `command` string, nullable, required
  - `args` string[], nullable, required
  - `hasHeaders` boolean, required
  - `headerKeys` string[], nullable, required
  - `enabled` boolean, required
  - `healthCheckUrl` string, nullable, required
  - `lastHealthCheck` string, date-time, nullable, required
  - `lastHealthStatus` 'healthy' | 'unhealthy' | 'unknown', nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `groupId` string, nullable, required

## Changes

- **2026-02-04** `e9f8ffc0b4ff` — 2 info
  - removed the `sse` enum value from the `transportType` response property for the response status `200`
  - removed the `websocket` enum value from the `transportType` response property for the response status `200`
- **2026-02-03** `1c925b8c211d` — 8 breaking, 12 info
  - the response property `args` became nullable for the status `200`
  - the response property `command` became nullable for the status `200`
  - the response property `description` became nullable for the status `200`
  - the response property `endpoint` became nullable for the status `200`
  - …16 more
- **2026-02-03** `4b54e651bd84` — 1 info
  - added the optional property `groupId` to the response with the `200` status
- **2026-02-02** `0c1badf65004` — 1 info
  - endpoint added
- **2026-02-02** `321c48cce199` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/changes/api/v1/mcp-servers/:id/toggle/post.md)

---

[API](https://skmtc.dev/shipsecai/apis/shipsec-studio-api.md) · [All operations](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shipsecai/shipsec-studio-api/revisions/cc60562ad9f3/schema)
