gitlab mcp

update_merge_request

Update a merge request

Input Schema

NameRequiredDescriptionDefault
assignee_idsNoThe ID of the users to assign the MR to
descriptionNoThe description of the merge request
draftNoWork in progress merge request
labelsNoLabels for the MR
merge_request_iidYesThe internal ID of the merge request
project_idYesProject ID or URL-encoded path
remove_source_branchNoFlag indicating if the source branch should be removed
squashNoSquash commits into a single commit when merging
state_eventNoNew state (close/reopen) for the MR
target_branchNoThe target branch
titleNoThe title of the merge request

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "assignee_ids": { "description": "The ID of the users to assign the MR to", "items": { "type": "number" }, "type": "array" }, "description": { "description": "The description of the merge request", "type": "string" }, "draft": { "description": "Work in progress merge request", "type": "boolean" }, "labels": { "description": "Labels for the MR", "items": { "type": "string" }, "type": "array" }, "merge_request_iid": { "description": "The internal ID of the merge request", "type": "number" }, "project_id": { "description": "Project ID or URL-encoded path", "type": "string" }, "remove_source_branch": { "description": "Flag indicating if the source branch should be removed", "type": "boolean" }, "squash": { "description": "Squash commits into a single commit when merging", "type": "boolean" }, "state_event": { "description": "New state (close/reopen) for the MR", "enum": [ "close", "reopen" ], "type": "string" }, "target_branch": { "description": "The target branch", "type": "string" }, "title": { "description": "The title of the merge request", "type": "string" } }, "required": [ "project_id", "merge_request_iid" ], "type": "object" }