Git 仓库分析转文本工具

Git 仓库分析转文本工具

一个将 Git 仓库转换为结构化文本文件的 MCP 服务器,适用于大语言模型上下文。

快速入门

前置条件

  • 安装 Python 3.8+、Node.js 14+ 和 Git。

安装步骤

  1. 安装依赖: pip install -r requirements.txt npm install
  2. 启动服务: node smithery-wrapper.js
  3. 访问地址:http://localhost:8000

使用示例

转换 GitHub 仓库

使用 curl 调用接口: POST http://localhost:8000/analyze 参数: { "source": "https://github.com/username/repository", "return_file": true }

更多详情请参考 API 文档