Azure Functions reference app exposing MCP tools for AI assistants

Azure Functions reference app exposing MCP tools for AI assistants

snippy•byazure-samples

A serverless code snippet management service built on Azure Functions that serves as both traditional APIs and MCP-compatible tools AI assistants can discover and use.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Saves code snippets with vector embeddings for semantic search and retrieves previously saved snippets by their unique name.
  • •Generates language-specific code style guides from saved snippets and creates comprehensive wiki documentation by analyzing code snippets.
  • •Orchestrates a multi-agent workflow to produce deep wiki and style guide output.
  • •Uses Cosmos DB DiskANN vector search with Azure OpenAI embeddings for semantic code retrieval.

BEST FOR

  • •Teams building serverless AI applications that expose Azure Functions as MCP tools for assistants like GitHub Copilot.
  • •Learning to manage and semantically search code snippets through AI assistant tool calls.

ABOUT SNIPPY

Azure Functions reference app exposing MCP tools for AI assistants is cataloged as an MCP server attributed to azure-samples. A serverless code snippet management service built on Azure Functions that serves as both traditional APIs and MCP-compatible tools AI assistants can discover and use. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Azure Functions reference app exposing MCP tools for AI assistants are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does Snippy expose to AI assistants?

It exposes tools such as save_snippet, get_snippet, code_style, deep_wiki, and generate_comprehensive_documentation.

Where does the semantic code search get its embeddings?

Semantic search uses Azure OpenAI embeddings with low-latency vector indexing on Cosmos DB DiskANN.

Upstream README

View this exact version on GitHub

README.md · fc7a17ac23e3 · Fetched 2026-11-13 09:30:35 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Snippy

Open in GitHub Codespaces Open in Dev Containers

Snippy is an Azure Functions-based reference application that demonstrates how to build MCP (Model Context Protocol) tools that integrate with AI assistants like GitHub Copilot. It showcases a modern serverless AI application architecture where Azure Functions serve as both traditional APIs and MCP-compatible tools that AI assistants can discover and use.

Snippy Architecture

The system uses Durable Task Scheduler to orchestrate multi-agent workflows, Cosmos DB with vector indexing for semantic code search, and Azure OpenAI for embeddings and LLM capabilities. The project ships with reproducible azd infrastructure—azd up deploys the entire stack and works with both local Docker-based emulators and Azure cloud services.

Important Security Notice This repository is intended for learning and demonstration purposes. Do not deploy it to production without a thorough security review. At a minimum you should:

  • Swap connection strings for Managed Identity + Azure Key Vault
  • Restrict network access to Azure services via Private Endpoints or service‑tags
  • Enable GitHub secret‑scanning and CI security tools

Features • Lab Tutorial • Getting Started • Guidance


Features

  • MCP Tool Integration – expose Azure Functions as discoverable MCP tools for AI assistants
  • Durable Agents with Microsoft Agent Framework – build stateful AI agents using ChatAgent with automatic conversation history management
  • Multi-Agent Orchestration – coordinate specialized agents (DeepWiki, CodeStyle) using Durable Task Scheduler with fan-out/fan-in patterns
  • Vector Search on Cosmos DB DiskANN – semantic code retrieval using Azure OpenAI embeddings and low-latency vector indexing
  • Monitoring & Observability – track orchestrations in real-time using DTS dashboard (localhost:8082 local, Azure portal for cloud)
  • One-click Deploy – azd up provisions and deploys complete infrastructure including Functions, Cosmos DB, Azure OpenAI, and DTS
  • Codespaces & Dev Containers – fully configured development environment in your browser or local VS Code

Tool Matrix

Tool NamePurpose
save_snippetSave code snippets with vector embeddings for semantic search
get_snippetRetrieve previously saved code snippets by their unique name
code_styleGenerate language-specific code style guides from saved snippets
deep_wikiCreate comprehensive wiki documentation by analyzing code snippets
generate_comprehensive_documentationOrchestrate multi-agent workflow to produce deep wiki and style guide

Lab Tutorial

New to Snippy? Start with our comprehensive hands-on lab tutorial that guides you through building the entire application from scratch:

📚 Snippy Tutorial: Building an AI-Enhanced Code Snippet Manager

The tutorial covers:

  • Step-by-step implementation – Build the complete application with detailed explanations
  • Code review exercises – Understand MCP tools, durable agents, and vector search patterns
  • Local development – Set up and test with Docker-based emulators
  • Azure deployment – Provision and deploy to production with azd
  • Multi-agent orchestration – Monitor complex workflows with DTS dashboard
  • End-to-end testing – Test with REST Client, GitHub Copilot, and MCP tools

Additional Resources:

Whether you're new to Azure Functions, MCP tools, or AI agent development, the lab provides a structured learning path with hands-on experience.

Getting Started

Prerequisites

  • Azure subscription with permissions to create resources
  • azd CLI installed
  • Choose your development environment:
    • GitHub Codespaces (fastest, no local setup required)
    • VS Code Dev Containers (requires Docker Desktop)
    • Local development (requires Python 3.11, Node 18+, Azure Functions Core Tools v4)

Deploy to Azure

Using GitHub Codespaces:

Click the "Open in GitHub Codespaces" badge above, then run:

azd auth login --use-device-code
azd up

Using Dev Containers or Local Environment:

azd init --template Azure-Samples/snippy
azd auth login
azd up

The azd up command will:

  • Prompt for an Azure region (recommend eastus or swedencentral)
  • Provision all resources (Functions, Cosmos DB, Azure OpenAI, DTS)
  • Create an Azure AD app registration for authentication
  • Deploy the application code

When complete, the Function App URL and MCP endpoint will be displayed. See the tutorial for detailed instructions on local development, testing with emulators, and monitoring orchestrations.


Guidance

Region Availability

Azure OpenAI model support varies by region. Verify availability here and choose the same region for all Azure resources. eastus and swedencentral are good default choices.

Security

Snippy uses User-Assigned Managed Identity for secure service-to-service authentication. The infrastructure is configured with:

  • User-Assigned Managed Identity on the Function App with appropriate RBAC roles:
    • Cosmos DB Data Contributor
    • Storage Blob Data Owner and Queue Data Contributor
    • Application Insights Monitoring Metrics Publisher
    • Azure AI Project Developer

For production deployments, we recommend:

  • Restrict inbound traffic with Private Endpoints + VNet integration
  • Enable network security features like service endpoints and firewall rules

Contributing

Standard fork → branch → PR workflow. Use Conventional Commits (feat:, fix:) in commit messages.


License

MIT © Microsoft Corporation

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Azure Functions reference app exposing MCP tools for AI assistants from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/snippy)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools