Snippy
CreatedAzure-Samples
Manages code snippets with AI-powered features using Azure Functions, OpenAI, and Cosmos DB, and exposes them as Model Context Protocol (MCP) tools for clients like GitHub Copilot.
About
Snippy is a serverless code snippet management service built on Azure Functions, demonstrating the creation of AI-powered tools for GitHub Copilot using the Model Context Protocol (MCP). It integrates Durable Functions, Azure OpenAI for vector embeddings, Azure Cosmos DB for storage and querying, and Azure AI Agents for advanced code analysis, enabling developers to save, retrieve, research, and style code snippets directly within their development environment.
Key Features
- Generates detailed code analysis and language-specific style guides using Azure AI Agents.
- Retrieves snippets and performs semantic searches using Cosmos DB's vector database.
- Saves code snippets to Blob Storage and generates embeddings via Azure OpenAI.
- Exposes all snippet operations as MCP tools for integration with GitHub Copilot and other MCP-aware clients.
- Uses Durable Functions for reliable, parallel execution of activities.
- 3 GitHub stars
Use Cases
- Generating code style guides and performing deep research on code snippets using AI Agents.
- Enabling code snippet management and retrieval directly within GitHub Copilot.
- Building AI-powered tools for Large Language Models using Azure Functions and the Model Context Protocol (MCP).