VaikoraVaikora

Vaikora › Blog › Product Updates

What happens inside vaikora-guard-mcp when an AI agent calls a tool: the enforcement path, step by step

Product Updates · Nov 24, 2026 · 4 min read

Before the tool call executes, vaikora-guard-mcp intercepts it, evaluates it against your policy, and either allows, blocks, modifies, or routes it to a human for approval. That happens in process, inline, before any side effect touches your environment. That is the design choice the open-source release makes visible.

Why the proxy position matters

An AI agent calling a tool is not like a user clicking a button. The agent can chain dozens of tool calls in a single task, and each one can read files, write to databases, call external APIs, or trigger downstream automations. By the time you detect a bad call in a log, the action has already run.

vaikora-guard-mcp sits between the agent and the MCP server that exposes those tools. Every call passes through the proxy. No call reaches the tool without a policy decision first.

The proxy is written in Python and published on PyPI as `vaikora-guard-mcp`. It is MIT-licensed and self-hosted, so your agent traffic does not leave your environment to reach a policy engine somewhere else.

What the enforcement path looks like

A concrete example: your agent is performing a customer-data retrieval task. It calls a tool named `query_crm` with a parameter that includes a customer email address.

Here is what happens inside the proxy:

That sequence is deterministic. The same input always produces the same decision. There is no probabilistic model in the enforcement path.

Latency at this inspection depth

A common concern with inline inspection is latency accumulation across chained tool calls. The gateway enforces policy at a P50 of 8ms and a P99 of 45ms. For most agentic workflows, that overhead is not distinguishable from normal network variance between the agent runtime and the tool server.

At higher volumes, the proxy handles more than 10,000 actions per second, so throughput is not a constraint in multi-agent deployments either.

Reading the source to understand the guarantees

The MIT license means you can read every part of the enforcement path. That matters for two reasons.

First, you can verify that the proxy is actually inline. Some tools claim to intercept traffic but operate as a side-channel observer. The source shows the call flow directly.

Second, the audit log implementation is inspectable. The SHA-256 hash chain means each log entry includes the hash of the previous entry. Any deletion or modification of a past record breaks the chain and is detectable. That property is what makes the log useful as evidence in a compliance investigation, not just as an operational record.

Connecting the proxy to the enterprise control plane

The open-source proxy enforces policy locally using whatever configuration you supply. For teams that need centralised policy management across multiple agents or environments, Data443's Vaikora Control Plane is the commercial layer that manages policies, routes approval requests, and aggregates the audit log across deployments.

The proxy also integrates natively with Microsoft Sentinel, CrowdStrike Falcon, SentinelOne, and AWS Security Hub, so threat signals from agent activity flow into your existing security operations tooling without custom connectors.

What to check next

Install the proxy from PyPI with `pip install vaikora-guard-mcp` and point it at a non-production MCP server. Load one of the built-in compliance presets (SOC 2, HIPAA, GDPR, PCI DSS, ISO 27001) and run a few tool calls that your policy should block. Check whether the audit log entries appear before the calls would have reached the tool server, and verify the hash chain is intact after a blocked call. That sequence will tell you whether the enforcement path behaves the way the source says it does.

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

More from the Vaikora blog