Skip to content
VS Code

MCP Hangar for VS Code

io.mcp-hangar/hangar

The MCP gateway that pins every tool, holds risky calls for approval, and enforces egress policy.

client:VS Code transport:stdio runtime:pypi

Install MCP Hangar in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-config",
      "description": "MCP_CONFIG",
      "password": true
    }
  ],
  "servers": {
    "hangar": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-hangar"
      ],
      "env": {
        "MCP_CONFIG": "${input:mcp-config}"
      }
    }
  }
}

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

MCP Hangar in other clients