Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Create a Virtual MCP server

POST/api/v1/mcp/configs

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

namestringrequired
Unique 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 object
List of connection-to-tool mappings for this MCP config. Maximum 25 entries.
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
Description of the MCP configuration

Response 200

configobject
The created MCP configuration
Show 5 child attributes
connection_tool_mappingsarray of object
List of connection-to-tool mappings for this MCP config. Maximum 25 entries.
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 (_).

Errors

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

400Invalid request - missing required fields or invalid connection/tool mappings
401Authentication required - missing or invalid access token

Used in