Skip to main content
Glama

Git File Forensics MCP

by davidorex

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. ファイルの差分を分析する

ファイルの任意の 2 つのバージョン間の特定の変更を分析します。

{ "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 License バージョン 2.0 に基づいてライセンスされています。詳細については、 LICENSE.txtファイルを参照してください。

Copyright davidorex.ai. Apache License, Version 2.0に基づきライセンスされています。このプロジェクトは、本ライセンスに準拠しない限り利用できません。本ライセンスのコピーは、 http://www.apache.org/licenses/LICENSE-2.0から入手できます。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

リポジトリ全体の操作ではなく、個々のファイルの分析に重点を置き、Git リポジトリ内の詳細なファイル履歴、変更、パターンを分析するための詳細な Git ファイルレベルのフォレンジック ツールを提供します。

  1. インストール
    1. 利用可能なツール
      1. ファイルバージョンの追跡
      2. ファイルの差分を分析する
      3. ファイルコンテキストの分析
      4. ファイルセマンティクスの分析
    2. 出力形式
      1. 要件
        1. ライセンス

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            Provides tools for mapping and analyzing GitHub repositories. It allows users to set a GitHub Personal Access Token and retrieve detailed information about a specified repository, including its structure and summary statistics.
            Last updated -
            2
            17
            TypeScript
          • -
            security
            A
            license
            -
            quality
            A specialized MCP server for in-depth analysis of git repositories, offering tools for branch overview, time period analysis, file changes, and merge recommendations.
            Last updated -
            4
            1
            JavaScript
            Apache 2.0
          • -
            security
            F
            license
            -
            quality
            Extracts diffs from GitHub Pull Requests, allowing users to retrieve and analyze changes between branches in a repository.
            Last updated -
            1
            JavaScript
          • A
            security
            A
            license
            A
            quality
            Analyzes git changes in repositories and generates conventional commit messages using OpenAI's GPT models, supporting both staged and unstaged changes with detailed summaries.
            Last updated -
            1
            6
            11
            TypeScript
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidorex/git-file-forensics'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server