This repository contains a minimal Azure Functions isolated worker example that exposes Model Content Protocol (MCP) tools for saving and retrieving snippets in blob storage.
SampleSnippetTool/SnippetTool.csproj— Azure Functions project with MCP trigger support.SampleSnippetTool/SnippetTool.cs— Functions that expose thesave_snippetandget_snippetsMCP tools.SampleSnippetTool/Program.cs— Registers theget_snippetstool properties.SampleSnippetTool/host.json— Enables the MCP extension and configures logging.SampleSnippetTool/local.settings.json— Local development settings (uses Azurite by default).
-
Install the .NET 8 SDK and the Azure Functions Core Tools.
-
Start local storage (for example,
azurite --silentif you have Azurite installed). -
From the
SampleSnippetToolfolder, restore packages and run the Functions host:dotnet restore func start
The save_snippet tool writes snippets to snippets/{snippetname}.json in blob storage, and get_snippets retrieves them using the same name-based path.