create_virtual_mcp_server
Creates a virtual MCP server that bundles actions from one or more AgentKit connections behind a single MCP URL and returns the server ID and URL.
Instructions
Create one virtual MCP server that offers actions from one or more AgentKit connections behind a single MCP URL. Use list_agentkit_connections for connection names and search_tools for action names; leave tools out to include every action of a connection. Returns the server ID and its MCP URL. The name cannot be changed later. Requires the caller OAuth token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"environmentId": "<environmentId>",
"name": "<name>",
"connections": "<connections>"
},
"name": "create_virtual_mcp_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lowercase letters, digits, hyphens and underscores. Cannot be changed later. | |
| connections | Yes | Connections to include. Leave tools out of an item to include every action of that connection. | |
| description | No | What the server is for. | |
| toolExposure | No | DIRECT: every selected action is its own MCP tool, up to 25 connections. META: five discovery tools, no connection limit. | DIRECT |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. |