Skip to content
VS Code

sub agents mcp for VS Code

io.github.shinpr/sub-agents-mcp

MCP server for delegating tasks to specialized AI sub-agents across coding tools

client:VS Code transport:stdio runtime:npm

Install sub agents mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "agents-dir",
      "description": "AGENTS_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agent-type",
      "description": "AGENT_TYPE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agent-permission",
      "description": "AGENT_PERMISSION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agent-model",
      "description": "AGENT_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agent-effort",
      "description": "AGENT_EFFORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cursor-api-key",
      "description": "CURSOR_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cli-api-key",
      "description": "CLI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "execution-timeout-ms",
      "description": "EXECUTION_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "session-enabled",
      "description": "SESSION_ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "session-dir",
      "description": "SESSION_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "session-retention-days",
      "description": "SESSION_RETENTION_DAYS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agents-settings-path",
      "description": "AGENTS_SETTINGS_PATH",
      "password": true
    }
  ],
  "servers": {
    "sub-agents-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sub-agents-mcp"
      ],
      "env": {
        "AGENTS_DIR": "${input:agents-dir}",
        "AGENT_TYPE": "${input:agent-type}",
        "AGENT_PERMISSION": "${input:agent-permission}",
        "AGENT_MODEL": "${input:agent-model}",
        "AGENT_EFFORT": "${input:agent-effort}",
        "CURSOR_API_KEY": "${input:cursor-api-key}",
        "CLI_API_KEY": "${input:cli-api-key}",
        "EXECUTION_TIMEOUT_MS": "${input:execution-timeout-ms}",
        "SESSION_ENABLED": "${input:session-enabled}",
        "SESSION_DIR": "${input:session-dir}",
        "SESSION_RETENTION_DAYS": "${input:session-retention-days}",
        "AGENTS_SETTINGS_PATH": "${input:agents-settings-path}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

sub agents mcp in other clients