Angular PR Review MCP
Angular PR Review MCP
여러 Angular 저장소에서 자동화된 풀 리퀘스트 리뷰 워크플로를 위한 재사용 가능한 MCP 서버입니다.
이 패키지는 세 가지 MCP 도구를 제공합니다:
get_pr_review_templategenerate_pr_diffread_pr_diffsave_pr_review
대상 저장소 컨텍스트(현재 작업 디렉터리)에서 실행되므로, 게시된 하나의 패키지를 모든 Angular 앱에서 재사용할 수 있습니다.
요구사항
Node.js 20+
Git이 설치되어 있고 PATH에 포함되어 있어야 합니다.
Copilot Chat MCP를 지원하는 VS Code
Related MCP server: @droplinkperformance/bitbucket-mcp-server
로컬 개발
npm install
npm run build
npm run devnpm에 게시
공개적으로 게시하는 경우:
npm login
npm publish --access public스코프 패키지로 게시하는 경우(계정/조직 소유권에 권장):
package.json의
name필드를 스코프로 변경합니다(예:@your-scope/angular-pr-review-mcp).게시:
npm login
npm publish --access public별도 GitHub 저장소 만들기
이 폴더에서 계정의 전용 저장소를 만들고 푸시합니다:
git init
git branch -M main
git remote add origin https://github.com/<your-username>/angular-pr-review-mcp.git
git add .
git commit -m "Initial reusable Angular PR review MCP package"
git push -u origin main모든 Angular 저장소에서 사용
각 Angular 저장소에 .vscode/mcp.json을 추가하거나 업데이트합니다:
{
"servers": {
"angular-pr-review": {
"type": "stdio",
"command": "npx",
"args": ["-y", "angular-pr-review-mcp"],
"cwd": "${workspaceFolder}",
"env": {
"PR_REVIEW_BASE_BRANCH": "main",
"PR_REVIEW_OUTPUT_DIR": "pr_review"
}
}
}
}스코프 패키지의 경우 angular-pr-review-mcp를 게시된 이름으로 바꿉니다.
환경 변수
PR_REVIEW_BASE_BRANCH: 비교할 대상 기본 브랜치(기본값main)PR_REVIEW_OUTPUT_DIR: 리뷰 산출물 디렉터리(기본값: 저장소 루트 아래pr_review)PR_REVIEW_REPO_ROOT: 저장소 루트 재정의(기본값: 현재 작업 디렉터리)PR_REVIEW_SERVER_NAME: MCP 서버 이름(기본값angular-pr-review)
도구 워크플로
커밋 SHA로
generate_pr_diff를 실행합니다.read_pr_diff로 diff 콘텐츠를 가져옵니다.save_pr_review로 마크다운 리뷰 코멘트를 저장합니다.
권장 흐름:
먼저
get_pr_review_template으로 로컬 리뷰 루브릭을 로드하여 실행마다 규칙을 다시 도출하지 않도록 합니다.증거 수집을 위해
generate_pr_diff와read_pr_diff를 사용합니다.최종 보고서를 위해
save_pr_review를 사용합니다.
생성된 파일은 각 사용 저장소의 구성된 출력 폴더에 기록됩니다.
로컬 템플릿 아티팩트
저장소에는 pr_review_prompt_template.md가 포함되어 있어 팀이 소스 제어에서 리뷰 지침을 버전 관리할 수 있습니다.
get_pr_review_template 도구는 동일한 정책 텍스트(선택적 커밋 토큰 교체 포함)를 반환하므로 리뷰를 결정적으로 유지하고 토큰 소모를 줄여줍니다.
Available Tools
4 toolsgenerate_pr_diffB
Generate a PR review diff for a validated Git commit hash and return the resulting diff file path.
Inputs: commitHash (required).
get_pr_review_templateB
Return the local Angular PR review template used to keep review rules consistent and token-efficient.
Inputs: commitHash.
read_pr_diffA
Read the most recently generated PR diff file, or a specific diff by commit hash/file path.
Inputs: filePath, commitHash.
save_pr_reviewB
Save a completed review as a markdown report inside the configured output folder.
Inputs: content (required), commitHash (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a distinct purpose: fetching the review template, generating a diff, reading a diff, and saving a review. There is no overlap or ambiguity in their functionalities.
All tools follow a consistent verb_noun pattern (get, generate, read, save) with clear object references. The only minor deviation is that 'get_pr_review_template' and 'generate_pr_diff' could be seen as slightly more specific verbs, but they are still consistent with the overall style.
With 4 tools, the server is well-scoped for a focused PR review workflow. Each tool covers an essential step: template retrieval, diff generation, diff reading, and saving results, without unnecessary extras.
The tool surface covers the core workflow of generating and reviewing a PR diff. However, a minor gap might be the lack of a tool to fetch PR metadata or commit details beyond the diff, but the current set is sufficient for the stated purpose.
Maintenance
Related MCP Connectors
Read pull requests, builds and work items, and create work items or PR comments in Azure DevOps.
Detect breaking changes, generate changelogs, diff, and validate OpenAPI specs.
Generate changelogs, release emails, help-center articles, banners, and social posts from commits.
Read repositories, pull requests, issues and CI runs; create issues and comments in GitHub.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables AI-powered code review of Git diffs through natural language, supporting multiple AI models and Git workflows.36Apache 2.0- AlicenseNot gradedqualityBmaintenanceEnables AI-powered pull request review and analysis for Bitbucket Cloud, plus tools to list, create, diff, comment on, and analyze PRs. Supports stdio or HTTP transports with OAuth/bearer auth and pluggable LLM providers.57 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables deterministic behavioral regression review of pull-request diffs by checking changed code against approved incident-derived contracts. It exposes read-only tools to assess diffs and pull requests, list and fetch contracts, and report outcomes over stdio without mutating repositories.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to review GitHub pull requests and GitLab merge requests by fetching PR/MR details and diffs, with optional file-type filtering, and posting inline, general, or batched review comments. Supports self-hosted GitLab and custom project-specific review rules through stdio, SSE, or WebSocket transports.MIT