Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_safe_preview_commit

Simulate GitLab commits to preview changes without altering the repository. Validates file operations, including create, update, delete, and move, and displays potential impacts for thorough verification before actual commits.

Instructions

Simulate a commit to preview resulting changes without modifying the repository. Validates file operations and shows what would change. Useful for verification before actual commit.

Input Schema

NameRequiredDescriptionDefault
actionsYesArray of file operations (array of objects, required). Each action: {action: 'create'|'update'|'delete'|'move', file_path: string, content?: 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" }, "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