git-forensics-mcp

git-forensics-mcp

1

Git Forensics MCP is a Model Context Protocol server designed for in-depth analysis of git repositories. It provides insights into repository history, branch analysis, and development patterns to aid in repository management and conflict resolution. Key features include branch overviews, time period analysis, file changes tracking, and merge recommendations.

Git Forensics MCP

A specialized Model Context Protocol (MCP) server for deep git repository investigation and analysis. This forensics tool provides detailed insights into repository history, branch relationships, and development patterns, focusing solely on git repository analysis rather than general GitHub or git operations.

Features

  • Branch Overview: Provides overview of branch states and relationships, analyzing last commits, commit counts, and merge bases.
  • Time Period Analysis: Analyzes detailed development activity in specific time periods, categorizing commits by type and providing activity summaries.
  • File Changes Analysis: Tracks changes to specific files across branches, identifying potential conflict areas, providing risk assessments and a recommended review order.
  • Merge Recommendations: Determines optimal merge strategies, assesses conflict risks, identifies code hotspots, and provides step-by-step merge guidance.

Technical Details

  • Built with TypeScript
  • Uses MCP SDK for implementation
  • Executes git commands through child processes
  • Provides error handling and validation

Dependencies

  • @modelcontextprotocol/sdk
  • Node.js
  • Git