VaikoraVaikora

Vaikora › Blog › Product Updates

MCP tool authorization: why the permission config and the enforcement point are two different things

Product Updates · Dec 1, 2026 · 4 min read

The permission you set in an MCP configuration file and the control that actually runs at call time are not the same object. One is a declaration. The other is enforcement. Confusing them is how authorized-looking tool calls do unauthorized things.

What the MCP config actually does

An MCP server configuration lists which tools are available and, in some implementations, which clients can connect. That list controls discovery and routing. It does not evaluate the content of a call, the identity of the requesting agent, the data being passed, or whether the action is consistent with any policy beyond "this tool exists."

Think of it as a menu, not a bouncer. A tool appearing on the menu means it can be called. It says nothing about whether a specific call, from a specific agent, with a specific payload, should be allowed to execute.

This matters because most MCP deployments treat the config as the authorization layer. It is not. It is a registration layer.

Where authorization actually needs to happen

Real authorization requires a decision at call time, not at configuration time. That decision needs to check at minimum:

None of these checks live in an MCP config file. They require a policy engine sitting inline between the agent and the tool, evaluating each call before it executes.

What happens without an inline enforcement point

Consider a code-execution agent connected to an MCP server that exposes a `run_shell` tool. The config permits the tool. The agent calls it with a payload that writes to a directory outside its intended scope. The MCP server receives a valid, well-formed call from an authorized client. It executes.

Nothing in the config catches this. The grant was real. The abuse was also real. The config could not distinguish between the two because it evaluated neither the payload nor the scope at call time.

This is not a hypothetical edge case. It is the default behavior of any MCP deployment that treats configuration as enforcement.

What inline enforcement at the call level looks like

Vaikora sits between the agent and the MCP-connected tools and applies a policy decision before each call executes. The decision is deterministic: identical input always produces identical output, which makes policy testable before deployment and reconstructible after the fact.

For each call, the policy engine checks the action type, the target resource, the requesting agent identity, and the payload content against configured rules. The outcome is one of four states: allow, block, modify, or require approval. If the call is blocked, it never reaches the tool. If it requires approval, it pauses until a human responds.

Vaikora enforces at P50 8ms and P99 45ms, which means the enforcement step does not introduce meaningful latency into normal agent workflows. At 10,000+ actions per second, the enforcement point scales with production agent traffic.

Every decision is written into a SHA-256 hash-chained audit log. That means you can reconstruct exactly what the agent called, what parameters it passed, what the policy decided, and when, in an ordered tamper-evident record. That record is the difference between "we think the agent didn't do anything unauthorized" and "we can prove it."

The practical gap to close

If you are running MCP-connected agents today, two checks are worth doing now.

First, map the tools your agents can call against the actions those tools can actually perform. If `run_shell`, `write_file`, `invoke_api`, or any equivalent tool is on that list, the config-level grant is not sufficient authorization control.

Second, check whether anything in your current stack evaluates the call payload and agent identity at runtime, before execution, and writes a decision record. If the answer is a logging layer or an observability tool, that is detection after the fact, not enforcement before it. Those are different controls and they do not substitute for each other.

The place to start is the gap between what your MCP config permits and what actually runs at call time.

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