更新 MCP 服务器配置
更新 MCP 服务器配置
更新 MCP 服务器的配置设置。
路径参数
mcp_server_id
MCP 服务器 ID。
请求头
xi-api-key
请求
This endpoint expects an object.
approval_policy
要为 MCP server 设置的审批模式
允许的值:
pre_tool_speech
设定后,覆盖服务器对此工具的 pre_tool_speech 设置。
允许的值:
interruption_mode
设定后,覆盖服务器对此工具的 interruption_mode 设置。
允许的值:
tool_call_sound
执行此 MCP 服务器所有工具时播放的预定义工具调用音效类型
允许的值:
tool_call_sound_behavior
决定此 MCP 服务器中所有工具的工具调用提示音何时播放
允许的值:
execution_mode
设定后,覆盖服务器对此工具的 execution_mode 设置。
允许的值:
response_timeout_secs
等待每次 MCP 工具调用完成的最长时间,单位为秒。
request_headers
发送至 MCP 服务器的请求中要包含的标头
request_meta
在工具/call 请求的 MCP _meta 字段中发送的条目。值可以是 JSON 标量,也可以是对工作区密钥、动态变量或每次调用时解析的环境变量的引用。
disable_compression
是否为此 MCP 服务器禁用 HTTP 压缩
secret_token
用于此 MCP 服务器认证的可选密钥令牌
auth_connection
用于向此 MCP 服务器进行身份验证的可选认证连接
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 的智能体列表。
错误
422
Unprocessable Entity Error