
mehmetakinn/gitlab-mcp-code-review
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
mehmetakinn/gitlab-mcp-code-review는 MCP 서버 후보가 https://github.com/mehmetakinn/gitlab-mcp-code-review.에서 수입되었습니다
개요
mehmetakinn/gitlab-mcp-code-review는 MCP 서버 후보가 https://github.com/mehmetakinn/gitlab-mcp-code-review.에서 수입되었습니다
개요(AI 번역)
이 프로젝트는 cayirtepeomer/gerrit-code-review-mcp에서 위조되고 GitLab 통합을 위해 적응됩니다.
MCP (Model Context Protocol) 서버는 GitLab의 합병 요청으로 Claude와 같은 AI 조수를 통합합니다. GitLab API를 통해 코드를 직접 검토 할 수 있습니다.
특징
-Complete Merge Request Analysis: 디퓨즈, 커밋, 코멘트를 포함한 합병 관련 전체 세부사항
- File-Specific Diffs: 병합 요청 내에서 특정 파일로 분석 변경 -Version 비교: 다른 지점, 태그, 또는 커밋 비교
- 리뷰 관리: Add comments, approve, 또는 unapprove 합병 요청
- 프로젝트 개요: 프로젝트의 모든 합병 요청 목록 받기
설치
# 필수품
- 파이썬 3.10+
- API 범위 (read api, api)를 가진 GitLab 개인 액세스 토큰
- MCP 통합을 위한 Cursor IDE 또는 Claude 데스크탑 앱
빠른 시작
-
Clone 이 저장소:
-
가상 환경을 만들고 활성화하십시오:
-
의존성 설치:
-
.env]파일을 GitLab 설정(.env.example의 모든 옵션):
구성 옵션
다음 환경 변수는 `에서 구성할 수 있습니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
GitLab MCP for Code Review
This project is forked from cayirtepeomer/gerrit-code-review-mcp and adapted for GitLab integration.
An MCP (Model Context Protocol) server for integrating AI assistants like Claude with GitLab’s merge requests. This allows AI assistants to review code changes directly through the GitLab API.
Features
- Complete Merge Request Analysis: Fetch full details about merge requests including diffs, commits, and comments
- File-Specific Diffs: Analyze changes to specific files within merge requests
- Version Comparison: Compare different branches, tags, or commits
- Review Management: Add comments, approve, or unapprove merge requests
- Project Overview: Get lists of all merge requests in a project
Installation
Prerequisites
- Python 3.10+
- GitLab personal access token with API scope (read_api, api)
- Cursor IDE or Claude Desktop App for MCP integration
Quick Start
- Clone this repository:
git clone https://github.com/mehmetakinn/gitlab-mcp-code-review.git
cd gitlab-mcp-code-review
- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile with your GitLab configuration (see.env.examplefor all options):
# Required
GITLAB_TOKEN=your_personal_access_token_here
# Optional settings
GITLAB_HOST=gitlab.com
GITLAB_API_VERSION=v4
LOG_LEVEL=INFO
Configuration Options
The following environment variables can be configured in your .env file:
| Variable | Required | Default | Description |
|---|---|---|---|
| GITLAB_TOKEN | Yes | - | Your GitLab personal access token |
| GITLAB_HOST | No | gitlab.com | GitLab instance hostname |
| GITLAB_API_VERSION | No | v4 | GitLab API version to use |
| LOG_LEVEL | No | INFO | Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
| DEBUG | No | false | Enable debug mode |
| REQUEST_TIMEOUT | No | 30 | API request timeout in seconds |
| MAX_RETRIES | No | 3 | Maximum retry attempts for failed requests |
Cursor IDE Integration
To use this MCP with Cursor IDE, add this configuration to your ~/.cursor/mcp.json file:
{
"mcpServers": {
"gitlab-mcp-code-review": {
"command": "/path/to/your/gitlab-mcp-code-review/.venv/bin/python",
"args": [
"/path/to/your/gitlab-mcp-code-review/server.py",
"--transport",
"stdio"
],
"cwd": "/path/to/your/gitlab-mcp-code-review",
"env": {
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"gitlab-mcp-code-review": {
"command": "/path/to/your/gitlab-mcp-code-review/.venv/bin/python",
"args": [
"/path/to/your/gitlab-mcp-code-review/server.py",
"--transport",
"stdio"
],
"cwd": "/path/to/your/gitlab-mcp-code-review",
"env": {
"PYTHONPATH": "/path/to/your/gitlab-mcp-code-review",
"VIRTUAL_ENV": "/path/to/your/gitlab-mcp-code-review/.venv",
"PATH": "/path/to/your/gitlab-mcp-code-review/.venv/bin:/usr/local/bin:/usr/bin:/bin"
},
"stdio": true
}
}
}