Azure Function MCP trigger fails to respond to initialize request from VS Code MCP client

Aaron Ching 10 Reputation points Microsoft Employee
2025-05-01T04:02:35.5166667+00:00

We have a vanilla Azure Function created with a vanilla hello world McpToolTrigger. It works great when called locally from VS Code MCP Client but it keeps failing with "Waiting for server to respond to initialize request..." when calling with the exact same Azure Function published to Azure. It doesn't seem to be networking issue because if we modify the mcp_extension key a little bit, it will immediately return 401 error.

Our VS Code version is 1.99.3. Function app is version 4, just the basic vanilla project created from Visual Studio 2022 and published directly from Visual Studio. We have also confirmed that the Function app is running as expected in Azure and we can ping the endpoint as expected.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,781 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Loknathsatyasaivarma Mahali 1,875 Reputation points Microsoft External Staff Moderator
    2025-05-14T09:57:33.1466667+00:00

    Hello Aaron Ching,Thanks for you patience on this. 

    I have reached out to Azure Functions engineering team on this issue and sharing the below. 

    Upon investigating further, team has confirmed that this is a know issue and a fix related to this issue has been published in preview version 4.*.  NuGet Gallery | Microsoft.Azure.Functions.Worker.Extensions.Mcp 1.0.0-preview.4

    Also engineer team has suggested to the latest version preview5 which helps in avoiding hanging and opening a bunch of connections. NuGet Gallery | Microsoft.Azure.Functions.Worker.Extensions.Mcp 1.0.0-preview.5

    0 comments No comments

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.