Skip to main content
Glama

git MCP server

Official

git_branch

List Git branches by specifying the repository path and branch type. Filter branches based on containing or excluding specific commit SHAs for precise repository management.

Instructions

List Git branches

Input Schema

NameRequiredDescriptionDefault
branch_typeYesWhether to list local branches ('local'), remote branches ('remote') or all branches('all').
containsNoThe commit sha that branch should contain. Do not pass anything to this param if no commit sha is specified
not_containsNoThe commit sha that branch should NOT contain. Do not pass anything to this param if no commit sha is specified
repo_pathYesThe path to the Git repository.

Input Schema (JSON Schema)

{ "properties": { "branch_type": { "description": "Whether to list local branches ('local'), remote branches ('remote') or all branches('all').", "title": "Branch Type", "type": "string" }, "contains": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The commit sha that branch should contain. Do not pass anything to this param if no commit sha is specified", "title": "Contains" }, "not_contains": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The commit sha that branch should NOT contain. Do not pass anything to this param if no commit sha is specified", "title": "Not Contains" }, "repo_path": { "description": "The path to the Git repository.", "title": "Repo Path", "type": "string" } }, "required": [ "repo_path", "branch_type" ], "title": "GitBranch", "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/modelcontextprotocol/git'

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