Many believe that an MCP gateway automatically logs every AI‑generated request, but the gateway alone does not create a reliable audit trail.
In practice, teams often deploy MCP gateways on Kubernetes so that large language models can call internal services without changing application code. The gateway forwards the request, the model receives a response, and the interaction disappears into the cluster’s network traffic. No central log captures who asked what, when, or what data was returned. That blind spot makes it hard to prove compliance, investigate misuse, or even understand the impact of a faulty prompt.
The typical deployment looks like this: a service account or AI runner authenticates to the Kubernetes API, the MCP gateway runs as a sidecar, and the model talks directly to a database or HTTP endpoint. The request reaches the target, the response is sent back, and the only evidence lives in scattered application logs that may be rotated or overwritten. The setup decides who the caller is, but it provides no enforcement on the path the request travels.
Why audit trails matter for MCP gateways
An audit trail is a chronological record that can be trusted to answer three questions: who initiated the call, what operation was performed, and what data was returned. For AI‑driven workloads, those questions are critical because a single prompt can trigger a cascade of privileged actions. Without a verifiable trail, organizations cannot demonstrate that access was limited, cannot detect malicious prompting, and cannot satisfy auditors who expect per‑request evidence.
The missing piece in current deployments
Even when identity providers enforce least‑privilege tokens, the request still travels straight to the backend service. No component in the data path inspects the payload, masks sensitive fields, or requires a human to approve a risky command. The result is a system where the setup is correct, tokens are scoped, roles are minimal, but the enforcement outcomes that constitute a true audit trail are absent.
Putting the gateway in the data path with hoop.dev
hoop.dev solves the problem by becoming the sole point of egress for every MCP request. When the model sends a request, it first passes through hoop.dev’s Layer 7 gateway running on the same Kubernetes node as the MCP sidecar. Because hoop.dev sits in the data path, it can record each session, capture the exact request and response, and store the log in a durable location.
