PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversversion-controlGit文件分析工具
返回「version-control」

Git文件分析工具

modelscope·@davidorex/git-file-forensics

version-control0下载LocalModelScope

简介

提供了深入的Git文件级法医工具,用于分析Git仓库中详细的文件历史、变更和模式,重点是个别文件分析而非整个仓库的操作。

MCP Server 详情

来自 ModelScope 索引

Git 文件取证 MCP

一个用于深入 Git 文件级别取证的MCP工具,帮助获取文件历史、变更和模式的详细见解,专注于单个文件分析而不是整个仓库的操作。

安装

  1. 克隆并构建服务器:
git clone [repository-url]
cd git-file-forensics
npm install
npm run build
  1. 添加到您的MCP设置中(~/Library/Application Support/Code/User/globalStorage/david-dafu-dev.dafu/settings/cline_mcp_settings.json):
{
  "mcpServers": {
    "git-file-forensics": {
      "command": "/opt/homebrew/bin/node",
      "args": ["/path/to/git-file-forensics/build/index.js"],
      "alwaysAllow": []
    }
  }
}

可用工具

1. track_file_versions

跟踪特定文件的完整版本历史记录,包括重命名和移动。

{
  "method": "tools/call",
  "params": {
    "name": "track_file_versions",
    "arguments": {
      "repoPath": "/path/to/repo",
      "file": "path/to/file",
      "outputPath": "output.json"
    }
  }
}

2. analyze_file_diff

分析文件任意两个版本之间的具体变更。

{
  "method": "tools/call",
  "params": {
    "name": "analyze_file_diff",
    "arguments": {
      "repoPath": "/path/to/repo",
      "file": "path/to/file",
      "versions": {
        "from": "commit-hash-1",
        "to": "commit-hash-2"
      },
      "outputPath": "output.json"
    }
  }
}

3. analyze_file_context

分析特定提交中文件变更的更广泛上下文。

{
  "method": "tools/call",
  "params": {
    "name": "analyze_file_context",
    "arguments": {
      "repoPath": "/path/to/repo",
      "file": "path/to/file",
      "commit": "commit-hash",
      "outputPath": "output.json"
    }
  }
}

4. analyze_file_semantics

分析文件历史中的语义变更和模式。

{
  "method": "tools/call",
  "params": {
    "name": "analyze_file_semantics",
    "arguments": {
      "repoPath": "/path/to/repo",
      "file": "path/to/file",
      "outputPath": "output.json"
    }
  }
}

输出格式

所有工具输出包含以下内容的JSON文件:

  • 详细的分析结果
  • 摘要统计
  • 变更模式和关系
  • 风险评估(如适用)

要求

  • Node.js
  • Git(必须安装且可访问)
  • MCP SDK

许可证

本项目根据Apache许可证2.0版许可 - 有关详细信息,请参阅LICENSE.txt文件。

版权所有 davidorex.ai。根据Apache许可证2.0版许可;除非遵守该许可证,否则不得使用此项目。您可以在http://www.apache.org/licenses/LICENSE-2.0获得许可证副本。

相关 MCP Servers(来自「version-control」)

代码上下文MCP

一个MCP服务器,它在本地git仓库上提供语义搜索功能,使用户能够克隆仓库、处理分支并通过矢量化代码块搜索代码。

@fkesheh/code-context-mcp

代码索引MCP

一种模型上下文协议(MCP)服务器,可以帮助大型语言模型以最少的设置来索引、搜索和分析代码库。

@johnhuang316/code-index-mcp

塞琳娜编码代理

一个功能齐全的编码代理,它使用符号操作(由语言服务器启用),即使在大型代码库中也能很好地工作。本质上是 Cursor 和 Windsurf Agents、Cline、Roo Code 等的免费替代品。

@oraios/serena

虚幻分析器

为虚幻引擎代码库提供深度源代码分析,使人工智能助手能够理解C++类结构、搜索代码和分析子系统。

@ayeletstudioindia/unreal-analyzer-mcp

AI简历助手

一个通过分析你的编程项目、自动提取技能并生成专业描述来更新你的JSON简历,从而增强AI助手功能的服务器。

@jsonresume/mcp

Git MCP协议服务器

一种模型上下文协议服务器,使大型语言模型能够通过强大的API与Git仓库进行交互,支持仓库初始化、克隆、文件暂存、提交和分支管理等操作。

@cyanheads/git-mcp-server

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/davidorex-git-file-forensics/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

git clone [repository-url] cd git-file-forensics npm install npm run build

基本信息

分类
version-control / developer-tools
运行方式
No
许可证
Apache License 2.0
详情文件
davidorex-git-file-forensics.md