Vaikora › Blog › Product Updates
What happens between an MCP tool call and execution: the policy check vaikora-guard-mcp adds
There is a gap between the moment an AI agent decides to call a tool and the moment that tool runs. In most MCP deployments today, nothing lives in that gap. The vaikora-guard-mcp proxy is built to occupy it.
The package is MIT-licensed, written in Python, and published on PyPI as `vaikora-guard-mcp`. You can read every line that touches a tool call before you run a single agent against it.
What the proxy actually does
When an agent sends a tool call through the MCP protocol, vaikora-guard-mcp intercepts it before the downstream tool receives it. The proxy evaluates the call against a policy definition, then returns one of four verdicts: allow, block, modify, or require-approval. The tool only runs if the verdict is allow or the modified form of the request passes. Block and require-approval stop execution entirely at that point.
This is not a logging wrapper. The enforcement decision happens before execution, which means a blocked call never touches the tool, the API, the file system, or the data store it was targeting.
The P50 enforcement latency is 8ms. P99 is 45ms. At scale, the gateway handles 10,000 or more actions per second.
What the policy layer checks
The proxy ships six content inspection modules. These cover things like sensitive data patterns in tool arguments, restricted tool names or categories, and argument values that match defined risk signals. You configure policy in a structured definition file rather than writing inspection code from scratch.
A concrete example: an agent is connected to a file-read tool and a database-query tool. You define a policy that blocks any query argument containing a string matching a Social Security Number pattern, and that requires human approval for any file-read targeting a path outside `/var/app/data`. When the agent constructs a query with a SSN in the WHERE clause, the proxy blocks it. When it tries to read `/etc/passwd`, it queues for approval rather than executing.
Both decisions are written to a SHA-256 hash-chained, tamper-evident audit log. The same input always produces the same decision, so the audit trail is reproducible during investigation.
How it connects to the broader control plane
The open-source proxy handles the enforcement layer. The Vaikora Control Plane, the commercial component hosted by Data443, adds centralized policy management, audit dashboards, compliance presets for HIPAA, PCI-DSS, GDPR, SOC 2, and ISO 27001, and native integrations with Microsoft Sentinel, CrowdStrike Falcon, SentinelOne, and AWS Security Hub.
The separation matters for how you evaluate it. You can run vaikora-guard-mcp locally, read the inspection logic, and test it against your own agent traffic before making any commitment to the enterprise platform. The MIT licence means you can also fork and modify it without restriction.
For teams that need SIEM visibility, Vaikora pushes AI agent threats into SentinelOne as threat intelligence indicators with severity scores mapped to 100, 75, 50, and 25. It promotes high-severity risk into Azure Security Center and Microsoft Defender for Cloud as native incidents with no custom engineering.
Who this is for
Security engineers who are deploying MCP-connected agents and want a policy gate they can inspect and control, not a black box. Platform teams who need to demonstrate to compliance that AI agent actions are governed before execution, not audited after the fact. SOC analysts who want AI agent decisions surfaced in the same workflows they already use for other threat signals.
The gap between tool call and execution is real and narrow. Right now most deployments leave it empty.
To get started: install `vaikora-guard-mcp` from PyPI, review the policy schema in the repository, and run it against a test agent with a permissive policy before tightening controls. That gives you a baseline audit log and a clear picture of what your agents are actually trying to call.
See Vaikora enforce policy on your AI
Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.
Get a demo Self-host the gateway
Vaikora