Skip to content

Commit 215a7eb

Browse files
committed
Update MCP Apps quickstart to clarify virtual environment setup and adjust code snippets
1 parent 2af7dac commit 215a7eb

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

articles/azure-functions/scenario-custom-remote-mcp-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ You can view the complete project template in the [Azure Functions Java MCP Serv
189189
::: zone pivot="programming-language-python"
190190
The function code for the MCP server tools is defined in the `src/function_app.py` file. The MCP function annotations expose these functions as MCP Server tools:
191191

192-
:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="37-49" :::
192+
:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="30-33" :::
193193

194-
:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="84-106" :::
194+
:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="36-60" :::
195195

196196
You can view the complete project template in the [Azure Functions Python MCP Server](https://github.com/Azure-Samples/remote-mcp-functions-python) GitHub repository.
197197
::: zone-end

articles/azure-functions/scenario-mcp-apps.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,24 @@ The MCP Apps weather tool includes a frontend application that you must build be
127127
cd src/app
128128
npm install
129129
npm run build
130-
cd ../
130+
cd ..
131131
```
132132

133-
1. In the `/src` directory, install Python dependencies:
133+
1. In the `src` directory, create a virtual environment in which the app runs:
134134

135-
```console
136-
pip install -r requirements.txt
135+
### [Bash](#tab/bash)
136+
137+
```bash
138+
python -m venv .venv
139+
```
140+
141+
### [cmd](#tab/cmd)
142+
143+
```cmd
144+
python -m venv .venv
137145
```
138146

139-
> [!NOTE]
140-
> It is a best practice to create a virtual environment before doing the pip install to avoid dependency issues or collisions, or if you are running in CodeSpaces. See [Python Environments in VS Code](https://code.visualstudio.com/docs/python/environments) for more information.
147+
---
141148

142149
::: zone-end
143150
::: zone pivot="programming-language-typescript"

0 commit comments

Comments
 (0)