MCP Catalogs
首页snippy screenshot

snippy

by Azure-Samples·110·综合分 46

基于Azure Functions的MCP服务器,具有向量和多代理工作流程,用于AI驱动的代码片段管理。

developer-toolsai-llmops-infra
1,237
Forks
7
活跃 Issue
5 个月前
最近提交
2 天前
收录于

概述

Snippy是一个基于Azure Functions构建的综合性MCP服务器,展示了如何创建用于代码片段管理的AI工具。它集成了Azure OpenAI进行嵌入、Cosmos DB向量索引进行语义搜索,以及Durable Functions进行多代理编排。该服务器暴露了多个MCP工具,包括save_snippet、get_snippet、code_style和deep_wiki,使GitHub Copilot等AI助手能够与复杂的代码管理系统进行交互。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI助手使用语义搜索管理和检索代码片段
:从现有代码生成文档和样式指南
:构建多代理AI工作流程进行代码分析和文档生成
:Snipy的主要用途是什么?
:可以在本地部署Snippy吗?

什么时候选它

如果您在Azure上构建MCP工具,并需要一个展示多代理编排和向量搜索的参考实现,特别是在处理代码相关应用时,请选择Snippy。

什么时候不要选它

如果您需要供应商中立的解决方案,不使用Azure服务,或需要对提供的多代理工作流模式进行广泛定制,请避免使用Snippy。

此 server 暴露的工具

从 README 抽取出 5 个工具
  • save_snippet

    Save code snippets with vector embeddings for semantic search

  • get_snippet

    Retrieve previously saved code snippets by their unique name

  • code_style

    Generate language-specific code style guides from saved snippets

  • deep_wiki

    Create comprehensive wiki documentation by analyzing code snippets

  • generate_comprehensive_documentation

    Orchestrate multi-agent workflow to produce deep wiki and style guide

可对比工具

code-interpreter-mcpbrave-search-mcpfilesystem-mcppython-executor-mcp

安装

安装

**先决条件:**

  • Azure订阅
  • 已安装azd CLI
  • 选择开发环境:GitHub Codespaces、VS Code Dev Containers或本地开发

**部署:**

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

**对于Claude Desktop:** 添加到Claude Desktop配置:

{
  "mcpServers": {
    "snippy": {
      "command": "python",
      "args": ["-m", "snippy.mcp"]
    }
  }
}

FAQ

Snipy的主要用途是什么?
Snippy是一个MCP服务器,将Azure Functions作为工具暴露给AI助手,用于管理具有语义搜索功能的代码片段和生成文档。
可以在本地部署Snippy吗?
Snippy是为Azure部署设计的,但可以在部署到Azure之前使用Docker模拟器在本地进行开发。

snippy 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。