gitlab-mr-mcp
Author: kopfrechner
Description: Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Stars: 48
Forks: 14
License: MIT License
Category: Open Source
Overview
Installation
git clone https://github.com/kopfrechner/gitlab-mr-mcp.git
cd gitlab-mr-mcp npm install # or: pnpm install / yarn install GITLAB_TOKEN=xxxxxxxxxxxxxxxx # required
GITLAB_BASE_URL=https://gitlab.com # self-hosted: https://gitlab.mycompany.com
PORT=3000 # where the MCP server should listen npm run dev npm run build
npm start docker build -t gitlab-mr-mcp .
docker run -d -p 3000:3000 \
-e GITLAB_TOKEN=$GITLAB_TOKEN \
-e GITLAB_BASE_URL=https://gitlab.com \
--name mr-mcp gitlab-mr-mcpget_projects
Gets a list of GitLab projects accessible with your token.
list_open_merge_requests
Lists all open merge requests in the specified project.
get_merge_request_details
Gets detailed information about a specific merge request.
get_merge_request_comments
Gets comments from a specific merge request, including discussion notes and diff notes.
add_merge_request_comment
Adds a general comment to a merge request.
add_merge_request_diff_comment
Adds a comment to a specific line in a file within a merge request.
get_merge_request_diff
Gets the diff for a merge request.
get_issue_details
Gets detailed information about a specific issue.
set_merge_request_title
Sets the title of a merge request.
set_merge_request_description
Sets the description of a merge request.