snippy

by Azure-SamplesVerified

🧩 Build AI-powered MCP Tools with Azure Functions, Durable Agents & Cosmos vector search. Features orchestrated multi-agent workflows using OpenAI.

114
Stars
1,221
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/Azure-Samples/snippy

Getting Started

Guides for using skills like snippy.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

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

FeaturesLab TutorialGetting StartedGuidance


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 Deployazd 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

Frequently Asked Questions

What is snippy?

snippy is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Azure-Samples. 🧩 Build AI-powered MCP Tools with Azure Functions, Durable Agents & Cosmos vector search. Features orchestrated multi-agent workflows using OpenAI. It has 114 GitHub stars.

Is snippy safe to use?

Yes. snippy passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install snippy?

Clone the repository with "git clone https://github.com/Azure-Samples/snippy" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is snippy written in?

snippy is primarily written in Python. It is open-source under Azure-Samples on GitHub, so you can review or fork the full source.

Are there alternatives to snippy?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh snippy against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details