Skip to content
VS Code

Agent MCP Gateway for VS Code

io.github.roddutra/agent-mcp-gateway

On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.

client:VS Code transport:stdio runtime:pypi

Install Agent MCP Gateway in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gateway-mcp-config",
      "description": "GATEWAY_MCP_CONFIG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gateway-rules",
      "description": "GATEWAY_RULES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gateway-default-agent",
      "description": "GATEWAY_DEFAULT_AGENT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gateway-debug",
      "description": "GATEWAY_DEBUG",
      "password": true
    }
  ],
  "servers": {
    "agent-mcp-gateway": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ],
      "env": {
        "GATEWAY_MCP_CONFIG": "${input:gateway-mcp-config}",
        "GATEWAY_RULES": "${input:gateway-rules}",
        "GATEWAY_DEFAULT_AGENT": "${input:gateway-default-agent}",
        "GATEWAY_DEBUG": "${input:gateway-debug}"
      }
    }
  }
}

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

Agent MCP Gateway in other clients