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 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
Description 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.
DIRECTMETA

Response 200

configobject
The created 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 - missing required fields or invalid connection/tool mappings
401Authentication required - missing or invalid access token

Used in