Skip to content
VS Code

MCP-Bastion for VS Code

io.github.vaquarkhan/mcp-bastion

Security middleware for MCP. Blocks prompt injection, PII leakage, and resource exhaustion.

client:VS Code transport:stdio runtime:pypi

Install MCP-Bastion in VS Code

.vscode/mcp.json

{
  "servers": {
    "mcp-bastion": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-bastion-python"
      ]
    }
  }
}

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

MCP-Bastion in other clients