Get a Virtual MCP server
Returns a single MCP configuration for the current environment by ID.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
config_idstringrequiredID of the MCP configuration to fetch
Call this endpoint over REST, as the example shows.
scalekit.actions.mcp.getConfig
Fetches a single MCP configuration by ID.
scalekit.actions.mcp.getConfig( configId: string,): Promise<GetMcpConfigResponse>Parameters
configIdstringrequiredID of the configuration to fetch (
cfg_...).Returns Promise<GetMcpConfigResponse>.
From @scalekit-sdk/node 2.21.0.
Response 200
configobjectThe requested 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 request401Authentication required404Not Found - MCP configuration does not exist