Update an MCP gateway
Updates mutable fields of an existing MCP gateway. Omitted optional fields keep their current values.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique identifier of the MCP gateway.
Body
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.
Human readable name shown in the workspace.
Free-form note about what this gateway is for.
Replaces the current links. An empty array is treated as no change; use clear_server_links to remove them all.
How upstream tool names are namespaced before they are exposed.
MCP_TOOL_NAMING_UNSPECIFIED, MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY, MCP_TOOL_NAMING_PREFIX_ON_COLLISION ACTIVE serves MCP traffic; DISABLED rejects it while keeping the configuration.
MCP_GATEWAY_STATUS_UNSPECIFIED, MCP_GATEWAY_STATUS_ACTIVE, MCP_GATEWAY_STATUS_DISABLED Shape of the tool surface presented to MCP clients: CODE or DIRECT.
MCP_GATEWAY_MODE_UNSPECIFIED, MCP_GATEWAY_MODE_CODE, MCP_GATEWAY_MODE_DIRECT Which projects in the workspace may use this gateway. Defaults to every project.
Set true to remove every link; cannot be combined with server_links.
Response
OK