Most teams start governing MCP after the fact, with servers already running and agents already connected. There are two ways to take control. A proxy gateway sits in front of the servers you have and adds authentication, access rules, and logging. The other approach retires those servers and publishes governed tools that call the same systems’ APIs directly. Tray Agent Gateway takes the second approach. Each tool runs with a named user’s permissions or a scoped service account, and every call lands in one audit log, whichever AI client makes it. It won’t sit in front of a vendor’s MCP server you need to keep, and an agent’s own model and memory stay with whoever built it.
The usual starting point looks like this. Engineers connected Claude and Cursor to MCP servers for GitHub, Salesforce, and a couple of internal systems months ago. A team is piloting agents in Copilot Studio. Then a security review asks for a list of what AI can reach, and nobody can produce one. Governing that estate is a different job from designing governance on a blank page, and it starts with finding out what exists.
Find out what you have
Before choosing an approach, build the inventory: which MCP servers are running, who connected them, which clients use them, and which credentials each one holds. Some of that is visible in your identity provider, your DNS logs, and your expense reports. Some of it lives only on engineers’ laptops. How shadow MCP spreads, and how to find it covers where to look, and the AI and MCP governance page sets out the stages that follow discovery.
Two ways to take control
Every MCP gateway makes one design choice that decides most of what follows: does it sit in front of the servers you already run, or does it replace them?
| Proxy the servers you have | Replace them with governed tools | |
|---|---|---|
| What changes for teams | Agents point at the gateway, and the servers keep running behind it | Agents use tools the platform publishes, and the separate servers are retired |
| Where credentials live | With each server, unless the gateway brokers them | With the platform, scoped to each tool |
| How finely access can be restricted | Depends on what each server exposes and what the gateway can filter | Per tool and per operation, because the platform defines the tool |
| What you still maintain | Every server, its updates, and its credentials | The tools you publish |
| Audit | A log at the gateway, plus whatever each server records | One log for every call |
| Suits | Teams that depend on specific vendor servers today | Teams that would rather run fewer servers |
| Examples | Workato, Boomi, TrueFoundry, Kong, Docker, Microsoft | Tray.ai, Composio, Zapier, Boomi Connect, Workato's prebuilt MCP servers |
Examples from our comparison of MCP gateways, checked against each vendor’s own pages.1
Neither approach is right for everyone. If a team’s daily work depends on a particular vendor’s MCP server, a proxy governs it where it is. If the estate is a server per system, each with its own credentials and its own log, replacing them leaves fewer things to secure and fewer logs to reconcile.
What good governance records
Whichever approach you choose, the log is what you’ll be asked for. For every call, it should show the person behind the request, the client or agent that made it, the tool it called, the credentials it ran on, and what happened. Shared service accounts are the common gap: when every action runs under one account, the log names a service rather than a person. The MCP security and governance framework sets out the controls in more detail.
Agents need more than a gateway
A gateway governs what an agent can reach. It doesn’t decide which agents should exist, who owns each one, how they’re tested before they reach production, or when they’re retired. Those lifecycle questions sit alongside tool access, and the checklist for governing AI agents in production covers them, including where dedicated model governance tools fit.
Can Tray.ai govern your MCP servers and AI agents?
Yes, by replacing the servers with governed tools. Tray Agent Gateway for MCP connects to each system’s API directly through Tray’s 700+ connectors and publishes governed MCP tools on top.2,3 A tool can be a single connector operation or a whole workflow packaged as one composite tool, such as a Customer 360 lookup that pulls from Salesforce, Zendesk, and Stripe in one call.3
- Who can call what. MCP servers are configured per workspace, with selective tool exposure and an access management allowlist of users.2
- How clients connect. AI clients authenticate with OAuth2 or an API token.2
- Whose credentials run. Each tool runs on a shared service account or on the end user’s own credentials, and the user is prompted to authenticate at runtime when a tool needs it.2
- What gets recorded. Logs show which user ran each tool and which authentication it used. Sensitive data is protected through access controls and masking, and rate limits and audit logs apply at organization and workspace level.2
Granularity is where replacing servers pays off. To give agents read-only Salesforce access, you expose the query operations and leave out create, update, and delete. That control isn’t available when an agent connects to a server directly and tool availability is managed on the client side.2
Agent Gateway governs MCP whichever client makes the call. Agents in Copilot Studio, Claude, OpenAI, or your own framework get the same policies, and you don’t need to build your agents on Tray to use it.3 For agents you do build on Tray, Agent Builder adds guardrails and audit logs to the agent itself.4
J.W. Pepper used Agent Gateway to reduce more than 500 MCP tools to about 20 governed workflows, with zero raw database access.1
“We can now use Tray.ai to spin up new MCP Tools on a managed path. IT approves what's built, enforces policies and permissions, versions it, and publishes. We get centralized visibility and auditability across the MCP Servers and Tools we deploy — reducing risk.”
Where Tray isn’t the answer
Two situations call for something else. If a team needs a specific vendor’s MCP server to stay in the request path, Agent Gateway won’t sit in front of it, and a proxy gateway such as Workato, Boomi, Kong, or Docker will.1,3 And if you need policy over how a third-party agent reasons, which model it uses, or what it remembers, that belongs with the agent’s own platform or a dedicated AI governance tool. Agent Gateway governs what an agent can reach and do through tools.
Getting started
Agent Gateway for MCP is part of the Agent Development add-on, and your Tray account team switches it on for your organization.2,4 From there:
- Configure a workspace MCP server and add tools, either workflows or connector operations.
- Set how each tool authenticates, with a service account or the user’s own credentials.
- Add users to the access management allowlist.
- Connect a client such as Claude Desktop, Cursor, or VS Code over OAuth or an API token, test the tools, and expand to composite tools.2
Retiring the old servers can happen one system at a time. Publish the governed tool, move the agents that used the old server, and switch the server off once nothing calls it.
Sources
- Tray.ai blog, The 11 best MCP gateways for enterprise governance in 2026: https://tray.ai/blog/best-mcp-gateways/
- Tray.ai documentation, Agent Gateway overview: https://tray.ai/documentation/platform/artificial-intelligence/agent-gateway/overview
- Tray.ai, Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Tray.ai, pricing: https://tray.ai/pricing/