|
1 | 1 | --- |
2 | 2 | title: Host servers built with MCP SDKs on Azure Functions |
3 | 3 | 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 |
5 | 5 | ms.topic: quickstart |
6 | 6 | ai-usage: ai-assisted |
7 | 7 | ms.collection: |
@@ -202,23 +202,23 @@ Your MCP server is now running in Azure. To connect GitHub Copilot to your remot |
202 | 202 | You can review the code that defines the MCP server: |
203 | 203 | ::: zone-end |
204 | 204 | ::: 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: |
206 | 206 |
|
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" ::: |
208 | 208 |
|
209 | 209 | 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. |
210 | 210 | ::: zone-end |
211 | 211 | ::: 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 | +
|
216 | 216 | 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. |
217 | 217 | ::: zone-end |
218 | 218 | ::: 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: |
220 | 220 |
|
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" ::: |
222 | 222 |
|
223 | 223 | 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. |
224 | 224 | ::: zone-end |
|
0 commit comments