MCP Gateway

Update an MCP gateway

Updates mutable fields of an existing MCP gateway. Omitted optional fields keep their current values.

patch/v2/mcp-gateways/{id}

Path parameters

idstring required

Unique identifier of the MCP gateway.

Request body

keystring

Rejected with INVALID_ARGUMENT: the key backs the gateway's public MCP URL and is immutable after creation. Retained so callers get an error rather than a silently ignored field.

display_namestring

Human readable name shown in the workspace.

descriptionstring

Free-form note about what this gateway is for.

tool_naming'MCP_TOOL_NAMING_UNSPECIFIED' | 'MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY' | 'MCP_TOOL_NAMING_PREFIX_ON_COLLISION'
status'MCP_GATEWAY_STATUS_UNSPECIFIED' | 'MCP_GATEWAY_STATUS_ACTIVE' | 'MCP_GATEWAY_STATUS_DISABLED'
mode'MCP_GATEWAY_MODE_UNSPECIFIED' | 'MCP_GATEWAY_MODE_CODE' | 'MCP_GATEWAY_MODE_DIRECT'
clear_server_linksboolean

Set true to remove every link; cannot be combined with server_links.

Response

OK