Skip to main content
POST
Loads MCP servers into a running sandbox without a template rebuild. IDs are agent-directive IDs (from List MCP Servers with type_family=mcp). Servers whose connections still need credentials are reported under needs_auth rather than failing the call. Required scope: sessions:write

Path Parameters

string
required
The session ID.

Request Body

string[]
required
Agent-directive IDs of the MCP servers to load.

Response

array
{id, name} for each server that loaded.
string[]
Servers skipped because their connection has no credentials yet.
string[]
IDs that were unknown or not MCP servers.