Update MCP server configuration

Update the configuration settings for an MCP server.

Parametry ścieżki

mcp_server_idstringWymagany
ID of the MCP Server.

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

This endpoint expects an object.
approval_policyenumOpcjonalnyDomyślnie require_approval_all
The approval mode to set for the MCP server
Dozwolone wartości:
pre_tool_speechenumOpcjonalnyDomyślnie auto

If set, overrides the server’s pre_tool_speech setting for this tool.

Dozwolone wartości:
interruption_modeenumOpcjonalnyDomyślnie allow

If set, overrides the server’s interruption_mode setting for this tool.

Dozwolone wartości:
tool_call_soundenumOpcjonalny
Predefined tool call sound type to play during tool execution for all tools from this MCP server
Dozwolone wartości:
tool_call_sound_behaviorenumOpcjonalnyDomyślnie auto
Determines when the tool call sound should play for all tools from this MCP server
Dozwolone wartości:
execution_modeenumOpcjonalnyDomyślnie immediate

If set, overrides the server’s execution_mode setting for this tool

Dozwolone wartości:
response_timeout_secsintegerOpcjonalny5-300
The maximum time in seconds to wait for each MCP tool call to complete.
request_headersmap from strings to optional strings or objectsOpcjonalny
The headers to include in requests to the MCP server
request_metamap from strings to optional strings or integers or doubles or booleans or objectsOpcjonalny

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_compressionbooleanOpcjonalny
Whether to disable HTTP compression for this MCP server
secret_tokenobjectOpcjonalny
Optional secret token for authentication with this MCP server
auth_connectionobjectOpcjonalny
Optional auth connection to use for authentication with this MCP server
force_pre_tool_speechbooleanOpcjonalnyDeprecated

DEPRECATED: use pre_tool_speech instead. If set, overrides the server’s force_pre_tool_speech setting for this tool.

disable_interruptionsbooleanOpcjonalnyDeprecated

DEPRECATED: use interruption_mode instead. If set, overrides the server’s disable_interruptions setting for this tool.

Odpowiedź

Successful Response
idstring
configobject
metadataobject
The metadata of the MCP Server
access_infoobjectOpcjonalny
The access information of the MCP Server
dependent_agentslist of objectsOpcjonalny
List of agents that depend on this MCP Server.

Błędy

422
Mcp Servers Update Request Unprocessable Entity Error