Skip to main content
Glama

mcp-git

by ver0-project
MIT License
20

diff

Compare changes between commits, branches, or files in a Git repository. Output differences by file name, status, or detailed changes, and filter by specific paths or staged modifications.

Instructions

Show differences between commits, branches, files.

Input Schema

NameRequiredDescriptionDefault
fromNoSource commit, branch, or tag (defaults to working directory)
nameOnlyNoShow only names of changed files (--name-only)
nameStatusNoShow names and status of changed files (--name-status)
pathspecNoLimit diff to specific paths
repoPathYesAbsolute path to the git repository
stagedNoShow staged changes (--cached)
statNoShow diffstat (--stat)
toNoTarget commit, branch, or tag (defaults to HEAD)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "from": { "description": "Source commit, branch, or tag (defaults to working directory)", "type": "string" }, "nameOnly": { "description": "Show only names of changed files (--name-only)", "type": "boolean" }, "nameStatus": { "description": "Show names and status of changed files (--name-status)", "type": "boolean" }, "pathspec": { "description": "Limit diff to specific paths", "items": { "type": "string" }, "type": "array" }, "repoPath": { "description": "Absolute path to the git repository", "type": "string" }, "staged": { "description": "Show staged changes (--cached)", "type": "boolean" }, "stat": { "description": "Show diffstat (--stat)", "type": "boolean" }, "to": { "description": "Target commit, branch, or tag (defaults to HEAD)", "type": "string" } }, "required": [ "repoPath" ], "type": "object" }

You must to connect to the server.

Other Tools from mcp-git

Related Tools

    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/ver0-project/mcps'

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