创建 MCP 工具配置覆盖

为特定 MCP 工具创建配置覆盖项。

路径参数

mcp_server_idstring必需

MCP 服务器 ID。

请求头

xi-api-keystring可选

查询参数

environmentstring可选默认为 production

当 MCP 服务器 URL、请求头或身份验证连接引用环境变量时所使用值的环境。与对话运行的环境一致;默认为 production。

请求

This endpoint expects an object.
tool_namestring必需

MCP 工具名称

pre_tool_speechenum or null可选默认为 auto

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

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

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

允许的值:
tool_call_soundenum or "off" or null可选

覆盖服务器对此工具的 tool_call_sound 设置。声音名称会播放对应声音;‘off’ 覆盖为无声音(静音);null 表示不覆盖(继承服务器默认值)。

tool_call_sound_behaviorenum or null可选默认为 auto

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

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

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

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

设定后,覆盖服务器对此 MCP 工具的响应超时设置。

assignmentslist of objects or null可选

此 MCP 工具的动态变量赋值

input_overridesmap from strings to objects or null可选

JSON 路径到输入覆盖配置的映射

response_mockslist of objects or null可选

带可选参数条件的模拟响应。按从上到下的顺序评估,首个匹配项生效。

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 的智能体列表。

错误

409
Conflict Error
422
Unprocessable Entity Error