Skip to main content
Glama

Git MCP

by Andre-Buzeli

git-branches

Manage Git branch lifecycle with create, list, delete, merge, and compare operations. Includes safety warnings for destructive actions like branch deletion to protect commit history.

Instructions

Git branch management tool for branch lifecycle operations. Supports create, list, get, delete, merge, and compare operations. Includes safety warnings for destructive operations like branch deletion.

Input Schema

NameRequiredDescriptionDefault
actionYesThe branch operation to perform. WARNING: delete operation permanently removes branches and their commit history.
baseBranchNoBase branch for comparison (required for compare action)
branchNameNoName of the branch (required for create, get, delete, merge)
checkoutNoCheckout branch after creation (for create action)
compareBranchNoBranch to compare against base (required for compare action)
forceNoForce operation (for delete, merge actions)
ownerNoRepository owner (for remote operations)
projectPathYesAbsolute path to the project directory
providerNoProvider for remote operations (if supported)
remoteNoRemote name (default: origin)
repoNoRepository name (for remote operations)
sourceBranchNoSource branch to create from (for create action)
targetBranchNoTarget branch to merge into (for merge action)

Input Schema (JSON Schema)

{ "properties": { "action": { "description": "The branch operation to perform. WARNING: delete operation permanently removes branches and their commit history.", "enum": [ "create", "list", "get", "delete", "merge", "compare" ], "type": "string" }, "baseBranch": { "description": "Base branch for comparison (required for compare action)", "type": "string" }, "branchName": { "description": "Name of the branch (required for create, get, delete, merge)", "type": "string" }, "checkout": { "description": "Checkout branch after creation (for create action)", "type": "boolean" }, "compareBranch": { "description": "Branch to compare against base (required for compare action)", "type": "string" }, "force": { "description": "Force operation (for delete, merge actions)", "type": "boolean" }, "owner": { "description": "Repository owner (for remote operations)", "type": "string" }, "projectPath": { "description": "Absolute path to the project directory", "type": "string" }, "provider": { "description": "Provider for remote operations (if supported)", "enum": [ "github", "gitea", "both" ], "type": "string" }, "remote": { "description": "Remote name (default: origin)", "type": "string" }, "repo": { "description": "Repository name (for remote operations)", "type": "string" }, "sourceBranch": { "description": "Source branch to create from (for create action)", "type": "string" }, "targetBranch": { "description": "Target branch to merge into (for merge action)", "type": "string" } }, "required": [ "action", "projectPath" ], "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/Andre-Buzeli/git-mcp'

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