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_PREFIX_WITH_SERVER_KEY, MCP_TOOL_NAMING_PREFIX_ON_COLLISION Shape of the tool surface presented to MCP clients: CODE or DIRECT.
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.
Plugins run on every tool call this gateway serves.
Replaces the served workspace skills. An empty array is treated as no change; use clear_skill_ids to remove them all.
Set true to stop serving every workspace skill; cannot be combined with skill_ids.
Replaces the advertised icons when nonempty or when replace_icons is true.
Set true with an empty icons list to restore default Toqan Router branding.
Empty restores the default Toqan Router documentation website.
Guardrails run on the arguments and result of every tool call this gateway serves.
Latest observed McpGateway.updated value. Required when changing resource exposure or re-enabling a link that exposes resources.
Response
OK

