Skip to main content
Glama
archish9

GitHub MCP Server

by archish9

compare_commits

Compare two Git commits to analyze code changes, identify when bugs were introduced, and generate changelogs by examining file modifications and diff content.

Instructions

Compare two commits and return the diff.

This tool generates a detailed comparison between two points in the history (from_commit -> to_commit). It's useful for:

  • Reviewing changes between versions.

  • Debugging when a bug was introduced.

  • Generating a changelog.

The output includes a summary of file changes (added, modified, deleted, renamed) and the actual diff content for each file.

Args: repo_path: The absolute path to the repository. from_commit: The source (older) commit SHA. to_commit: The target (newer) commit SHA.

Returns: A JSON-formatted string containing the list of changed files, additions/deletions counts, and diff patches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
from_commitYes
to_commitYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/archish9/github-mcp-small'

If you have feedback or need assistance with the MCP directory API, please join our Discord server