Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_create_commit

Create a new GitLab commit with multiple file operations in a single atomic transaction. Supports create, update, delete, and move actions on specified branches with custom commit messages and author details.

Instructions

Create a new commit with multiple file operations in a single atomic transaction. Supports create/update/delete/move actions. Specify branch, commit message, and author details.

Input Schema

NameRequiredDescriptionDefault
actionsYesArray of file operations (array of objects, required). Each action: {action: 'create'|'update'|'delete'|'move', file_path: string, content?: string}
author_emailNoCommit author email (string, optional). Overrides authenticated user's email. Must be valid email format
author_nameNoCommit author name (string, optional). Overrides authenticated user's name. Any valid string
branchYesGit branch name (string, required). Target branch for commits. Must exist. Example: 'feature/new-feature'
commit_messageYesCommit message (string, required). Follows conventional commits format. First line = summary (50 chars), blank line, then body
project_idNoProject ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided

Input Schema (JSON Schema)

{ "properties": { "actions": { "description": "Array of file operations (array of objects, required). Each action: {action: 'create'|'update'|'delete'|'move', file_path: string, content?: string}", "items": { "properties": { "action": { "enum": [ "create", "update", "delete", "move" ], "type": "string" }, "content": { "type": "string" }, "encoding": { "default": "text", "enum": [ "text", "base64" ], "type": "string" }, "file_path": { "type": "string" }, "previous_path": { "type": "string" } }, "required": [ "action", "file_path" ], "type": "object" }, "type": "array" }, "author_email": { "description": "Commit author email (string, optional). Overrides authenticated user's email. Must be valid email format", "type": "string" }, "author_name": { "description": "Commit author name (string, optional). Overrides authenticated user's name. Any valid string", "type": "string" }, "branch": { "description": "Git branch name (string, required). Target branch for commits. Must exist. Example: 'feature/new-feature'", "type": "string" }, "commit_message": { "description": "Commit message (string, required). Follows conventional commits format. First line = summary (50 chars), blank line, then body", "type": "string" }, "project_id": { "description": "Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided", "type": "string" } }, "required": [ "branch", "commit_message", "actions" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Vijay-Duke/mcp-gitlab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server