MCP Review Server
A specialized code review service that provides 36+ critics for different programming aspects and 3 fixing strategies to automatically address identified issues in a two-step workflow.
README
Specialized Code Review Tools for Copilot
A Model Context Protocol (MCP) server that provides specialized code review capabilities using established critic methodologies and fixing strategies.
Example Usage
The workflow has two steps in your VS Code agent chat:
- Analysis: Use a critic tool to analyze code and identify issues
- Fix: Apply a fixer strategy to address the identified problems
Step 1: Analyze Code
Start a new chat to clear context, then write a request like:
review-design this React component
review-c-memory myfunc()
review-sql-security app_schema.sql
Step 2: Apply Fixes
Choose one:
fix-conservative
fix-comment
fix-zealot
Features
- 36+ Specialized Critics: Each critic focuses on specific aspects of code quality
- 3 Fixing Strategies: Methods for addressing critic findings
- Explicit Invocation: Users explicitly choose which critic or fixer to apply to their code
- Established Methodologies: Uses frameworks from the ai-review repository
- Two-Step Workflow: Analysis first, then apply fixing strategy
Setup
Prerequisites
- Node.js 18.0 or higher
- VS Code with GitHub Copilot extension
Installation
-
Clone with submodules to get critic frameworks:
git clone --recursive https://github.com/jonels-msft/mcp-review.git cd mcp-review # OR if already cloned: # git submodule update --init --recursive -
Install dependencies:
npm install
VS Code Configuration
Add the MCP server to your VS Code settings:
-
Open VS Code settings (JSON):
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) to open the command palette - Type "Preferences: Open User Settings (JSON)" and select it
- This opens your
settings.jsonfile
- Press
-
Add the following to the
mcp.serverssection (create the section if it doesn't exist):
<details open> <summary><strong>For Windows/macOS/Linux (Native)</strong></summary>
{
"mcp": {
"servers": {
"mcp-review": {
"command": "node",
"args": [
"/path/to/your/mcp-review/src/index.js"
]
}
}
}
}
</details>
<details> <summary><strong>For WSL (Windows Subsystem for Linux)</strong></summary>
When using WSL, VS Code executes the server inside the Linux environment:
{
"mcp": {
"servers": {
"mcp-review": {
"command": "wsl",
"args": [
"node",
"/path/to/your/mcp-review/src/index.js"
]
}
}
}
}
</details>
<details> <summary><strong>For WSL with NVM (Node Version Manager)</strong></summary>
If Node.js is not in your WSL PATH (e.g., when using NVM), specify the full path:
{
"mcp": {
"servers": {
"mcp-review": {
"command": "wsl",
"args": [
"/home/username/.nvm/versions/node/v18.20.8/bin/node",
"/path/to/your/mcp-review/src/index.js"
]
}
}
}
}
</details>
Important: Replace /path/to/your/mcp-review/ with the actual path where you cloned this repository (use Unix-style paths for WSL).
After adding the configuration, restart VS Code. VS Code will invoke the server automatically when you use the review tools in Copilot chat.
Available MCP Tools
The server loads all critic methodologies from the ai-review/critic directory and fixer strategies from the ai-review/fixer directory.
Critic MCP Tools
All critics follow the naming pattern review-<critic-name> and are organized by category:
Design & UI Critics
review-design- UI and user experience reviewreview-color- Color usage and accessibilityreview-data-visualization- Charts and data presentation
Security Critics
review-sql-security- SQL injection and database securityreview-sql-data-integrity- Data validation and constraints
Performance Critics
review-algorithm-performance- Algorithm efficiency analysisreview-algorithm-correctness- Algorithm correctness verificationreview-logging-performance- Logging overhead analysis
Memory & Resource Management
review-c-memory- C memory management reviewreview-c-error-handling- C error handling patternsreview-c-portability- Cross-platform C code
Error Handling
review-general-error-handling- Error handling best practicesreview-procedural-error- Procedural error management
Data & Logic
review-procedural-data- Data structure and flow analysisreview-procedural-functions- Function design and organizationreview-procedural-flow- Control flow analysisreview-floating-point- Numerical precision and floating-point issuesreview-datetime- Date/time handling correctnessreview-unicode- Unicode and internationalization
Standards & Compliance
review-sql-standard-compliance- SQL standard adherencereview-posix- POSIX compliance and portabilityreview-unix-interface- Unix philosophy and interfaces
Development Practices
review-logging-practices- Logging strategy and implementationreview-terminology- Naming conventions and clarityreview-writing- Documentation and commentsreview-estimation- Complexity and effort estimationreview-benchmarking- Performance measurement practices
Specialized Critics
review-meson- Meson build system reviewreview-probability- Statistical and probabilistic codereview-relational- Database design and relationshipsreview-prompting- AI prompt engineeringreview-logicism- Formal logic and reasoningreview-taylorism- Workflow and efficiency analysis
Fixer MCP Tools
Three fixer strategies are available:
fix-comment- Add TODO comments marking issues for later fixingfix-conservative- Fix only clear-cut, low-risk issues that won't require cascading changesfix-zealot- Pick one important issue and fix it comprehensively, even if it requires major reorganization
Development
Testing
npm test- Run all test suitesnpm run test:mcp- Run MCP protocol validationnpm run test:comprehensive- Run comprehensive feature tests
Utilities
npm run status- Display server capabilities and statusnpm run check- Check VS Code integration readiness
Manual Testing
To debug, you can run the server manually:
npm start- Run the server in standalone modenpm run dev- Run in development mode with auto-restart
Project Structure
mcp-review/
├── src/ # Server implementation
├── tests/ # Test suites
├── scripts/ # Utility scripts
├── ai-review/ # Critic and fixer frameworks (submodule)
└── README.md # Project documentation
Credit
Critic frameworks provided by the ai-review repository by Joe Nelson.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。