Token导航 LogoToken导航TokenDH.com
Git File Forensics MCP logo
开发工具stdio官方级别未说明来源级核验

Git File Forensics MCP

MCP Server

一个用于深入分析Git文件历史、变更和模式的MCP工具,专注于单个文件的分析而非整个仓库的操作。

工具数

4

提示词数

0

GitHub Stars

1

资源数

0
JavaScript版本控制开发工具

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

davidorex

提供方

davidorex

最后核验

2026/5/17 20:55

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npm install && npm run build\

详细介绍

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.跟踪文件版本

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

{
  "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.分析文件文本

分析特定提交中文件更改的更广泛背景。

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

4.分析语义

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

{
  "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

目录标签

目录标签

JavaScript版本控制开发工具Git分析本地部署文件历史追踪变更分析

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

local-only

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP