From 1edbed8a2a509dba9d47805b3564d4dd97309042 Mon Sep 17 00:00:00 2001 From: lilyjma Date: Wed, 25 Mar 2026 11:41:08 -0700 Subject: [PATCH 1/3] update dependencies;use stable bundles --- infra/main.bicep | 3 +-- src/host.json | 4 ++-- src/local.settings.json | 3 +-- src/requirements.txt | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index 4594e7b..4071f20 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -110,7 +110,7 @@ module api './app/api.bicep' = { applicationInsightsName: monitoring.outputs.name appServicePlanId: appServicePlan.outputs.resourceId runtimeName: 'python' - runtimeVersion: '3.12' + runtimeVersion: '3.13' storageAccountName: storage.outputs.name enableBlob: storageEndpointConfig.enableBlob enableQueue: storageEndpointConfig.enableQueue @@ -119,7 +119,6 @@ module api './app/api.bicep' = { identityId: apiUserAssignedIdentity.outputs.resourceId identityClientId: apiUserAssignedIdentity.outputs.clientId appSettings: { - PYTHON_ISOLATE_WORKER_DEPENDENCIES: '1' } virtualNetworkSubnetId: vnetEnabled ? serviceVirtualNetwork.outputs.appSubnetID : '' } diff --git a/src/host.json b/src/host.json index 6e8fd00..06d01bd 100644 --- a/src/host.json +++ b/src/host.json @@ -9,7 +9,7 @@ } }, "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview", - "version": "[4.32.0, 5.0.0)" + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[4.*, 5.0.0)" } } diff --git a/src/local.settings.json b/src/local.settings.json index d96820c..504bb06 100644 --- a/src/local.settings.json +++ b/src/local.settings.json @@ -2,7 +2,6 @@ "IsEncrypted": false, "Values": { "FUNCTIONS_WORKER_RUNTIME": "python", - "AzureWebJobsStorage": "UseDevelopmentStorage=true", - "PYTHON_ISOLATE_WORKER_DEPENDENCIES": "1" + "AzureWebJobsStorage": "UseDevelopmentStorage=true" } } \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt index 168adeb..8d46b6c 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -2,4 +2,4 @@ # The Python Worker is managed by the Azure Functions platform # Manually managing azure-functions-worker may cause unexpected issues -azure-functions==1.25.0b3 +azure-functions==2.0.0 From d54e3dd1ff0d85722caae65740b3cdaffdb52ea7 Mon Sep 17 00:00:00 2001 From: lilyjma Date: Wed, 25 Mar 2026 11:42:15 -0700 Subject: [PATCH 2/3] update to python 3.13 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6de09a..d44fbab 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Below is the architecture diagram for the Remote MCP Server using Azure Function ## Prerequisites -+ [Python](https://www.python.org/downloads/) version 3.11 or higher ++ [Python](https://www.python.org/downloads/) version 3.13 or higher + [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?pivots=programming-language-python#install-the-azure-functions-core-tools) >= `4.0.7030` + [Azure Developer CLI](https://aka.ms/azd) + To use Visual Studio Code to run and debug locally: From d13b2ffdd06d63a737dc81198427f529c903790c Mon Sep 17 00:00:00 2001 From: lilyjma Date: Wed, 25 Mar 2026 11:48:12 -0700 Subject: [PATCH 3/3] update python version requirement; remove setting requirement --- README.md | 4 +--- src/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d44fbab..903a611 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Below is the architecture diagram for the Remote MCP Server using Azure Function ## Prerequisites + [Python](https://www.python.org/downloads/) version 3.13 or higher -+ [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?pivots=programming-language-python#install-the-azure-functions-core-tools) >= `4.0.7030` ++ [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?pivots=programming-language-python#install-the-azure-functions-core-tools) >= `4.8.0` + [Azure Developer CLI](https://aka.ms/azd) + To use Visual Studio Code to run and debug locally: + [Visual Studio Code](https://code.visualstudio.com/) @@ -285,8 +285,6 @@ This sample uses the new first-class MCP decorators available in `azure-function - Eliminating the need for manual JSON serialization of tool properties - Using standard Python decorators (`@app.mcp_tool()`, `@app.mcp_tool_property()`, `@app.blob_input()`, `@app.blob_output()`) -**Important:** When using the MCP decorators, you must set `PYTHON_ISOLATE_WORKER_DEPENDENCIES=1` in your app settings (both locally in `local.settings.json` and in your deployed Azure Function App). - Here's the actual code from the function_app.py file: ```python diff --git a/src/requirements.txt b/src/requirements.txt index 8d46b6c..25671e4 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -2,4 +2,4 @@ # The Python Worker is managed by the Azure Functions platform # Manually managing azure-functions-worker may cause unexpected issues -azure-functions==2.0.0 +azure-functions