Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Update a Virtual MCP server

PUT/api/v1/mcp/configs/{config_id}

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_idstringrequired
ID of the MCP configuration to update

Body

connection_tool_mappingsarray of object
Updated list of connection-to-tool mappings for this MCP config. Maximum 25 connections in DIRECT mode.
Show 2 child attributes
connection_namestringrequired
Developer-assigned connection name
toolsarray of string
List of tool names linked to this connection (empty = all tools)
descriptionstring
Updated description for the MCP configuration
tool_exposurestring (enum)
Change how the server exposes tools to agents: 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.
DIRECTMETA

Response 200

configobject
The updated MCP configuration
Show 6 child attributes
connection_tool_mappingsarray of object
List of connection-to-tool mappings for this MCP config. Maximum 25 connections in DIRECT mode.
Show 6 child attributes
connected_account_idstring
Connected account backing this connection in the MCP instance context
connected_account_statusstring
Authentication status for the connected account
connection_idstring
Unique ID of the connection
connection_namestring
Developer-assigned connection name
providerstring
Provider name for this connection
toolsarray of string
List of tool names linked to this connection (empty = all tools)
descriptionstring
Description of the MCP configuration
idstring
Unique ID of the MCP config
mcp_server_urlstring
The URL MCP clients connect to for this server. Every user and session shares it; the session token identifies the user.
namestring
Unique name for the MCP configuration. Must be 1–100 characters. Allowed characters: lowercase letters (a–z), digits (0–9), hyphens (-), and underscores (_).
tool_exposurestring (enum)
How the server exposes tools to agents. 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.
DIRECTMETA

Errors

Every error has the same body: code, message and details. See Errors and rate limits.

400Invalid request - malformed payload or invalid mappings
401Authentication required
404Not Found - MCP configuration does not exist

Used in