Skip to main content
PATCH
Core - Narrow the tools a gateway exposes
Related guide: MCP gateways guide. See the MCP gateways guide for a walkthrough with examples.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier of the MCP gateway.

Body

application/json
key
string

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_name
string

Human readable name shown in the workspace.

description
string

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.

tool_naming
enum<string>

How upstream tool names are namespaced before they are exposed.

Available options:
MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY,
MCP_TOOL_NAMING_PREFIX_ON_COLLISION
mode
enum<string>

Shape of the tool surface presented to MCP clients: CODE or DIRECT.

Available options:
MCP_GATEWAY_MODE_CODE,
MCP_GATEWAY_MODE_DIRECT
sharing
object

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
object[]

Plugins run on every tool call this gateway serves.

skill_ids
string[]

Replaces the served workspace skills. An empty array is treated as no change; use clear_skill_ids to remove them all.

clear_skill_ids
boolean

Set true to stop serving every workspace skill; cannot be combined with skill_ids.

icons
object[]

Replaces the advertised icons when nonempty or when replace_icons is true.

replace_icons
boolean

Set true with an empty icons list to restore default Toqan Router branding.

website_url
string

Empty restores the default Toqan Router documentation website.

guardrails
object[]

Guardrails run on the arguments and result of every tool call this gateway serves.

expected_updated
string

Latest observed McpGateway.updated value. Required when changing resource exposure or re-enabling a link that exposes resources.

Response

OK

mcp_gateway
object