Angular PR Review MCP
Angular PR Review MCP
可复用的 MCP 服务器,用于跨多个 Angular 仓库的自动化拉取请求审查工作流。
此包公开了三个 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: GitHub PR Review Server
本地开发
npm install
npm run build
npm run dev发布到 npm
如果公开发布:
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保存 Markdown 审查评论。
推荐流程:
首先调用
get_pr_review_template,加载本地审查规范,避免每次运行都重新推导规则。调用
generate_pr_diff和read_pr_diff收集证据。调用
save_pr_review生成最终报告。
生成的文件会写入每个使用方仓库中配置的输出文件夹。
本地模板产物
该仓库包含 pr_review_prompt_template.md,以便团队可以在版本控制中对审查指南进行版本管理。
get_pr_review_template 工具返回相同的策略文本(支持可选的提交令牌替换),这有助于保持审查结果确定性并减少令牌消耗。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceProvides automated Git workflow tools for committing, creating pull requests, and merging with proper GitHub authentication handling. Supports complete Git workflows from commit to merge with dry run capabilities and conventional commit formatting.41
- AlicenseNot gradedqualityCmaintenanceEnables automated GitHub Pull Request reviews using local Ollama, Cursor CLI, or Gemini CLI as AI providers. Supports customizable review prompts, comprehensive PR analysis, and optional auto-posting of reviews to GitHub.105MIT
- AlicenseAqualityCmaintenanceGenerates commit messages, PR titles and descriptions, and release notes from git changes, with automatic domain detection for appropriate PR templates.10191MIT
- FlicenseAqualityBmaintenanceEnables fetching Pull Request diffs from GitHub and posting inline review comments directly on PRs, either as pending drafts or published immediately.2
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chetanraj-r/angular-pr-review-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server