github-analysis

This repository provides a tool for analyzing GitHub repositories using the Model Context Protocol and AI-powered insights from Ollama. It offers features like repository information analysis, commit history analysis, and

1
0

GitHub Repository Analysis Tool

A tool for analyzing GitHub repositories using the Model Context Protocol (MCP) and AI insights from Large Language Models (LLMs).

Features

  • Repository Information Analysis: Fetches detailed repository information.
  • Commit History Analysis: Analyzes commit histories to identify patterns.
  • AI-Powered Insights: Uses Ollama to generate intelligent analyses based on repository data.
  • Command-Line Interface: Provides a user-friendly CLI.
  • MCP-Based Architecture: Employs a modular architecture for efficient data fetching and analysis.

Architecture

The application uses a client-server architecture based on MCP:

  • Server: Fetches GitHub data through a standardized MCP interface.
    • get_repo_info: Fetches repository information.
    • get_commit_history: Retrieves commit history.
  • Client: Connects to the server and provides analysis features.
    • Communicates with the server using MCP's stdio transport.
    • Uses Ollama for AI-powered analysis.
    • Provides an interactive CLI.

Usage

The tool can be run in server and client modes. The server fetches repository and commit data, while the client analyzes this data using Ollama, providing insights through a CLI. It also supports an Ollama-only mode, bypassing the MCP server for analysis based on general knowledge.

Repository

FR
frangkli

frangkli/github-analysis

Created

March 15, 2025

Updated

March 26, 2025

Language

Python

Category

Developer Tools