---
title: "Update Workspace Mcp Server"
method: PATCH
path: "/v1/workspaces/{workspace_id}/mcp-servers/{server_id}"
tags: ["mcp-servers"]
---

# Update Workspace Mcp Server

`PATCH /v1/workspaces/{workspace_id}/mcp-servers/{server_id}`

Update a server. Organization owners/admins or this workspace's owners/admins.

Only the fields sent are applied. Omit `authorization_token` to leave the
stored token alone, send an empty string to clear it, or send a value to
rotate it.

## Path parameters

- `workspace_id` string, uuid, required
- `server_id` string, uuid, required

## Request body

- WorkspaceMcpServerUpdate — Partial update. Only the fields the caller sets are applied. ``authorization_token`` has three states rather than two, which is what a write-only field needs: omit it to leave the stored token alone, send ``""`` to clear it, send a value to rotate it. An explicit ``null`` also leaves it alone, matching the platform: a client that serializes its whole form back, with an empty token box it never filled in, must not destroy a token it was never shown.
  - `allowed_tools` string[], nullable
  - `authorization_token` string, nullable
  - `enabled` boolean
  - `name` string
  - `purpose_hint` string, nullable
  - `url` string

## Response `200`

Successful Response

- WorkspaceMcpServerPublic — The API-facing shape. Never carries the token, only whether one is set. No ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider key's last four digits let an operator match a stored key against the one in their provider's console, and there is no equivalent workflow for an MCP bearer token.
  - `allowed_tools` string[], nullable, required
  - `created_at` string, required
  - `enabled` boolean, required
  - `has_token` boolean, required
  - `id` string, uuid, required
  - `name` string, required
  - `purpose_hint` string, nullable, required
  - `updated_at` string, required
  - `url` string, required
  - `workspace_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-24** `961e73dbaf8b` — 1 info
  - endpoint added
- **2026-08-21** `2f89238cc674` — 1 breaking
  - api path removed without deprecation
- **2026-08-21** `875cef5dd6a8` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/workspaces/:workspace_id/mcp-servers/:server_id/patch.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/1a5cf829e593/schema)
