Code Review Buddy

•

Enables AI agents to inspect local Git repositories and access code-related information.

This tool acts as an internal Model Context Protocol (MCP) server, empowering AI agents like Claude Desktop or Cursor to understand and interact with local Git repositories. Built with Python and the FastMCP framework, it provides a suite of functionalities allowing AI to list files, read their contents, analyze Git diffs, fetch commit history, and even scan for code quality markers like TODOs or large functions, facilitating advanced code review and analysis directly on your local codebase.

Key Features

01List files and directories within a repository, with optional filtering.
02Securely read file contents with built-in line safety guards.
03Generate Git diffs between branches, truncated for concise AI analysis.
04Retrieve recent commit messages to provide historical context.
05Scan directories for comment markers (TODO, FIXME, HACK, XXX) and identify large functions.
060 GitHub stars

Use Cases

01Providing contextual information about a codebase to AI models for deep analysis.
02Empowering AI agents (e.g., Claude Desktop, Cursor) with local repository access for code review.
03Automating aspects of code quality checks by exposing scanning tools to AI agents.