Update an MCP server registration
PATCH /v1/mcp-servers/{mcp_server_id}
| Property | Value |
|---|---|
| Operation | update_mcp_server |
| Group | MCP servers |
| Scope | mcp:write |
| Route class | control |
| Idempotency | No Idempotency-Key |
| Audit | Audited mcp.server.update (mutation) |
| Released in | 1.60.0 |
| Phase 0 host | Served (the hosted api pins 1.65.0) |
Changes the registration at the revision If-Match names (1.60.0). Each newly allowed tool is pinned from the latest listing; a tool the listing lacks is mcp_tool_not_listed, an unsupported one mcp_tool_unsupported (McpServerIssueCode). Allowing a tool writes an Audit event naming it.
Request
Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the mcp:write scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.
curl -X PATCH "$VOCAL_API/v1/mcp-servers/mcps_..." \
-H "Authorization: Bearer $VOCAL_API_KEY" \
-H 'If-Match: "1"' \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch(`${process.env.VOCAL_API}/v1/mcp-servers/mcps_...`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.VOCAL_API_KEY}`,
'If-Match': '"1"',
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
console.log(response.status, await response.text());import os
import requests
response = requests.patch(
f"{os.environ['VOCAL_API']}/v1/mcp-servers/mcps_...",
headers={
"Authorization": f"Bearer {os.environ['VOCAL_API_KEY']}",
"If-Match": '"1"',
},
json={},
)
print(response.status_code, response.text)Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
mcp_server_id | path | McpServerId | yes | The id of an MCP server registration: mcps_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log. |
if-match | header | string | yes | The revision the change was made against, quoted as the ETag returns it, or * to overwrite. |
Request body
Content type application/json, required: McpServerUpdateRequest.
| Field | Type | Required | Description |
|---|---|---|---|
allowed_tools | array of UpstreamToolName | no | Replaces the allowed tools; each newly allowed tool is pinned from the latest listing. |
default_timeout_ms | integer | no | |
enabled | boolean | no | False disables the registration; true enables it again. |
name | McpServerName | no |
Responses
| Status | Content type | Shape | Error codes |
|---|---|---|---|
200 | application/json | McpServer | |
400 | application/json | ErrorEnvelope | invalid_request |
401 | application/json | ErrorEnvelope | unauthenticated |
403 | application/json | ErrorEnvelope | forbidden, org_suspended |
404 | application/json | ErrorEnvelope | not_found |
412 | application/json | ErrorEnvelope | revision_mismatch |
422 | application/json | ErrorEnvelope | validation_failed |
428 | application/json | ErrorEnvelope | precondition_required |
429 | application/json | ErrorEnvelope | rate_limited |
500 | application/json | ErrorEnvelope | internal_error |
Fields of the 200 answer
The shape is McpServer.
| Field | Type | Required | Description |
|---|---|---|---|
allowed_tools | array of UpstreamToolName | yes | The tools a Member with mcp:write approved; a tool not listed is never offered to any Agent. |
auth | McpServerAuth | yes | |
authorization_server | string or null | yes | The issuer the client discovered for oauth (RFC 9728, RFC 8414); null before discovery or for other auth. |
connection_id | ConnectionId | yes | The Connection the registration created for its credential. |
created_at | Timestamp | yes | |
default_timeout_ms | integer | yes | |
drift_count | integer | no | How many pinned tools the latest listing found changed or removed (1.61.0): above 0 exactly while status is drift_pending; absent from an api before 1.61.0. |
endpoint | McpEndpoint | yes | |
id | McpServerId | yes | |
last_listed_at | Timestamp or null | yes | |
name | McpServerName | yes | |
object | "mcp_server" | yes | |
organization_id | OrganizationId | yes | |
pins | array of McpToolPin | yes | |
protocol_version | string or null | yes | The negotiated MCP revision; null before the first listing. |
revision | integer | yes | |
status | McpServerStatus | yes | |
updated_at | Timestamp | yes |