Skip to content

Commit 69998a8

Browse files
authored
Merge pull request #314365 from rmca14/warns4-7b
Fix code snippet warnings syntax
2 parents a463ad7 + ade2f1e commit 69998a8

2 files changed

Lines changed: 5 additions & 5 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
@@ -198,9 +198,9 @@ You can view the complete project template in the [Azure Functions Java MCP Serv
198198
::: zone pivot="programming-language-python"
199199
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:
200200
201-
<!- >:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="30-33" ::: >
201+
<!-- :::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="30-33" ::: -->
202202
203-
<!- >:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="36-60" ::: >
203+
<!-- :::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="36-60" ::: -->
204204
205205
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.
206206
::: zone-end

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ You can view the complete project template in the [Azure Functions .NET MCP Serv
250250
::: zone pivot="programming-language-python"
251251
The function code for the MCP Apps weather tool is defined in the `src/function_app.py` file. In this function, the `metadata` parameter on `@app.mcp_tool()` adds UI metadata to the `get_weather` tool.
252252

253-
<!- >:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="109-130" ::: >
253+
<!-- :::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="109-130" ::: -->
254254

255255
The `@app.mcp_resource_trigger()` decorator is applied to the `get_weather_widget` function, which serves the HTML widget.
256256

257-
<!- >:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="64-105" ::: >
257+
<!-- :::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="64-105" ::: -->
258258

259259
The `TOOL_METADATA` constant declares a `ui.resourceUri` that tells the MCP host to fetch the interactive UI from `ui://weather/index.html` after the tool runs.
260260

261-
<!- >:::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="20-21" ::: >
261+
<!-- :::code language="python" source="~/functions-scenarios-custom-mcp-python/src/function_app.py" range="20-21" ::: -->
262262

263263
The `get_weather_widget` function serves the bundled HTML file at that URI using `@app.mcp_resource_trigger()`.
264264

0 commit comments

Comments
 (0)