Share via

We are following this repository: https://github.com/Azure-Samples/mcp-sdk-functions-hosting-python - and deployed the MCP server function successfully but wihtout the authentication parts necessary and we can not see the http_trigger function created ?

Turic, Mario 0 Reputation points
2026-02-03T18:24:45.4+00:00

We are following this repository: https://github.com/Azure-Samples/mcp-sdk-functions-hosting-python - and deployed the MCP server function successfully but wihtout the authentication parts necessary and we can not see the http_trigger function created in the Azure portal or via Azure CLI ?

We have a private virtual network setup following the best practices of the official Hub-Spoke architecture on Azure.
We have integrated the created resources using the "azd up" command in the given repository into our private network.

We can see no errors during the deployment of the MCP server.py function code and afterwards also not checking the Activity Logging data. A screenshot is attached.

In the Deployment Center logging data we also see no errors or issues.

We can see all of the deployed files in the App files of the Azure function app.

Can you please support us in troubleshooting this issue or provide any documentation if you have on how to setup such MCP server inside of a private virtual network architecture and only expose/allow the connection to certain whitelisted IP addresses and/or domains ?

Thank you for your time and support,

Mario Turic

MCP_server_issue_singlePDF.pdf

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Siddhesh Desai 6,555 Reputation points Microsoft External Staff Moderator
    2026-02-03T18:34:05.4033333+00:00

    Hi @Turic Mario

    Thank you for reaching out to Microsoft Q&A.

    Posting this as an answer to help other community members.

    As discussed on teams, Glad the issue is resolved.

    The issue was resolved by you, and you also followed the steps mentioned by the backend team below:

    Recommendations for Customer

    Option 1 (Recommended): Fix settings on PremiumV3

    Set both App Settings simultaneously, then restart:

    FUNCTIONS_WORKER_RUNTIME = custom AzureFunctionsJobHost__configurationProfile = mcp-custom-handler No Feature Flag needed. HttpWorkerOptionsSetup does not check Feature Flags.

    Option 2: Switch to MCP Extension approach

    Use the Azure Functions MCP Extension with McpToolTrigger bindings:

    Python sample: remote-mcp-functions-python Official docs: aka.ms/functions-mcp FUNCTIONS_WORKER_RUNTIME stays as python, no configurationProfile needed Lower risk of configuration mismatch

    Option 3: Deploy on Flex Consumption as designed

    Run azd up from the sample repo to provision FC1 automatically. The Bicep template includes VNet integration.

    If the resolution was helpful, kindly take a moment to click on 210246-screenshot-2021-12-10-121802.pngand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

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