Update MCP server configuration

Update the configuration settings for an MCP server.

Path parameters

mcp_server_idstringRequired
ID of the MCP Server.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
approval_policyenumOptionalDefaults to require_approval_all
The approval mode to set for the MCP server
Allowed values:
force_pre_tool_speechbooleanOptional

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

disable_interruptionsbooleanOptional

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

tool_call_soundenumOptional
Predefined tool call sound type to play during tool execution for all tools from this MCP server
Allowed values:
tool_call_sound_behaviorenumOptionalDefaults to auto
Determines when the tool call sound should play for all tools from this MCP server
Allowed values:
execution_modeenumOptionalDefaults to immediate

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

Allowed values:
request_headersmap from strings to optional strings or objectsOptional
The headers to include in requests to the MCP server
disable_compressionbooleanOptional
Whether to disable HTTP compression for this MCP server
secret_tokenobjectOptional
Optional secret token for authentication with this MCP server
auth_connectionobjectOptional
Optional auth connection to use for authentication with this MCP server

Response

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.

Errors

422
Mcp Servers Update Request Unprocessable Entity Error