MCP Git Ingest

MCP Git Ingest

一个模型上下文协议(MCP)服务器,帮助读取GitHub仓库结构和重要文件。

smithery 徽章

一个 Model Context Protocol (MCP) 服务器,用于读取 GitHub 仓库结构和重要文件。

配置

{
    "mcpServers": {
        "mcp-git-ingest": {
            "command": "uvx",
            "args": ["--from", "git+https://github.com/adhikasp/mcp-git-ingest", "mcp-git-ingest"],
        }
    }
}

使用方法

使用 mcp-client-cli 可以执行以下操作:

  1. 获取仓库目录结构:

    github_directory_structure
    参数:
      repo_url: https://github.com/用户名/仓库名
    
  2. 读取重要文件:

    github_read_important_files
    参数:
      repo_url: https://github.com/用户名/仓库名
      file_paths: ['README.md', 'src/main.py', 'package.json']
    

示例:

$ llm 读取 https://github.com/adhikasp/mcp-git-ingest 并确定代码的技术实现方式

该工具会自动克隆仓库,执行请求的操作,并在完成后清理临时文件。