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.
Azure AI Foundry Agent cannot call an MCP server
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?