MCP cover image
See in Github
2025-02-05

Ein MCP -Server für die Untersuchung und Analyse von Deep Git -Repository. Bietet detaillierte Einblicke in die Repository -Geschichte, die Beziehungen und die Entwicklungsmuster der Repository, die sich ausschließlich auf die Git -Repository -Analyse als auf allgemeine Github- oder Git -Operation konzentriert.

1

Github Watches

2

Github Forks

1

Github Stars

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

The server provides four main analysis tools:

  1. Branch Overview (get_branch_overview)

    • Provides high-level overview of branch states and relationships
    • Analyzes last commits, commit counts, and merge bases
    • Generates statistical summaries of branch activities
  2. Time Period Analysis (analyze_time_period)

    • Analyzes detailed development activity in specific time periods
    • Categorizes commits (feature, fix, refactor, docs, other)
    • Provides activity summaries with commit patterns
  3. File Changes Analysis (analyze_file_changes)

    • Tracks changes to specific files across branches
    • Identifies potential conflict areas
    • Provides risk assessment for file modifications
    • Generates recommended review order based on risk levels
  4. Merge Recommendations (get_merge_recommendations)

    • Determines optimal merge strategies
    • Assesses conflict risks
    • Identifies code hotspots
    • Provides step-by-step merge guidance

Input Parameters

Each tool requires specific parameters:

  • repoPath: Path to the git repository
  • branches: Array of branch names to analyze
  • outputPath: Path where analysis results will be written
  • Additional tool-specific parameters:
    • timeRange: Start and end dates for period analysis
    • files: Array of file paths for file change analysis

Output Format

All tools output JSON files containing:

  • Detailed analysis results
  • Summary statistics
  • Risk assessments (where applicable)
  • Recommendations based on analysis

Technical Details

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

Dependencies

  • @modelcontextprotocol/sdk
  • Node.js
  • Git (must be installed and accessible)

Usage

The server runs as an MCP service and can be integrated with any MCP-compatible client. All analysis results are written to specified output files in JSON format.

Contributing and License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE.txt file for details.

Collaboration Welcome

Forks and contributions welcome.

All contributions will be under the Apache License 2.0. This permissive license allows you to:

  • Use the code commercially
  • Modify and distribute the code
  • Create derivative works
  • Include in other projects

Copyright 2025. 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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://jgadvisorycpa.com
  • This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • modelcontextprotocol
  • Modellkontext -Protokollserver

  • OffchainLabs
  • GO -Umsetzung des Ethereum -Beweises des Anteils

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

    Reviews

    1 (1)
    Avatar
    user_SvRnlOzL
    2025-04-16

    I've been using git-forensics-mcp by davidorex and it's been a game-changer for my workflow. The comprehensive analysis it provides for git repositories is top-notch. The setup is straightforward thanks to the clear instructions. Highly recommend visiting the GitHub repository for more details. A must-have for any developer!