Git MCP Server

branch_create

Create a new branch

Input Schema

NameRequiredDescriptionDefault
forceNoForce create branch even if it exists
nameYesBranch name
pathNoPath to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)
setUpstreamNoSet upstream for push/pull
trackNoSet up tracking mode

Input Schema (JSON Schema)

{ "properties": { "force": { "default": false, "description": "Force create branch even if it exists", "type": "boolean" }, "name": { "description": "Branch name", "type": "string" }, "path": { "description": "Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)", "type": "string" }, "setUpstream": { "default": false, "description": "Set upstream for push/pull", "type": "boolean" }, "track": { "default": true, "description": "Set up tracking mode", "type": "boolean" } }, "required": [ "name" ], "type": "object" }