get_vanguard_statusLABSCO SUMMARY
Enforcement you can adopt one workflow at a time.
The profile ladder is the practical part: run monitor to see what your agents actually do, move to balanced, and reserve strict for the systems where a wrong call costs something. The project is explicit about what its safe zones are not — path-boundary checks, not OS sandboxing or container isolation — so pair it with real isolation rather than treating it as a replacement, and keep the native vanguard_* management tools disabled or operator-only in production.
What it is
A security gateway for MCP traffic. It wraps an existing stdio server, or runs as a hosted gateway over SSE and Streamable HTTP, and inspects each tool call before it reaches the tool underneath. Existing servers do not need rewriting; you point the gateway at the command you were already launching. Three profiles — monitor, balanced, strict — let you start in audit-only mode and tighten later.
What you get
- Every call run through five inspection layers before it is forwarded:
L0preflight normalisation (URL decode, NFKC, zero-width stripping, size and depth gates),L1deterministic rule matching,L1.5trust-signal camouflage detection,L2optional semantic intent scoring,L3session and sequence anomaly checks - A final verdict per call from the policy composer — ALLOW, WARN, REVIEW, SHADOW-BLOCK or BLOCK — with the blocked call returned to the agent as a standard JSON-RPC error the upstream server never sees
- Metadata poisoning inspection on
initializeandtools/list, so a hostile tool description is caught before the model reads it - Deterministic path-boundary checks over path-like arguments, tuned in
rules/safe_zones.yamlfor the directories your tools may touch - JSON audit logs with SIEM-friendly decision fields and a
policy_explanationblock naming the layer, rule family, profile effect, upstream-call status and a tuning hint - A local dashboard, a compliance check and packaged benchmark corpora you can run per profile —
vanguard ui --port 4040,vanguard audit-compliance,vanguard benchmark-run --profile monitor
Requirements
Python 3.11+ and pip install mcp-vanguard; extras add Redis-backed multi-instance behavioural state, RE2 regex matching, or the full hosted deployment. Local use needs no network auth — vanguard start --profile balanced --server "..." wraps the server you name. Hosted use does: the strict profile refuses to start on a public bind without transport auth, meaning a long random VANGUARD_API_KEY or OAuth/JWKS settings, and balanced will warn loudly instead. If you run a shared gateway, set VANGUARD_ALLOWED_SERVER_COMMANDS to restrict which upstream executables it may spawn. The optional semantic layer takes a backend key — VANGUARD_OPENAI_API_KEY, VANGUARD_SEMANTIC_CUSTOM_KEY, or VANGUARD_OLLAMA_URL for a local model with no key at all.
Setup effort
One command — pip install mcp-vanguard
USE CASES
Seeing what your agents are really calling before you block anything
Run the monitor profile so every call is inspected and logged but nothing is refused, then read the audit trail to decide which rules you actually need.
Putting a boundary around a filesystem server
Wrap the stdio server you already launch and tune the safe-zone rules to the directories the tools are allowed to touch; a traversal attempt comes back as a JSON-RPC error and never reaches the tool.
Explaining why a call was refused
Read the structured explanation on the decision — which layer fired, which rule family, what the profile did, whether the upstream was ever called — instead of guessing from a generic error.
Sharing one MCP server across a team
Run it as a hosted gateway with transport auth and bearer/JWT validation, restrict which upstream commands it may spawn, and let per-session budgets cap call rate and repeated blocked attempts.
Choosing a profile with evidence
Run the packaged adversarial and benign corpora against each profile and compare, rather than picking a setting and hoping.
3 tools
Listed in project docs. Your client may show a different list.
get_vanguard_auditvanguard_get_auth_statsBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation.
Requires
pip on PATH
INSTALLATION
Connect your client
Server setup
pip install mcp-vanguardMCP Clients
Claude Desktop
vanguard configure-claude