Update MCP server configuration

Update the configuration settings for an MCP server.

路径参数

mcp_server_idstring必需
ID of the MCP Server.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
approval_policyenum可选默认为 require_approval_all
The approval mode to set for the MCP server
允许的值:
pre_tool_speechenum可选默认为 auto

If set, overrides the server’s pre_tool_speech setting for this tool.

允许的值:
interruption_modeenum可选默认为 allow

If set, overrides the server’s interruption_mode setting for this tool.

允许的值:
tool_call_soundenum可选
Predefined tool call sound type to play during tool execution for all tools from this MCP server
允许的值:
tool_call_sound_behaviorenum可选默认为 auto
Determines when the tool call sound should play for all tools from this MCP server
允许的值:
execution_modeenum可选默认为 immediate

If set, overrides the server’s execution_mode setting for this tool

允许的值:
response_timeout_secsinteger可选5-300
The maximum time in seconds to wait for each MCP tool call to complete.
request_headersmap from strings to optional strings or objects可选
The headers to include in requests to the MCP server
request_metamap from strings to optional strings or integers or doubles or booleans or objects可选

Entries sent in the MCP _meta field of tools/call requests. Values may be JSON scalars, or references to a workspace secret, dynamic variable, or environment variable resolved per call.

disable_compressionboolean可选
Whether to disable HTTP compression for this MCP server
secret_tokenobject可选
Optional secret token for authentication with this MCP server
auth_connectionobject可选
Optional auth connection to use for authentication with this MCP server
force_pre_tool_speechboolean可选Deprecated

DEPRECATED: use pre_tool_speech instead. If set, overrides the server’s force_pre_tool_speech setting for this tool.

disable_interruptionsboolean可选Deprecated

DEPRECATED: use interruption_mode instead. If set, overrides the server’s disable_interruptions setting for this tool.

响应

Successful Response
idstring
configobject
metadataobject
The metadata of the MCP Server
access_infoobject可选
The access information of the MCP Server
dependent_agentslist of objects可选
List of agents that depend on this MCP Server.

错误

422
Mcp Servers Update Request Unprocessable Entity Error