更新 MCP 服务器配置

更新 MCP 服务器的配置设置。

路径参数

mcp_server_idstring必需

MCP 服务器 ID。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
approval_policyenum or null可选默认为 require_approval_all

要为 MCP server 设置的审批模式

允许的值:
pre_tool_speechenum or null可选默认为 auto

设定后,覆盖服务器对此工具的 pre_tool_speech 设置。

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

设定后,覆盖服务器对此工具的 interruption_mode 设置。

允许的值:
tool_call_soundenum or null可选

执行此 MCP 服务器所有工具时播放的预定义工具调用音效类型

允许的值:
tool_call_sound_behaviorenum or null可选默认为 auto

决定此 MCP 服务器中所有工具的工具调用提示音何时播放

允许的值:
execution_modeenum or null可选默认为 immediate

设定后,覆盖服务器对此工具的 execution_mode 设置。

允许的值:
response_timeout_secsinteger or null可选5-300

等待每次 MCP 工具调用完成的最长时间,单位为秒。

request_headersmap from strings to strings or objects or null可选

发送至 MCP 服务器的请求中要包含的标头

request_metamap from strings to strings or integers or doubles or booleans or objects or null可选

在工具/call 请求的 MCP _meta 字段中发送的条目。值可以是 JSON 标量,也可以是对工作区密钥、动态变量或每次调用时解析的环境变量的引用。

disable_compressionboolean or null可选

是否为此 MCP 服务器禁用 HTTP 压缩

secret_tokenobject or null可选

用于此 MCP 服务器认证的可选密钥令牌

auth_connectionobject or null可选

用于向此 MCP 服务器进行身份验证的可选认证连接

force_pre_tool_speechboolean or null可选Deprecated

已弃用:请改用 pre_tool_speech。设置后,将覆盖服务器对此工具的 force_pre_tool_speech 设置。

disable_interruptionsboolean or null可选Deprecated

已弃用:请改用 interruption_mode。设置后,将覆盖服务器对此工具的 disable_interruptions 设置。

响应

成功响应

idstring
configobject
metadataobject

MCP 服务器的元数据

access_infoobject or null可选

MCP Server 的访问信息

dependent_agentslist of objects可选

依赖此 MCP Server 的智能体列表。

错误

422
Unprocessable Entity Error