---
title: "Toggle Mcp Restriction"
method: PATCH
path: "/api/governance/mcp-servers/{server_id}/restriction"
tags: ["governance", "governance"]
---

# Toggle Mcp Restriction

`PATCH /api/governance/mcp-servers/{server_id}/restriction`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/governance/mcp-servers/{server_id}/restriction`
- Auth: none declared

Open an MCP server to the whole org, or restrict it to the teams that
hold a grant on it.

## Path parameters

- `server_id` string, uuid, required

## Cookies

- `session` string, nullable

## Request body

- McpRestrictionToggle
  - `team_restricted` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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