Update MCP server configuration

Update the configuration settings for an MCP server.

Parámetros de ruta

mcp_server_idstringRequerido
ID of the MCP Server.

Encabezados

xi-api-keystringOpcional

Solicitud

This endpoint expects an object.
approval_policyenumOpcionalValor predeterminado: require_approval_all
The approval mode to set for the MCP server
Valores permitidos:
pre_tool_speechenumOpcionalValor predeterminado: auto

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

Valores permitidos:
interruption_modeenumOpcionalValor predeterminado: allow

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

Valores permitidos:
tool_call_soundenumOpcional
Predefined tool call sound type to play during tool execution for all tools from this MCP server
Valores permitidos:
tool_call_sound_behaviorenumOpcionalValor predeterminado: auto
Determines when the tool call sound should play for all tools from this MCP server
Valores permitidos:
execution_modeenumOpcionalValor predeterminado: immediate

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

Valores permitidos:
response_timeout_secsintegerOpcional5-300
The maximum time in seconds to wait for each MCP tool call to complete.
request_headersmap from strings to optional strings or objectsOpcional
The headers to include in requests to the MCP server
request_metamap from strings to optional strings or integers or doubles or booleans or objectsOpcional

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_compressionbooleanOpcional
Whether to disable HTTP compression for this MCP server
secret_tokenobjectOpcional
Optional secret token for authentication with this MCP server
auth_connectionobjectOpcional
Optional auth connection to use for authentication with this MCP server
force_pre_tool_speechbooleanOpcionalDeprecated

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

disable_interruptionsbooleanOpcionalDeprecated

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

Respuesta

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

Errores

422
Mcp Servers Update Request Unprocessable Entity Error