Skip to main content
Glama

GitMCP

git_branch_switch

Switch to a specified branch in a GitHub repository using the repository path and branch name. Accessible via GitMCP, enabling AI assistants to manage project branches without setup.

Instructions

Switch to a branch

Input Schema

NameRequiredDescriptionDefault
nameYesBranch name
pathYesRepository path

Input Schema (JSON Schema)

{ "properties": { "name": { "description": "Branch name", "type": "string" }, "path": { "description": "Repository path", "type": "string" } }, "required": [ "path", "name" ], "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/idosal/git-mcp'

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