Update a Virtual MCP server
Updates the description and connection-to-tool mappings for an existing MCP configuration. The configuration name cannot be changed after creation.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
config_idstringrequiredBody
connection_tool_mappingsarray of objectDIRECT mode.Show 2 child attributes
connection_namestringrequiredtoolsarray of stringdescriptionstringtool_exposurestring (enum)DIRECT or META. Leave it out to keep the current mode. Switching to DIRECT fails when the server has more than 25 connections. After a switch, MCP clients must list the tools again; session tokens keep working.DIRECTMETAscalekit_client.actions.mcp.update_config
Update mutable fields on an existing MCP configuration.
scalekit_client.actions.mcp.update_config( config_id: str, description: Optional[str] = None, connection_tool_mappings: Optional[List[McpConfigConnectionToolMapping]] = None, tool_exposure: Optional[str] = None,) -> UpdateMcpConfigResponseParameters
config_idstrrequireddescriptionOptional[str]connection_tool_mappingsOptional[List[McpConfigConnectionToolMapping]]tool_exposureOptional[str]DIRECT or META. Leave it out to keep the current mode. Switching to DIRECT fails when the server has more than 25 connections or two connections map tools with the same name. After a switch, MCP clients must list the tools again; session tokens keep working.Returns UpdateMcpConfigResponse: The updated configuration payload.
From scalekit-sdk-python 2.22.0.
scalekit.actions.mcp.updateConfig
Updates the description and connection-to-tool mappings of a configuration. The name cannot be changed after creation. Avoid updating while agent sessions are running — tools can become unavailable mid-session. For a significant change, create a new configuration and swap the URL instead.
scalekit.actions.mcp.updateConfig( params: { configId: string; description?: string; connectionToolMappings?: MessageInitShape<typeof UpdateMcpConfigRequestSchema>['connectionToolMappings']; toolExposure?: McpToolExposure; },): Promise<UpdateMcpConfigResponse>Parameters
configIdstringrequireddescriptionstringconnectionToolMappingsMessageInitShape<typeof UpdateMcpConfigRequestSchema>['connectionToolMappings']toolExposureMcpToolExposureDIRECT or META. Leave it out to keep the current mode. Switching to DIRECT fails when the server has more than 25 connections or two connections map tools with the same name. After a switch, MCP clients must list the tools again; session tokens keep working.Returns Promise<UpdateMcpConfigResponse>.
From @scalekit-sdk/node 2.21.0.
Response 200
configobjectShow 6 child attributes
connection_tool_mappingsarray of objectDIRECT mode.Show 6 child attributes
connected_account_idstringconnected_account_statusstringconnection_idstringconnection_namestringproviderstringtoolsarray of stringdescriptionstringidstringmcp_server_urlstringnamestringtool_exposurestring (enum)DIRECT lists every tool you map to it, for up to 25 connections. META gives agents five tools to search for, inspect and run the mapped tools, with no limit on connections. DIRECT is the default when you create a server without it.DIRECTMETAErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - malformed payload or invalid mappings401Authentication required404Not Found - MCP configuration does not exist