gitlab mcp

create_or_update_file

Create or update a single file in a GitLab project

Input Schema

NameRequiredDescriptionDefault
branchYesBranch to create/update the file in
commit_messageYesCommit message
contentYesContent of the file
file_pathYesPath where to create/update the file
previous_pathNoPath of the file to move/rename
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 create/update the file in", "type": "string" }, "commit_message": { "description": "Commit message", "type": "string" }, "content": { "description": "Content of the file", "type": "string" }, "file_path": { "description": "Path where to create/update the file", "type": "string" }, "previous_path": { "description": "Path of the file to move/rename", "type": "string" }, "project_id": { "description": "Project ID or URL-encoded path", "type": "string" } }, "required": [ "project_id", "file_path", "content", "commit_message", "branch" ], "type": "object" }