foundry toolboxes make mcp user delegation less painful

Foundry Toolboxes make MCP user delegation less painful

7/23/2026

Foundry Toolboxes make MCP user delegation less painful

The interesting part about Foundry Toolboxes is not the endpoint consolidation. It is that Microsoft is finally treating identity flow as a first-class agent design problem.

That matters because plenty of agents look fine in demos right up until they need to do real work: call an Entra-protected MCP server, read Microsoft 365 context, or take an action on behalf of a user. At that point, the question is no longer prompt quality. It is: which identity is actually crossing the boundary?

This Foundry post focuses on that handoff. The pattern is simple: put multiple tools behind a Toolbox endpoint, then let the toolbox handle the connection and auth model for each tool. In the official docs, MCP connections support CustomKeys, OAuth2, AgenticIdentityToken, and UserEntraToken. For hosted agents, Microsoft also requires the Foundry User role on the project for the developer, the agent identity, and the end user when OAuth-backed flows are involved.

What Toolboxes actually solve

As a building block, this is good. Reusing one curated tool surface across agents is better than recreating the same MCP and API wiring in every project. If you are building Microsoft Copilot and AI agents, that cuts down duplicated config and gives you a more obvious trust boundary.

The most useful detail is that a toolbox can front different auth styles per connection. That means one agent can talk to a private MCP server and also call Microsoft 365-oriented tools like Work IQ without every agent author reinventing token plumbing.

A minimal MCP tool definition in the docs looks like this:

{
  "description": "MCP server with OAuth/identity auth",
  "tools": [
    {
      "type": "mcp",
      "server_label": "myserver",
      "server_url": "https://your-mcp-server.example.com",
      "project_connection_id": "<OAUTH_OR_IDENTITY_CONNECTION_NAME>"
    }
  ]
}

And the auth choices exposed in the CLI are explicit:

Auth typeWhat it implies
user-entra-tokenuser passthrough to downstream resource
project-managed-identityproject identity calls downstream resource
agentic-identityagent identity calls downstream resource
oauth2delegated flow with consent

That is the right shape. Agents should not blur those cases together.

What I would watch before standardizing on it

The community read on Toolboxes is fair: centralization and reuse are here, but the bigger governance story is still being built. Microsoft itself has framed discoverability and governance as part of the roadmap, and that matters more than the glossy part of the announcement.

In practice, the hard problems are still the old ones:

  • who can publish or change a shared toolbox
  • how you audit tool calls across agents
  • whether your user-delegated flow quietly widens access beyond what you intended
  • how much of this remains public-endpoint-first

That last point is not theoretical. Microsoft documents that the hosted Foundry MCP Server currently does not support network isolation and uses the public endpoint https://mcp.ai.azure.com. It also notes that requests and responses can be processed in EU or US data centers, and says if you require strict in-region processing, do not use that preview feature. For some orgs, no big deal. For others, that alone rules out production use.

There is also a practical OAuth gotcha: the first call can return CONSENT_REQUIRED with error code -32006, and the user has to complete consent before retrying. If you are building internal custom MCP servers or broader AI workflow automation, plan for that user journey up front instead of discovering it in pilot.

My take

This is one of the better Foundry additions because it addresses a real engineering mess, not just agent packaging. Centralizing tools is useful. Centralizing identity decisions is the bigger win.

I would use Toolboxes for shared enterprise tool composition now, but I would not confuse this with finished governance. If you built your own per-agent auth sprawl, this is cleaner. If you need deep observability, tight regional guarantees, or private-only patterns everywhere, you still need to verify the edges carefully before calling it your standard.

Microsoft FoundryMCPCopilotEntra IDAI agents

Keep reading