The Authorization Boundary Problem When AI Agents Call Tools Across Organizational Trust Zones
An MCP gateway can authorize each agent tool call before it runs.

Securing enterprise agents across organizational trust zones requires an MCP gateway with OAuth authentication, role-based access control for individual tools, and authorization before each action executes. Session-level access is too coarse for agents that choose and chain tools at machine speed. Identity, delegated scope, and policy must follow the agent across every boundary, with an attributable record of each tool call and access decision.
Why AI agents crossing organizational trust zones break existing authorization models
Traditional access control uses the application login as the main point at which it checks access. A person authenticates, works within a session, and logs out. An agent instead chooses tools dynamically, using one call’s output to decide what to do next. A tool call is an individual request to use a capability, while a trust zone is a team, tenant, or system with its own access rules. Crossing those zones changes whose authority applies.
This is not simply faster API traffic. Session-level permission establishes access without necessarily resolving whether each downstream action is authorized in its new context. Least privilege remains the right goal, but applying it requires knowing which agent is acting, for whom, with what scope, against which boundary, at the moment of execution.
The Model Context Protocol, or MCP, makes these crossings easier by standardizing connections between AI clients and enterprise tools. Anthropic donated MCP in December 2025 to the Agentic AI Foundation, a directed fund under the Linux Foundation. Compatibility removes the need for custom integration between every client and server. It also expands the reach of ungoverned connections. A common protocol is not a common permission slip.
What MCP actually exposes when agents fan out across systems
MCP sets out how to reach capabilities, but enterprises must set and enforce rules for those connections. Its servers expose tools for write-side actions, resources for read-side data, and prompts as reusable templates. If a server is compromised, its data, actions, and guidance on how to behave can all be exposed together. The risk can begin with an ordinary developer connection. A local MCP server that links a coding assistant to a staging database or production API can be missing from every inventory, with no review of its credentials or check of its scope.
The 2025 Smithery.ai MCP hosting breach illustrates how much authority can accumulate behind that connection. GitGuardian obtained a live fly.io token controlling thousands of hosted MCP servers and the API keys their clients sent. The 2026 LiteLLM MCP authentication bypass exposed a different failure. A fail-open fallback accepted any bearer token, so attackers could steal AI gateway master and provider API keys. Authentication was present, but its fallback defeated its purpose.
Credentials are not the only attack surface. Tool descriptors are JSON blobs that models read as natural language, so a compromised third-party server can poison a description to redirect behavior even though the spec treats descriptions as untrusted hints. The package postmark-mcp demonstrated a related supply-chain risk, shipping fifteen clean versions before adding a single line of exfiltration code. As agents fan out across servers, they encounter more than additional tools. They encounter separate policy surfaces and more places where an audit trail can break.
Why session-level authorization cannot govern machine-speed tool chains
A traditional API gateway checks whether a client can reach an endpoint. Agent governance must ask whether this agent may execute this tool, with these parameters, for this user, now. URL endpoints and static API credentials can control deterministic app-to-app traffic, while an agent uses prompt context and earlier results to choose what to do next. An apparently harmless request can lead to a consequential write or deletion downstream.
Stateful MCP connections deepen that gap because context can persist across a multi-step workflow. A compromised or misconfigured session need not end after one request. When calls are chained at machine speed, an export, deletion, or change to a record can finish before anyone reads the logs. The July 2026 introduction of stateless sessions changes the protocol’s options, but it does not remove the need to authorize each action.
Researcher Simon Willison’s “lethal trifecta” explains the exfiltration pathway. An agent with private-data access, exposure to untrusted content, and external communication can be redirected by an injected prompt to retrieve and send sensitive information. CVE-2025-32711, known as EchoLeak, demonstrated zero-click data exfiltration from M365 via Copilot without user interaction. Rate limiting cannot distinguish a malicious call from an authorized one. IP allowlisting likewise shows which system makes the call but leaves open what that system may do and whose authority it uses.
What tool-call-level authorization actually requires
Authorization must treat permission to reach a server as separate from permission to use its tools, take a given action, and access a given set of data. Those are distinct authorization decisions. Authentication through OAuth, OIDC, or SSO establishes identity, but does not by itself settle those permissions. Policy must check the proposed call before it runs. A completed deletion with an excellent audit record is still a completed deletion.
Default-deny tool access makes this distinction concrete. A security-scanner agent that needs two tools should not receive every capability exposed by their server. Explicit grants bound its tool access if the agent is compromised, while action and data restrictions narrow what those granted tools may do. Tool-level access control must say which role can use which capability within a server, as well as who can access the server.
The June 2026 Enterprise-Managed Authorization extension gives this direction an enterprise identity anchor. The extension makes the enterprise identity provider the authoritative provisioner for MCP server access, allowing users to authenticate through their existing IdP rather than manage consent separately for every server. Access decisions live in the IdP admin console with an auditable trail. Tool, action, and data policy still set what an agent may do once it has access to a server.
How do you add OAuth and tool-level RBAC through an MCP gateway?

A centralized MCP gateway provides one enforcement point between AI clients and backend servers. For a multi-agent deployment, this is where OAuth authentication and role-based access control for individual tools can form a governed path rather than separate settings scattered across servers. The gateway authenticates the client, evaluates the requested tool against its role, team, or persona, and inspects the call before forwarding it. Approved calls use brokered credentials. The gateway then inspects the response and records the result against the acting identity.
Credential brokering changes what a compromised agent can steal. The gateway injects authorized credentials at runtime, so the agent can do what it has permission to do without holding the underlying secret. Keeping a secret from an agent prevents it from exfiltrating that secret, with other forms of data exfiltration still possible. The governed tool catalog therefore also needs runtime inspection, DLP, and context narrowing. Full trajectory logging, cost controls, and integration with the data and workflow layer complete the enforcement path.
The same architecture simplifies client configuration. Claude, Codex, ChatGPT, Cursor, and Copilot can each receive a single MCP endpoint URL exposing only assigned connectors, rather than requiring separate policy work for every client. Task-scoped sessions add a time boundary, with access ending automatically and a human approving any new session. Discovery remains a separate requirement. Servers, plugins, hooks, and repository instructions outside the governed path remain shadow MCP unless the organization can find them.
How agent identity must follow the agent across every trust boundary it crosses
A shared service account identifies only a credential. At the action level, that leaves an attribution gap. NIST’s National Cybersecurity Center of Excellence describes in its concept paper how agents are often treated as generic service accounts, with no controls of their own for identity, authorization, or accountability. The Center for AI Standards and Innovation’s AI Agent Standards Initiative, launched February 17, 2026, provides related standards context rather than a substitute for enterprise identity controls.
The OpenID Foundation’s Identity Management for Agentic AI framework separates the acting agent, the delegating user, and the scope of delegation. These identities should not collapse into one. An agent’s persistent identity belongs in the organization’s existing IdP, while short-lived credentials set what it may do for a specific task. Persistence makes the agent attributable across calls. Short credential lifetimes limit exposure, while the agent keeps its identity after each task ends.
Delegation across tenants also needs explicit authorization from both sides. A signed trust assertion specifies its scope and lifetime, rather than letting one organization’s permission silently become another’s obligation. Anthropic’s Trustworthy Agents in Practice, published in April 2026, backs shared infrastructure and open standards because the model layer cannot secure agentic AI on its own. That direction favors existing enterprise identity controls over a parallel stack. With a separate system for agent access, an agent can keep its access after the employee leaves or changes teams.
What observability over individual tool calls requires, and why OpenTelemetry is the right layer
A log saying that an agent accessed a system is not enough to reconstruct authority. An attributable audit trail records the tool call, acting identity, policy decision, and outcome, tied to an accountable human owner. Shared-credential activity cannot supply that chain on its own. The record must distinguish an authorized action from a blocked request. Without that distinction, investigators can see what happened but cannot tell which controls were used.
The MCP spec’s 2026-07-28 revision deprecated protocol-level Logging on a twelve-month clock and suggested OpenTelemetry or stderr as migration paths. Migration planning can treat OpenTelemetry as an optional replacement. OpenTelemetry nevertheless offers a common layer for agent activity, including spans for creating, invoking, and planning agents, an execute_tool span for individual calls, and dedicated mcp.client and mcp.server conventions. Each invocation can become an inspectable unit within a session.
Using that layer routes agent telemetry into the organization’s existing monitoring stack. It also gives rate limiting and anomaly detection the detail they need to distinguish patterns by agent, tool, frequency, and policy outcome. High activity alone does not explain authorization. The audit must record grants, blocks, and denied attempts as well as successful calls. Those decisions show which controls cover the activity for compliance and incident response, though watching an action cannot undo it once it is complete.
Putting tool-call-level governance into practice across a team or organization
For engineering, IT, and security leaders, the first decision is what must enter the governed path. Discovery comes before enforcement. The inventory should identify every running MCP server, its credentials, the systems it reaches, and whether its connections are sanctioned. Shadow MCP should use the same control plane so it follows the same security rules. Without that inventory, even a well-designed gateway governs only the connections the organization already knows about.
The next decision is where policy will live. A central gateway gives each client one endpoint and the team one enforcement point to maintain, while persistent agent identities stay in the existing IdP. Access reviews and deprovisioning can then use the controls already applied to human access. Consumer group mapping and default-deny ACLs translate roles into tool permissions, so a scanner authorized for two tools cannot invoke the other thirty-eight on the same server.
OpenTelemetry should route individual tool calls and their access decisions to the existing monitoring stack, with an accountable human owner attached to each event. Protocol change needs an owner too. June and July 2026 brought Enterprise-Managed Authorization, stateless sessions, and the replacement of Dynamic Client Registration with Client ID Metadata Documents. A gateway that tracks those changes centrally reduces the risk of separate teams maintaining stale authorization logic, making central enforcement both a risk-management decision and a configuration convenience.


