Skip to main content
Glama

Code MCP Server

by block

compare_commits

Compare two commits to analyze differences in code, filter by file patterns, and generate output in unified, stat, or name-only formats.

Instructions

Compare two commits with detailed analysis

Input Schema

NameRequiredDescriptionDefault
commit1YesFirst commit hash or reference
commit2YesSecond commit hash or reference
cwdNoWorking directory
filePatternNoFile pattern to filter
formatNoOutput format

Input Schema (JSON Schema)

{ "properties": { "commit1": { "description": "First commit hash or reference", "type": "string" }, "commit2": { "description": "Second commit hash or reference", "type": "string" }, "cwd": { "description": "Working directory", "type": "string" }, "filePattern": { "description": "File pattern to filter", "type": "string" }, "format": { "description": "Output format", "enum": [ "unified", "stat", "name-only" ], "type": "string" } }, "required": [ "commit1", "commit2" ], "type": "object" }

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/block/vscode-mcp'

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