By NHI Mgmt Group Editorial TeamBased on TruFoundry: “RunLayer vs TrueFoundry: MCP governance and AI gateway compared” (July 2, 2026)

TL;DR: TrueFoundry’s comparison of RunLayer and its own platform shows how AI gateway architecture is converging with MCP governance, shadow AI discovery, and runtime guardrails, while still separating model routing from endpoint discovery, according to TruFoundry. The control question is no longer whether to add policy, but where identity, tool access, and audit must sit to govern agents without fragmenting the stack.


At a glance

What this is: This comparison maps two different control planes for enterprise AI: one focused on endpoint discovery and runtime security, the other on a governed gateway for models, MCP servers, and agents.

Why it matters: It matters because IAM, PAM, and NHI teams now have to decide whether agent and tool governance belongs at the endpoint, in the gateway, or across both layers.


Context

AI gateway governance is increasingly overlapping with MCP control because the identity problem now spans model access, tool authorization, and agent session oversight. In practice, that means teams are no longer comparing only routing performance or model coverage. They are deciding where identity, policy, and audit must live when agents reach into tools and MCP servers.

The article contrasts a security layer that discovers unsanctioned MCP usage on employee devices with a broader platform that centralizes model access, MCP governance, and agent registries. That distinction matters for IAM and NHI programmes because discovery, authentication, and authorisation are being pulled into the same control conversation. The governance question is not whether to add controls, but which layer owns the trust boundary.


Key questions

Q: How should teams govern agent access when both CLI and MCP are available?

A: Govern them separately, because they expose different execution patterns. CLI is usually easier to inventory, validate, and retire, while MCP can preserve state across multiple actions and therefore needs tighter session controls. Access reviews should include interface type, exposed tools, and how state is retained or discarded.

Q: Why does tool-level RBAC matter more than model routing for agent governance?

A: Model routing decides which model answers a request, but tool-level RBAC decides what the agent can actually do. Without that second layer, a well-routed agent can still reach the wrong tool or invoke a destructive action. Governance fails when access is defined only at the model layer and not at the tool boundary.

Q: What are the signs that MCP governance is split across too many layers?

A: You usually see duplicated policy logic, inconsistent audit trails, raw credentials in builder workflows, and no clear owner for shadow AI discovery. Those symptoms indicate the organisation has separated inventory, approval, and enforcement into different systems without a common trust boundary.

Q: Should security teams compare endpoint discovery with inline gateway controls?

A: Yes, because they solve different problems. Endpoint discovery finds unsanctioned MCP servers and agent activity that were never declared, while inline gateway controls govern approved calls after authentication. If a team treats them as substitutes, it will either miss shadow usage or overestimate the reach of its inline policy model.


Technical breakdown

MCP gateway auth versus endpoint discovery

MCP governance splits into two distinct control problems. One is discovery: finding unsanctioned MCP servers, skills, and agent activity on endpoints before those services become part of the approved estate. The other is enforcement: authenticating calls, checking tool-level permissions, and tracing activity inside the request path. Those controls are related but not interchangeable. Endpoint discovery helps reveal shadow usage, while gateway enforcement governs sanctioned traffic once it exists. For identity teams, that means device posture, inventory, and runtime authorisation need to be treated as separate layers rather than a single MCP control.

Practical implication: separate endpoint discovery from gateway authorisation in your control design and ownership model.

Why tool-level RBAC matters for agents

Tool-level RBAC becomes necessary when an agent can reach multiple tools from one session but should not inherit blanket access to all of them. In the article, the gateway centralises authentication, then applies policy before a tool runs, including approval for destructive actions. That matters because agent behaviour is not the same as user behaviour: a single identity may need tightly scoped access to many tools without exposing raw credentials to builders or every downstream client. The control issue is not just authentication, but which tool a given agent is allowed to invoke in context.

Practical implication: define tool permissions separately from model access and enforce them before invocation.

Virtual MCP servers and curated access

Virtual MCP servers change the governance pattern by exposing a curated subset of tools instead of the full backend surface. That reduces credential sprawl and avoids handing application builders direct access to raw MCP server credentials. The architecture also supports registries for agents, skills, and MCP servers, so platform teams can publish approved capabilities rather than allowing ad hoc tool discovery. In identity terms, this is a governance boundary around delegation: agents consume approved capabilities through a controlled catalogue, rather than assembling their own access path from unmanaged endpoints.

Practical implication: publish curated tool catalogs and hide raw backend credentials from agent builders.


NHI Mgmt Group analysis

AI gateway governance is now an identity problem, not just a traffic problem: once models, tools, and agents converge in the same control plane, authorisation and audit become as important as routing. The article shows that practitioners are choosing between endpoint discovery and inline governance, but the deeper shift is that trust must now be defined at the tool boundary as well as the model boundary. The implication is that gateway architecture and identity architecture can no longer be designed separately.

Shadow AI discovery and MCP governance are complementary, not competing, disciplines: discovering unsanctioned servers on employee devices answers a different question from authenticating approved calls in the gateway. That separation matters because security programmes often collapse inventory, policy, and runtime enforcement into one project and then miss where trust actually breaks. Practitioners should treat discovery as the intake stage for governance, not as a substitute for it.

Tool-level access is the new governance choke point for agent programs: the meaningful control is no longer whether an agent can reach an API, but whether it can reach the right tool with the right constraints and audit trail. That is a stronger fit for NHI governance than generic cloud policy because it addresses delegated access in motion. Teams that cannot express tool scope clearly will struggle to govern agents at scale.

Curated registries create a more durable trust model than raw credential distribution: if builders never touch backend secrets, the governance burden shifts from after-the-fact review to controlled publication. That is a material change for platform and IAM teams because it reduces the number of places where access decisions can drift out of policy. The broader lesson is that identity governance works better when access is consumed through registries, not assembled ad hoc.

Named concept: gateway-bound identity governance: this article illustrates a control model in which model access, MCP auth, tool RBAC, and audit converge at one boundary instead of being stitched across separate products. That boundary is increasingly where NHI and agent governance will be measured. The practical conclusion is that programmes should define who owns the gateway trust boundary before they standardise the rest of the stack.

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

Gateway-bound identity governance: enterprise AI programmes now need one explicit owner for model access, MCP authorisation, tool policy, and audit. When those duties are scattered, teams get inconsistent trust decisions and no reliable way to prove who approved what. The practical shift is to define the gateway as a governance boundary, not just a routing layer.

Shadow AI discovery remains necessary, but it is not sufficient on its own. Device inventory finds unsanctioned usage; it does not replace inline control over approved traffic. That means mature programmes should pair endpoint discovery with governed registries and tool-level policy so the approved and unapproved estates are managed differently but consistently.


For practitioners

  • Map the trust boundary for model, tool, and agent access Document which layer owns authentication, authorisation, and audit for models, MCP servers, and agent sessions so the control plane does not fragment across teams.
  • Separate discovery from enforcement Treat endpoint inventory of unsanctioned MCP activity as a different control from inline policy checks on approved gateway traffic.
  • Define tool-level RBAC for agents Scope each agent to the minimum set of tools it can invoke, and apply approval gates to destructive actions before invocation.
  • Publish curated registries instead of raw credentials Use MCP, agent, and skill registries to expose approved capabilities while keeping backend secrets out of builder workflows.

Key takeaways

  • The core issue is not whether AI gateways exist, but whether they own the trust boundary for models, tools, and agents in a way that identity teams can govern.
  • Discovery and enforcement are separate jobs. Endpoint scanning reveals unsanctioned MCP usage, while inline controls govern approved tool calls and session activity.
  • The strongest governance pattern is curated access through registries and tool-level RBAC, because it reduces credential exposure and makes agent access auditable.

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 OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03 — Vulnerable Third-Party NHIThe article centers on governed MCP servers, registries, and exposed tool access paths.
NHI-04 — Insecure AuthenticationThe gateway authenticates MCP calls with OIDC, JWT, or API keys before tool execution.
NHI-10 — Human Use of NHIThe article warns against builders handling raw credentials directly in agent workflows.
Recommendation — Restrict third-party MCP exposure and inventory every external tool path before agents can use it. Apply strong authentication to every MCP call and reject unauthenticated tool access. Keep humans out of direct credential handling by publishing governed registries and approved access paths.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAgent sessions and tool invocation require scoped privilege and approval controls.
Recommendation — Limit agent privilege at the tool boundary and require approval for destructive actions.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe gateway design is fundamentally about permissions and authorizations for tools and agents.
Recommendation — Define and enforce entitlements for models, tools, and agents under one authorization model.
NIST Zero Trust (SP 800-207)6.4 — Access ControlThe article describes a zero trust style boundary where every tool call is checked at runtime.
Recommendation — Place runtime access checks at the boundary where agents invoke tools and services.

Key terms

  • AI Gateway: A control point that sits between AI applications and the models, tools, or data they call. In practice, it can authenticate requests, enforce policy, inspect runtime behaviour, and stop unsafe actions before they spread into connected systems.
  • 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.
  • Shadow AI: AI agents, copilots, or connected tools operating without full visibility or governance from security teams. Shadow AI becomes an identity problem when those systems authenticate with unmanaged tokens, service accounts, or OAuth apps that can reach production resources.
  • Scoped RBAC: Scoped RBAC is role-based access control limited to a defined boundary, such as an application, tenant, project, environment, or data set. It assigns permissions through roles, but only within the approved scope, reducing overreach. Technically, the scope constrains where role grants apply, while preserving centralized role governance and review.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
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