gitlab-review-mcp
v0.2.0A Model Context Protocol (MCP) server implementation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_projects Search Projects
Search for GitLab projects by keyword. The search performs substring matching across project name, path, namespace, and description. Note: Does not support regex or exact matching - it's a simple keyword search.
| Parameter | Type | Description |
|---|---|---|
search * | string | Search keyword (substring match in name/path/namespace/description) |
membership | boolean | Only return projects the user is a member of (default: True) |
order_by | string | Sort by field: 'id', 'name', 'created_at', 'star_count', 'last_activity_at' (default) |
owned | boolean | Only return projects owned by the authenticated user |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Number of results per page (default: 20, max: 100) |
sort | string | Sort order: 'asc' or 'desc' (default) |
list_merge_requests List Merge Requests
List merge requests for a specific project.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | GitLab project ID |
assignee_id | Filter by assignee user ID | |
author_id | Filter by author user ID | |
labels | Comma-separated label names (e.g., "bug,urgent") | |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Number of results per page (default: 20, max: 100) |
state | Filter by state ('opened', 'closed', 'merged', 'all') |
get_merge_request Get Merge Request
Fetch merge request details.
| Parameter | Type | Description |
|---|---|---|
mr_iid * | integer | Merge request IID (internal ID shown in GitLab UI as !123) |
project_id * | integer | GitLab project ID |
get_merge_request_diffs Get Merge Request Diffs
Get merge request diffs showing code changes.
| Parameter | Type | Description |
|---|---|---|
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Number of results per page (default: 20, max: 100) |
get_merge_request_comments Get Merge Request Comments
Get all comments/discussions from a merge request, including suggestions.
| Parameter | Type | Description |
|---|---|---|
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Number of results per page (default: 20, max: 100) |
get_merge_request_commits Get Merge Request Commits
Get commits in a merge request.
| Parameter | Type | Description |
|---|---|---|
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Number of results per page (default: 20, max: 100) |
add_merge_request_comment Add Merge Request Comment
Add a general comment to a merge request.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment text to add |
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
update_merge_request_comment Update Merge Request Comment
Update an existing merge request comment.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Updated comment text |
mr_iid * | integer | Merge request IID |
note_id * | integer | Note ID to update |
project_id * | integer | GitLab project ID |
reply_to_merge_request_comment Reply To Merge Request Comment
Reply to an existing merge request discussion/comment.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Reply comment text |
discussion_id * | string | Discussion ID to reply to |
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
add_merge_request_line_comment Add Merge Request Line Comment
Add a line-specific comment to a merge request diff.
| Parameter | Type | Description |
|---|---|---|
base_sha * | string | Base commit SHA (from diff) |
comment * | string | Comment text to add |
file_path * | string | Path to the file in the repository |
head_sha * | string | Head commit SHA (from diff) |
line_number * | integer | Line number in the new version of the file |
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
start_sha * | string | Start commit SHA (from diff) |
old_line | Line number in the old version (optional, for modified lines) |
get_issue Get Issue
Fetch issue details.
| Parameter | Type | Description |
|---|---|---|
issue_iid * | integer | Issue IID (internal ID shown in GitLab UI as #123) |
project_id * | integer | GitLab project ID |
update_merge_request Update Merge Request
Update merge request title and/or description.
| Parameter | Type | Description |
|---|---|---|
mr_iid * | integer | Merge request IID |
project_id * | integer | GitLab project ID |
description | New description (optional) | |
title | New title (optional) |
apply_suggestion Apply Suggestion
Apply a single suggestion to the merge request.
| Parameter | Type | Description |
|---|---|---|
suggestion_id * | integer | Suggestion ID to apply |
apply_suggestions Apply Suggestions
Apply multiple suggestions in batch to the merge request.
| Parameter | Type | Description |
|---|---|---|
suggestion_ids * | array | List of suggestion IDs to apply |