The Git File Forensics MCP server provides deep file-level analysis for git repositories, allowing you to:
Track complete version history of files, including renames and moves
Analyze specific changes between any two versions of a file
Investigate broader context of file changes within specific commits
Study semantic changes and patterns throughout a file's history
Generate detailed JSON reports with analysis results, statistics, and risk assessments
Provides tools for detailed file-level forensics in Git repositories, enabling tracking of file version history, analyzing changes between versions, examining commit contexts, and evaluating semantic patterns in file history.
Serves as the runtime environment for the MCP server, required for execution of the Git file forensics tools.
Git File Forensics MCP
An MCP tool for deep git file-level forensics that helps get detailed insights into file histories, changes, and patterns, focusing on individual file analysis rather than repository-wide operations.
Installation
Clone and build the server:
Add to your MCP settings (
~/Library/Application Support/Code/User/globalStorage/david-dafu-dev.dafu/settings/cline_mcp_settings.json):
Related MCP server: MCP Forensic Toolkit
Available Tools
1. track_file_versions
Tracks complete version history of a specific file, including renames and moves.
2. analyze_file_diff
Analyzes specific changes between any two versions of a file.
3. analyze_file_context
Analyzes broader context of file changes in a specific commit.
4. analyze_file_semantics
Analyzes semantic changes and patterns in file history.
Output Format
All tools output JSON files containing:
Detailed analysis results
Summary statistics
Change patterns and relationships
Risk assessments (where applicable)
Requirements
Node.js
Git (must be installed and accessible)
MCP SDK
License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE.txt file for details.
Copyright davidorex.ai. Licensed under the Apache License, Version 2.0; you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0