TL;DR: MCP shifts LLM-to-tool connections into a governed runtime pattern, and Obot’s architecture highlights why policy enforcement, identity integration, session handling, and audit logging now sit at the center of secure AI infrastructure, according to Obot. The governance gap is not transport alone, but control over who can call which tool, when, and with what traceability.
At a glance
What this is: This is an analysis of Obot's MCP gateway architecture, with the key finding that governance, identity, and audit controls have become the practical control plane for AI tool access.
Why it matters: IAM and platform teams need to treat MCP as a governed identity and policy layer because AI tools now inherit the same access, session, and audit problems as other privileged runtimes.
Context
MCP governance is the problem space here: once LLMs are allowed to call internal and external tools, the hard part is no longer connectivity but policy, identity, and traceability across every request path. Traditional API gateway thinking helps with transport, but it does not by itself answer who may invoke which tool, under what session context, and with what audit evidence.
Obot frames its MCP gateway as the runtime layer that mediates those decisions. For identity and access teams, that makes MCP closer to a governed control plane than a simple integration pattern, especially where enterprise permissions, observability, and delegated tool use all converge.
Key questions
Q: What breaks when MCP access is built on shared API tokens?
A: Shared API tokens break accountability first. Once one token is reused across people or scripts, the action trail no longer maps cleanly to a single identity, and revocation becomes blunt rather than targeted. The result is access that may still work after the original user’s intent has changed.
Q: Why does MCP gateway governance matter for access control decisions?
A: Because the gateway is where tool invocation is actually approved or denied, and that decision sits closer to runtime action than the original login. If access is granted only at the identity layer but not at the tool layer, the organisation loses control over what the model can do.
Q: What are the signs that MCP governance is failing?
A: Common signs include agents reaching systems outside their intended workflow, incomplete audit trails for tool use, and data retrieval that cannot be tied back to a clear business purpose. If teams cannot reconstruct who invoked which tool, against which resource, and why, the MCP layer is already operating with insufficient control.
Q: How should security teams govern MCP tool access in enterprise environments?
A: Security teams should bind MCP tool access to enterprise identities, entitlements, and lifecycle state before a request reaches production tools. A gateway can enforce policy at the edge, but governance only exists when the identity system knows who is calling, what they are allowed to do, and whether approval or offboarding has already occurred.
Technical breakdown
Why MCP gateway policy sits above tool routing
MCP changes the control point from simple request forwarding to per-tool authorization. In this model, the gateway is not just proxying traffic between a client and a server. It is evaluating whether a user, session, or connected application may call a specific tool on a specific MCP server, often with policy tied to group membership, registry visibility, or environment rules. That matters because the access decision is made at the moment of tool invocation, not when the application is deployed. The architecture therefore behaves like a runtime policy engine for AI-mediated action.
Practical implication: treat MCP gateways as enforcement points for tool-level authorization, not as passive integration middleware.
Identity integration and session handling in MCP
Obot's architecture shows MCP access being bound to identity provider groups, tokens, and active sessions. That means the security model depends on more than authenticating the user once. It depends on how the session is established, which group claims are accepted, how token validity is checked, and whether the gateway preserves a trustworthy link between the caller and the downstream tool action. In enterprise environments, this is where human IAM patterns and NHI-style runtime governance start to overlap: the human authenticates, but the tool execution is mediated by machine-facing controls.
Practical implication: align IdP claims, token validation, and session scope before exposing MCP servers to production users.
Why audit logging matters for AI tool governance
In an MCP runtime, the useful audit record is not just that a tool was called. It is which function was invoked, what arguments were passed, what response came back, and whether the result exposed sensitive data or triggered a risky workflow. That makes logging a governance control, not just an observability feature. Without request and response traceability, teams cannot reconstruct whether a model was over-permissioned, whether a user action was actually executed, or whether data moved through an approved path. The result is weak accountability even if the platform is technically secure.
Practical implication: log tool calls, arguments, responses, and identity context as one correlated audit event.
Breaches seen in the wild
- LiteLLM MCP auth bypass 2026: An exploited LiteLLM MCP auth bypass and default sk-1234 master keys let attackers steal AI gateway master and provider API keys.
- ShadowRay 2024: Attackers took over internet-exposed Ray AI clusters via the disputed CVE-2023-48022, exposing cloud keys, AI API tokens and GPU compute.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
MCP gateway governance is now the practical control plane for AI tools. Once LLMs can invoke internal and external systems, the real security question shifts from whether the protocol connects cleanly to whether the gateway can govern action at runtime. That makes policy enforcement, identity binding, and traceability the controls that matter most. Practitioners should treat MCP as an access governance problem, not just an integration pattern.
Traditional API gateway assumptions only partially fit MCP. API gateways were designed around predictable client-server exchanges, while MCP introduces tool selection, delegated context, and AI-mediated requests that need finer-grained enforcement. The important shift is that the request is not merely being transported, it is being authorised as an action. Teams need to re-evaluate where authorization is decided and what evidence survives the execution path.
Runtime auditability is the difference between governed AI and opaque AI. If a platform cannot show who invoked a tool, what arguments were used, and what came back, then it cannot support credible governance in regulated or high-risk environments. That gap is not a logging nuisance, it is an accountability failure. The named concept here is MCP governance gap: the point where identity, policy, and evidence have to converge or the control plane becomes decorative.
Identity integration has to extend beyond authentication into session-scoped authority. Obot's use of IdP groups and token checks reflects a broader reality: once AI tools are exposed, access decisions have to hold across the whole runtime session, not just at login. That applies whether the caller is a human user, a workload, or an assistant embedded in a workflow. Practitioners should govern the session, not only the sign-in event.
The market signal is clear: MCP is becoming a governed runtime pattern rather than a connector pattern. That shift pushes AI infrastructure teams toward controls familiar to IAM, PAM, and NHI governance, even when the workload is not a classic machine identity. Organisations that still treat MCP as a simple transport layer will miss the real control point. The implication is to align AI platform design with identity governance from the start.
From our research library:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
- Read next: MCP Security Guide
What this signals
MCP governance gap: AI platform teams now need a control point that binds identity, policy, and audit evidence to each tool call. If those three elements are split across different systems, the organisation can see activity but cannot govern it coherently.
The practical shift is from securing transport to securing action. That means the meaningful boundary is the gateway decision, not the model prompt or the backend service alone, and that boundary should be designed with the same rigour as any other privileged access path.
For practitioners
- Define tool-level authorization policies Map each MCP server and each exposed tool to an explicit policy decision so the gateway can approve or deny calls at request time, not after the fact.
- Bind MCP access to IdP groups and claims Use identity provider groups, token validation, and domain restrictions to scope which users can invoke which tools and from which enterprise context.
- Correlate session data with audit events Log the caller identity, tool name, input arguments, server response, and timestamp together so investigations can reconstruct each AI-mediated action.
- Separate registry visibility from execution rights Do not let discovery rights imply runtime access. Make MCP server catalog visibility independent from the ability to invoke the underlying tool.
- Review gateway assumptions for AI-mediated workflows Check whether existing access controls assume a human-requested API call rather than a model selecting tools inside an active session.
Key takeaways
- MCP makes AI tool use a governance problem, not just an integration problem, because each invocation needs policy, identity, and traceability.
- Obot's architecture shows why runtime enforcement matters more than simple connectivity when LLMs are allowed to call internal and external systems.
- Organisations should separate tool discovery from execution rights and make audit logging rich enough to reconstruct each AI-mediated action.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | MCP access depends on token validation, IdP binding, and session trust. |
| NHI-05 — Overprivileged NHI | Tool access must be constrained to the minimum rights each user or workflow needs. | |
| NHI-10 — Human Use of NHI | Humans are acting through AI-mediated tool calls that need explicit governance. | |
| Recommendation — Enforce strong authentication and session validation before allowing MCP tool invocation. Limit MCP server and tool permissions to the smallest viable access scope. Separate human intent from machine execution by enforcing tool-level approval and traceability. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | MCP gateway policy decisions map directly to entitlement enforcement. |
| Recommendation — Apply entitlement controls to every MCP tool call and review them regularly. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | Weak MCP governance can expose credentials and broaden downstream tool reach. |
| Recommendation — Track MCP credential exposure and movement paths as part of adversary hunting. | ||
Key terms
- MCP Gateway: The control layer that relays assistant intent to tools and data sources through the Model Context Protocol. In practice, it becomes a policy boundary, not just a transport layer. If it trusts model output too early, it can turn unverified reasoning into real-world execution or disclosure.
- Tool-level Authorization: Tool-level authorization is the practice of checking permissions on each discrete action a client asks an MCP server to perform. It matters because LLMs can generate dynamic requests, so access control must be enforced where the action is executed, not only where the request is formed.
- Session-scoped authority: The permissions and decision limits that apply to a model or agent during one active interaction. Unlike static account privileges, session-scoped authority depends on context, memory, and runtime policy, so it must be evaluated continuously rather than assumed from initial setup.
- Identity Traceability: Identity traceability is the ability to link each action back to a specific identity, authorisation path, and time window. It is essential when humans, service accounts, and AI agents all operate in the same environment and auditors need a defensible record.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
Published by the NHIMG editorial team on August 20, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org