diff --git a/ExistingServer.md b/ExistingServer.md index 623092a..2162e62 100644 --- a/ExistingServer.md +++ b/ExistingServer.md @@ -77,6 +77,8 @@ Try out the experimental [Azure Functions MCP server deployment helper](https:// httpx mcp[cli]>=1.5.0 ``` +> [!IMPORTANT] +> You must use `requirements.txt` today, as `pyproject.toml` is **not** yet supported. That's it! You're ready to run your MCP server locally and deploy to Azure Functions as a custom handler. diff --git a/README.md b/README.md index a6bf62e..d4903df 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Ensure you have the following installed: 1. Start the server by selecting the _Start_ button above the **local-mcp-server** 1. Click on the Copilot icon at the top to open chat, and then change to _Agent_ mode in the question window. 1. Ask "What is the weather in NYC?" Copilot should call one of the weather tools to help answer this question. +1. Deactivate the virtual environment ### Deploy @@ -179,7 +180,9 @@ The following are some common issues that come up. - Ensure the Function app name is correct when connecting to the server with the app endpoint. - Ensure the APIM resource name is correct when connecting to the server with the APIM endpoint. - +6. **Ensure you have the latest version of Azure Functions Core Tools installed.** + + - You need [version >=4.2.1](https://learn.microsoft.com/azure/azure-functions/functions-run-local?tabs=windows%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-typescript). Check by running `func --version`. diff --git a/host.json b/host.json index c36d8f4..35984c4 100644 --- a/host.json +++ b/host.json @@ -11,7 +11,6 @@ "workingDirectory": "", "arguments": ["weather.py"] }, - "enableForwardingHttpRequest": true, - "enableHttpProxyingRequest": true + "enableProxyingHttpRequest": true } } diff --git a/local.settings.json b/local.settings.json index 52a5fdd..e493caa 100644 --- a/local.settings.json +++ b/local.settings.json @@ -1,6 +1,6 @@ { "IsEncrypted": false, "Values": { - "FUNCTIONS_WORKER_RUNTIME": "custom" + "FUNCTIONS_WORKER_RUNTIME": "python" } } diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 1f2e56f..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,4 +0,0 @@ -[tool.ruff] -line-length = 120 -target-version = "py39" -lint.select = ["E", "F", "I", "UP"]