gitlab-review-mcp

v0.2.0
gitlab-review-mcp Checked 2 days ago Published 1 year ago

A 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.

ParameterTypeDescription
search *stringSearch keyword (substring match in name/path/namespace/description)
membershipbooleanOnly return projects the user is a member of (default: True)
order_bystringSort by field: 'id', 'name', 'created_at', 'star_count', 'last_activity_at' (default)
ownedbooleanOnly return projects owned by the authenticated user
pageintegerPage number for pagination (default: 1)
per_pageintegerNumber of results per page (default: 20, max: 100)
sortstringSort order: 'asc' or 'desc' (default)

list_merge_requests List Merge Requests

List merge requests for a specific project.

ParameterTypeDescription
project_id *integerGitLab project ID
assignee_idFilter by assignee user ID
author_idFilter by author user ID
labelsComma-separated label names (e.g., "bug,urgent")
pageintegerPage number for pagination (default: 1)
per_pageintegerNumber of results per page (default: 20, max: 100)
stateFilter by state ('opened', 'closed', 'merged', 'all')

get_merge_request Get Merge Request

Fetch merge request details.

ParameterTypeDescription
mr_iid *integerMerge request IID (internal ID shown in GitLab UI as !123)
project_id *integerGitLab project ID

get_merge_request_diffs Get Merge Request Diffs

Get merge request diffs showing code changes.

ParameterTypeDescription
mr_iid *integerMerge request IID
project_id *integerGitLab project ID
pageintegerPage number for pagination (default: 1)
per_pageintegerNumber 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.

ParameterTypeDescription
mr_iid *integerMerge request IID
project_id *integerGitLab project ID
pageintegerPage number for pagination (default: 1)
per_pageintegerNumber of results per page (default: 20, max: 100)

get_merge_request_commits Get Merge Request Commits

Get commits in a merge request.

ParameterTypeDescription
mr_iid *integerMerge request IID
project_id *integerGitLab project ID
pageintegerPage number for pagination (default: 1)
per_pageintegerNumber of results per page (default: 20, max: 100)

add_merge_request_comment Add Merge Request Comment

Add a general comment to a merge request.

ParameterTypeDescription
comment *stringComment text to add
mr_iid *integerMerge request IID
project_id *integerGitLab project ID

update_merge_request_comment Update Merge Request Comment

Update an existing merge request comment.

ParameterTypeDescription
comment *stringUpdated comment text
mr_iid *integerMerge request IID
note_id *integerNote ID to update
project_id *integerGitLab project ID

reply_to_merge_request_comment Reply To Merge Request Comment

Reply to an existing merge request discussion/comment.

ParameterTypeDescription
comment *stringReply comment text
discussion_id *stringDiscussion ID to reply to
mr_iid *integerMerge request IID
project_id *integerGitLab project ID

add_merge_request_line_comment Add Merge Request Line Comment

Add a line-specific comment to a merge request diff.

ParameterTypeDescription
base_sha *stringBase commit SHA (from diff)
comment *stringComment text to add
file_path *stringPath to the file in the repository
head_sha *stringHead commit SHA (from diff)
line_number *integerLine number in the new version of the file
mr_iid *integerMerge request IID
project_id *integerGitLab project ID
start_sha *stringStart commit SHA (from diff)
old_lineLine number in the old version (optional, for modified lines)

get_issue Get Issue

Fetch issue details.

ParameterTypeDescription
issue_iid *integerIssue IID (internal ID shown in GitLab UI as #123)
project_id *integerGitLab project ID

update_merge_request Update Merge Request

Update merge request title and/or description.

ParameterTypeDescription
mr_iid *integerMerge request IID
project_id *integerGitLab project ID
descriptionNew description (optional)
titleNew title (optional)

apply_suggestion Apply Suggestion

Apply a single suggestion to the merge request.

ParameterTypeDescription
suggestion_id *integerSuggestion ID to apply

apply_suggestions Apply Suggestions

Apply multiple suggestions in batch to the merge request.

ParameterTypeDescription
suggestion_ids *arrayList of suggestion IDs to apply