Skip to content
VS Code

mcp-hub for VS Code

io.github.ni-c/mcp-hub

Many stdio MCP servers from one container, published over HTTPS with OAuth 2.1 for any MCP client

client:VS Code transport:stdio runtime:npm

Install mcp-hub in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "config-path",
      "description": "CONFIG_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "idle-timeout-minutes",
      "description": "IDLE_TIMEOUT_MINUTES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tool-cache-path",
      "description": "TOOL_CACHE_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "log-file",
      "description": "LOG_FILE",
      "password": true
    }
  ],
  "servers": {
    "mcp-hub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/mcp-hub"
      ],
      "env": {
        "CONFIG_PATH": "${input:config-path}",
        "IDLE_TIMEOUT_MINUTES": "${input:idle-timeout-minutes}",
        "TOOL_CACHE_PATH": "${input:tool-cache-path}",
        "LOG_FILE": "${input:log-file}"
      }
    }
  }
}

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

mcp-hub in other clients