Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_add_merge_request_comment

Add a comment to a GitLab merge request, supporting markdown, code blocks, mentions, and references. Automatically detects the project or specify it manually with the merge request ID.

Instructions

Post a new comment on a merge request discussion thread. Supports markdown, code blocks, mentions, and references. Returns the created note with author and timestamp.

Input Schema

NameRequiredDescriptionDefault
bodyYesComment text content (string, required). Supports markdown, mentions (@user), and references (#123, !456)
mr_iidYesMerge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID
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": { "body": { "description": "Comment text content (string, required). Supports markdown, mentions (@user), and references (#123, !456)", "type": "string" }, "mr_iid": { "description": "Merge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID", "type": "integer" }, "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": [ "mr_iid", "body" ], "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