创建 MCP 工具配置覆盖
创建 MCP 工具配置覆盖
为特定 MCP 工具创建配置覆盖项。
路径参数
mcp_server_id
MCP 服务器 ID。
请求头
xi-api-key
查询参数
environment
当 MCP 服务器 URL、请求头或身份验证连接引用环境变量时所使用值的环境。与对话运行的环境一致;默认为 production。
请求
This endpoint expects an object.
tool_name
MCP 工具名称
pre_tool_speech
设定后,覆盖服务器对此工具的 pre_tool_speech 设置。
允许的值:
interruption_mode
设定后,覆盖服务器对此工具的 interruption_mode 设置。
允许的值:
tool_call_sound
覆盖服务器对此工具的 tool_call_sound 设置。声音名称会播放对应声音;‘off’ 覆盖为无声音(静音);null 表示不覆盖(继承服务器默认值)。
tool_call_sound_behavior
设定后,覆盖服务器对此工具的 tool_call_sound_behavior 设置。
允许的值:
execution_mode
设定后,覆盖服务器对此工具的 execution_mode 设置。
允许的值:
response_timeout_secs
设定后,覆盖服务器对此 MCP 工具的响应超时设置。
assignments
此 MCP 工具的动态变量赋值
input_overrides
JSON 路径到输入覆盖配置的映射
response_mocks
带可选参数条件的模拟响应。按从上到下的顺序评估,首个匹配项生效。
force_pre_tool_speechDeprecated
已弃用:请改用 pre_tool_speech。设置后,将覆盖服务器对此工具的 force_pre_tool_speech 设置。
disable_interruptionsDeprecated
已弃用:请改用 interruption_mode。设置后,将覆盖服务器对此工具的 disable_interruptions 设置。
响应
成功响应
id
config
metadata
MCP 服务器的元数据
access_info
MCP Server 的访问信息
dependent_agents
依赖此 MCP Server 的智能体列表。
错误
409
Conflict Error
422
Unprocessable Entity Error