Azure AI Foundry Agent cannot call an MCP server

Joe Bacon 10 Reputation points
2025-07-29T13:46:50.6266667+00:00

Wanting to create my own MCP server and have the Azure Foundry Agent be able to call it. I have followed the documentation here: https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/model-context-protocol. I have also spun up the AspNetCoreSseServer sample to see if I could get that working. MCP Inspector says that the server is all good and the tools work. But when I register the server with an agent, I can list the tools but they never work (tools/list). From the logs it seems that tools/call is never attempted from the Agent. The only error info you get from Azure is:

{
name: "mcp" context: {trace_id: "thread_EOpOEzsF6ghaS56Ff3U56XNJ"span_id: "call_B6mCXf2XlY27mNWbg1rQapOy"thread_id: "thread_EOpOEzsF6ghaS56Ff3U56XNJ"} kind: "Tool" parent_id: "step_tsnBQs65XG2Xn80dVP4tA4WN" start_time: "2025-07-29T14:19:59.000Z" end_time: "2025-07-29T14:20:00.000Z" status: {status_code: "Ok"description: "completed"} attributes: {span_type: "Tool"id: "call_B6mCXf2XlY27mNWbg1rQapOy"type: "mcp"arguments: "{"message":"hi"}"name: "echo"server_label: "AspNetCoreSseServer"output: ""} }

Has anyone else hit this issue?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

1 answer

Sort by: Most helpful
  1. Joe Bacon 10 Reputation points
    2025-08-12T07:48:16.36+00:00

    This issue appears to be related to this BUG: https://github.com/Azure/azure-sdk-for-net/issues/51605. As there are currently issues with calling MCP tools from Agents (https://github.com/Azure/azure-sdk-for-python/issues/42428) I am unable to test the above as a workaround. I will test when this is fixed.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.