Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hello John Neubecker,
Welcome to Microsoft Q&A and Thank you for reaching out.
Based on the behavior described, this does not appear to be related to the model in use. OAuth identity passthrough is handled by the Foundry Agent Service layer and is model agnostic. Consistent behavior across GPT-4.1, GPT-4.1 mini, and GPT-5 variants indicates that model compatibility is not the root cause.
In the Foundry Agent Playground, the OAuth consent continuation flow is handled automatically by the platform. After consent is completed, the agent is expected to rediscover the MCP server tools and invoke them using the authenticated user context.
The key indicator in the scenario is that the MCP server is discovered, but the tools array is empty after authentication. This suggests that tool discovery is not completing successfully under the authenticated context.
This also explains the remaining behavior:
- Repeated consent prompts indicate that the authenticated session is not being retained or applied correctly
- An empty tools list preventing tool invocation
- The agent falls back to a language-only response when no callable tools are available
Given that the same MCP tool works correctly when OAuth identity passthrough is disabled, this points to an issue with authentication propagation rather than the MCP tool itself. Common causes include the access token not being applied to MCP requests after consent, token validation failing at the MCP endpoint, or required scopes not being present in the OAuth configuration.
At this stage, please:
- Confirm that the MCP endpoint is receiving the Authorization header after consent
- Verify that the token includes the expected audience and scopes
- Review MCP server logs for authorization or discovery-time failures
References:
Connect to MCP Server Endpoints for agents - Microsoft Foundry | Microsoft Learn
Thank you!
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.