GitLab MCP Server

push_files

Push multiple files to a GitLab project in a single commit

Input Schema

NameRequiredDescriptionDefault
branchYesBranch to push to
commit_messageYesCommit message
filesYesArray of files to push
project_idYesProject ID or URL-encoded path

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Branch to push to", "type": "string" }, "commit_message": { "description": "Commit message", "type": "string" }, "files": { "description": "Array of files to push", "items": { "additionalProperties": false, "properties": { "content": { "description": "Content of the file", "type": "string" }, "file_path": { "description": "Path where to create the file", "type": "string" } }, "required": [ "file_path", "content" ], "type": "object" }, "type": "array" }, "project_id": { "description": "Project ID or URL-encoded path", "type": "string" } }, "required": [ "project_id", "branch", "files", "commit_message" ], "type": "object" }