← All tools

bastiongate

gate

Runtime MCP security gateway

MCP security gateway: an inline proxy that drops poisoned tools, enforces allow/deny, blocks injected results, and catches the lethal trifecta across a session.

pip install bastiongateway
The PyPI package is bastiongateway; the import package and CLI are bastiongate. The flow guard and the encoded-result check ship in warn (shadow) mode; taint is per server unless gates share a taint_group (opt-in, stdio).

What it does

Quickstart

bastiongate run --policy policy.yaml -- my-mcp-server python -m bastiongate.demo # replays the GitHub toxic flow bastiongate run --otel-out spans.jsonl -- my-mcp-server bastiongate labels --policy policy.yaml tools.json

Version 0.13.0 · MIT