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