CG

cayirtepeomer/gerrit-code-review-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

38 stars 12 forks 품질 58 트렌드 0

cayirtepeomer/gerrit-code-reviewmcp는 MCP 서버 후보로 https://github.com/cayirtepeomer/gerrit-code-review-mcp.에서 수입됩니다

개요

cayirtepeomer/gerrit-code-reviewmcp는 MCP 서버 후보로 https://github.com/cayirtepeomer/gerrit-code-review-mcp.에서 수입됩니다

개요(AI 번역)

이 MCP 서버는 Gerrit 부호 검토 체계도 통합을 제공하고, AI 조수가 간단한 공용영역을 통해서 부호 변화 그리고 그들의 세부사항을 검토하는 것을 허용하.

특징

서버는 코드 검토에 대한 간소화 된 도구 모음을 제공합니다:

Fetch 변경 세부 사항

  • 파일 및 패치 세트를 포함한 Fetches 완전한 변경 정보
  • 각 수정된 파일에 대한 상세한 diff 정보를 표시합니다.
  • 표시 파일 변경, 삽입 및 삭제
  • 특정 패치 세트 검토 지원
  • 다음과 같은 포괄적 인 변경 세부 사항 반환 :
  • 프로젝트 및 지점 정보
  • 저자 및 검토자 세부 사항
  • 코멘트 및 리뷰 역사
  • diff 내용의 파일 수정
  • 현재 패치 설정 정보

Patchset 차이 비교

  • 변화의 두 패치 세트 사이의 차이를 비교
  • 특정 파일 차이 또는 모든 변경된 파일 보기
  • Patchset 버전의 분석 코드 수정
  • 검토 여정을 통해 변화의 진화를 추적

리뷰 제출

  • 게시물 요약 피드백, 투표 라벨 (예, {"Code-Review": 1}), 및 인라인 / 파일 수준 코멘트
  • 특정 패치 세트 또는 기본을 최신 버전으로 타겟

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Gerrit Review MCP Server

This MCP server provides integration with Gerrit code review system, allowing AI assistants to review code changes and their details through a simple interface.

Features

The server provides a streamlined toolset for code review:

Fetch Change Details

fetch_gerrit_change(change_id: str, patchset_number: Optional[str] = None)
  • Fetches complete change information including files and patch sets
  • Shows detailed diff information for each modified file
  • Displays file changes, insertions, and deletions
  • Supports reviewing specific patch sets
  • Returns comprehensive change details including:
    • Project and branch information
    • Author and reviewer details
    • Comments and review history
    • File modifications with diff content
    • Current patch set information

Compare Patchset Differences

fetch_patchset_diff(change_id: str, base_patchset: str, target_patchset: str, file_path: Optional[str] = None)
  • Compare differences between two patchsets of a change
  • View specific file differences or all changed files
  • Analyze code modifications across patchset versions
  • Track evolution of changes through review iterations

Submit Review Feedback

submit_gerrit_review(
    change_id: str,
    message: Optional[str] = None,
    patchset_number: Optional[str] = None,
    labels: Optional[Dict[str, int]] = None,
    comments: Optional[List[Dict[str, Any]]] = None,
    notify: str = "OWNER",
)
  • Post summary feedback, vote labels (e.g., {"Code-Review": 1}), and inline/file-level comments
  • Target a specific patchset or default to the latest revision
  • Control Gerrit’s notification behaviour (notify: NONE, OWNER, OWNER_REVIEWERS, ALL)
  • Comment payloads accept dictionaries with path, message, and optional Gerrit comment fields (line, side, range, …)

Example Usage

Review a complete change:

# Fetch latest patchset of change 23824
change = fetch_gerrit_change("23824")

Submit review feedback with a vote and inline comment:

submit_gerrit_review(
    change_id="23824",
    message="Looks good overall",
    labels={"Code-Review": 1},
    comments=[{"path": "src/app.py", "line": 42, "message": "Nice refactor."}],
    patchset_number="2",           # optional: target a specific patchset
    notify="OWNER_REVIEWERS",      # optional: adjust notification scope
)

Compare specific patchsets:

# Compare differences between patchsets 1 and 2 for change 23824
diff = fetch_patchset_diff("23824", "1", "2")

View specific file changes:

# Get diff for a specific file between patchsets
file_diff = fetch_patchset_diff("23824", "1", "2", "path/to/file.swift")

Prerequisites

  • Python 3.10 or higher (Python 3.11 recommended)
  • Gerrit HTTP access credentials
GitHub에서 전체 README 보기

설치

npx -y @smithery/cli install @cayirtepeomer/gerrit-code-review-mcp --client claude
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

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