GitLab MCP for Code ReviewServer

mehmetakinn
GitHub
GitLabCode ReviewAI Integration

Loading subscription status...

๐Ÿ’ก Description

An MCP server that integrates AI assistants with GitLab's merge requests, allowing code review, comments addition, and approval/unapproval of merge requests through the GitLab API.

๐Ÿ“ JSON Entries

{
  "mcpServers": [
    {
      "gitlab-mcp-code-review": {
        "cwd": "/path/to/your/gitlab-mcp-code-review",
        "env": {
          "PATH": "/path/to/your/gitlab-mcp-code-review/.venv/bin:/usr/local/bin:/usr/bin:/bin",
          "PYTHONPATH": "/path/to/your/gitlab-mcp-code-review",
          "VIRTUAL_ENV": "/path/to/your/gitlab-mcp-code-review/.venv"
        },
        "args": [
          "/path/to/your/gitlab-mcp-code-review/server.py",
          "--transport",
          "stdio"
        ],
        "command": "/path/to/your/gitlab-mcp-code-review/.venv/bin/python"
      }
    }
  ]
}

๐Ÿ› ๏ธ Tools

fetch_merge_requestfetch_merge_request_difffetch_commit_diffcompare_versionsadd_merge_request_commentapprove_merge_requestunapprove_merge_requestget_project_merge_requests

โšก Features

  • Merge request analysis with full details
  • File-specific change analysis
  • Version comparison
  • Review management with comments and approvals
  • Project overview for all merge requests

๐Ÿ’ฌ Example Queries

  • Get details of merge request #5 in project with ID 123
  • Get diff for a specific file in a merge request
  • Compare develop branch with master branch
  • Add a comment to a merge request
  • Approve a merge request and set required approvals to 2