Create a Virtual MCP server
Creates a new MCP configuration with a set of connections and tools.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Body
namestringrequiredUnique name for the MCP configuration. Must be 1–100 characters. Allowed characters: lowercase letters (a–z), digits (0–9), hyphens (-), and underscores (_).
connection_tool_mappingsarray of objectList of connection-to-tool mappings for this MCP config. Maximum 25 connections in
DIRECT mode.Show 2 child attributes
connection_namestringrequiredDeveloper-assigned connection name
toolsarray of stringList of tool names linked to this connection (empty = all tools)
descriptionstringDescription of the MCP configuration
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.DIRECTMETAscalekit_client.actions.mcp.create_config
Create a new MCP configuration from the supplied metadata and tool mappings.
scalekit_client.actions.mcp.create_config( name: str, description: Optional[str] = None, connection_tool_mappings: Optional[List[McpConfigConnectionToolMapping]] = None, tool_exposure: Optional[str] = None,) -> CreateMcpConfigResponseParameters
namestrrequiredHuman readable name for the configuration.
descriptionOptional[str]Summary that surfaces in dashboards and APIs.
connection_tool_mappingsOptional[List[McpConfigConnectionToolMapping]]Explicit mapping between connectors and tools.
tool_exposureOptional[str]How the server exposes tools to agents.
DIRECT lists every tool you map to the server, for up to 25 connections. META gives agents five tools, search_available_tools, list_available_tools, get_tool_details, execute_tool and connect_account, to find and run the mapped tools, with no connection limit. Defaults to DIRECT.Returns CreateMcpConfigResponse: The created configuration payload.
From scalekit-sdk-python 2.22.0.
scalekit.actions.mcp.createConfig
Creates a Virtual MCP server configuration. Create this once per agent role. The response carries a static config.mcpServerUrl that every user and every session reuses.
scalekit.actions.mcp.createConfig( params: { name: string; description?: string; connectionToolMappings?: MessageInitShape<typeof McpConfigSchema>['connectionToolMappings']; toolExposure?: McpToolExposure; },): Promise<CreateMcpConfigResponse>Parameters
namestringrequiredUnique name. 1-100 characters, lowercase letters, digits, hyphens and underscores.
descriptionstringHuman-readable summary of what this server exposes.
connectionToolMappingsMessageInitShape<typeof McpConfigSchema>['connectionToolMappings']Which connections, and which tools from each, to expose. Omit
tools on a mapping to expose every tool for that connection. Maximum 25 connections when toolExposure is 'DIRECT'.toolExposureMcpToolExposureHow the server exposes tools to agents.
DIRECT lists every tool you map to the server, for up to 25 connections. META gives agents five tools, search_available_tools, list_available_tools, get_tool_details, execute_tool and connect_account, to find and run the mapped tools, with no connection limit. Defaults to DIRECT.Returns Promise<CreateMcpConfigResponse>.
From @scalekit-sdk/node 2.21.0.
Response 200
configobjectThe created MCP configuration
Show 6 child attributes
connection_tool_mappingsarray of objectList of connection-to-tool mappings for this MCP config. Maximum 25 connections in
DIRECT mode.Show 6 child attributes
connected_account_idstringConnected account backing this connection in the MCP instance context
connected_account_statusstringAuthentication status for the connected account
connection_idstringUnique ID of the connection
connection_namestringDeveloper-assigned connection name
providerstringProvider name for this connection
toolsarray of stringList of tool names linked to this connection (empty = all tools)
descriptionstringDescription of the MCP configuration
idstringUnique ID of the MCP config
mcp_server_urlstringThe URL MCP clients connect to for this server. Every user and session shares it; the session token identifies the user.
namestringUnique 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.DIRECTMETAErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - missing required fields or invalid connection/tool mappings401Authentication required - missing or invalid access token