For how the core harness connects to a remote MCP server with header auth or OAuth, see Setup MCP Servers in the TrueForge docs. This page covers the governance TrueFoundry adds on top: centralized credentials in the MCP Gateway, RBAC, guardrails, and per-user delegation.
Why this matters
In other agent platforms, you must register MCP servers with credential headers per agent or per workspace, and developers handle OAuth tokens or API keys directly:- Claude Managed Agents — register MCP servers with vault credentials per workspace. Developers manage vault IDs and credential matching by URL.
- LangSmith Managed Deep Agents — register MCP servers via API with
headersarrays containing raw bearer tokens.
Gateway-managed MCP access
How MCP works in Agent Harness
When an agent run needs a tool:- The harness discovers tools from connected MCP servers.
- The MCP Gateway checks user/team permissions.
- The AI Gateway applies stored credentials (user-scoped OAuth or service-level tokens).
- The tool is invoked, traced, and results flow back into the agent context.
Server and tool selection
- Attach only the MCP servers an agent needs
- Enable only specific tools required for a use case
- Exclude sensitive or destructive tools from the agent’s tool surface
- Use virtual MCP servers to curate and expose a controlled subset of tools
Preload Skill / MCP tools into agent context
For each MCP server, you can configure Preload Skill / MCP tools into agent context. When disabled for an MCP server:- Tool details are not loaded upfront in the agent’s context.
- The agent dynamically discovers available tools at runtime.
In-chat authentication
If a user has not yet authenticated to a required MCP server, the agent chat experience prompts authentication inline — the user clicks “Connect”, completes the OAuth flow, and continues the conversation without leaving the chat.
In-chat MCP authentication: the user connects to Slack directly from the agent conversation
Safety controls
- Mark destructive or non-read-only tools for approval workflows
- Require explicit human confirmation before high-impact actions
- Apply MCP guardrails and gateway policies before and after tool execution
Operational visibility
MCP tool calls are part of end-to-end agent tracing:- Which server and tool were used
- Inputs and outputs (subject to policy/redaction)
- Latency and error patterns
- User/team attribution and cost impact