Skip to content

Commit 5cf166c

Browse files
Merge pull request #308938 from ggailey777/patch-7
[Function] Re-enable corrected Python weather server link
2 parents 02b1c48 + fff6d12 commit 5cf166c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

articles/azure-functions/scenario-host-mcp-server-sdks.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Host servers built with MCP SDKs on Azure Functions
33
description: "Learn how to host servers built with Anthropic MCP SDKs on Azure Functions. This quickstart shows how to deploy MCP SDK based servers as custom handlers in Azure Functions, using serverless scale and security features."
4-
ms.date: 11/11/2025
4+
ms.date: 12/02/2025
55
ms.topic: quickstart
66
ai-usage: ai-assisted
77
ms.collection:
@@ -202,23 +202,23 @@ Your MCP server is now running in Azure. To connect GitHub Copilot to your remot
202202
You can review the code that defines the MCP server:
203203
::: zone-end
204204
::: zone pivot="programming-language-csharp"
205-
The MCP server code is defined in the project root. The server uses the official C# MCP SDK to define weather-related tools:
205+
The MCP server code is defined in the project root. The server uses the official C# MCP SDK to define these weather-related tools:
206206
207-
:::code language="csharp" source="~/functions-host-mcp-sdk-dotnet/Program.cs" :::
207+
:::code language="csharp" source="~/functions-host-mcp-sdk-dotnet/Tools/WeatherTools.cs" :::
208208
209209
You can view the complete project template in the [Azure Functions .NET MCP SDK hosting](https://github.com/Azure-Samples/mcp-sdk-functions-hosting-dotnet) GitHub repository.
210210
::: zone-end
211211
::: zone pivot="programming-language-python"
212-
The MCP server code is defined in the `weather.py` file. The server uses the official Python MCP SDK to define weather-related tools:
213-
<!--
214-
:::code language="python" source="~/functions-host-mcp-sdk-python/weather.py" :::
215-
-->
212+
The MCP server code is defined in the `server.py` file. The server uses the official Python MCP SDK to define weather-related tools. This is the definition of the `get_forecast` tool:
213+
214+
:::code language="python" source="~/functions-host-mcp-sdk-python/server.py" range="1-13,23-29,76-110" :::
215+
216216
You can view the complete project template in the [Azure Functions Python MCP SDK hosting](https://github.com/Azure-Samples/mcp-sdk-functions-hosting-python) GitHub repository.
217217
::: zone-end
218218
::: zone pivot="programming-language-typescript"
219-
The MCP server code is defined in the `src` folder. The server uses the official Node.js MCP SDK to define weather-related tools:
219+
The MCP server code is defined in the `src` folder. The server uses the official Node.js MCP SDK to define weather-related tools. This is the definition of the `get-forecast` tool:
220220
221-
:::code language="typescript" source="~/functions-host-mcp-sdk-node/src/index.ts" :::
221+
:::code language="typescript" source="~/functions-host-mcp-sdk-node/src/server.ts" range="1-13,60-137,218-219" :::
222222
223223
You can view the complete project template in the [Azure Functions TypeScript MCP SDK hosting](https://github.com/Azure-Samples/mcp-sdk-functions-hosting-node) GitHub repository.
224224
::: zone-end

0 commit comments

Comments
 (0)