GitHub MCP Server Plus

create_branch

Create a new branch in a GitHub repository

Input Schema

NameRequiredDescriptionDefault
branchYesName for the new branch
from_branchNoOptional: source branch to create from (defaults to the repository's default branch)
ownerYesRepository owner (username or organization)
repoYesRepository name

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Name for the new branch", "type": "string" }, "from_branch": { "description": "Optional: source branch to create from (defaults to the repository's default branch)", "type": "string" }, "owner": { "description": "Repository owner (username or organization)", "type": "string" }, "repo": { "description": "Repository name", "type": "string" } }, "required": [ "owner", "repo", "branch" ], "type": "object" }