GitLab MCP Server

create_branch

Generate a new branch in a GitLab project by specifying the project ID, branch name, and source reference. Simplify branch creation directly via the GitLab MCP Server API for efficient project management.

Instructions

Create a new branch in a GitLab project

Input Schema

NameRequiredDescriptionDefault
branchYesName for the new branch
project_idYesProject ID or URL-encoded path
refNoSource branch/commit for new branch

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Name for the new branch", "type": "string" }, "project_id": { "description": "Project ID or URL-encoded path", "type": "string" }, "ref": { "description": "Source branch/commit for new branch", "type": "string" } }, "required": [ "project_id", "branch" ], "type": "object" }

You must be authenticated.

Other Tools from GitLab MCP Server

Related Tools

ID: mim928vohs