código-revisión-mcp-server
1
Github Watches
0
Github Forks
0
Github Stars
Code Review MCP Tool for Cursor
This tool is a Cursor plugin based on the Model Context Protocol (MCP) that automatically generates git diffs and performs code reviews within Cursor.
Features
- Compare code differences between two git branches
- Provide detailed code review guidelines
- Support Notion integration to retrieve review guidelines from Notion code blocks, with default guidelines as fallback
- Include pre-configured style and code review guidelines
Cursor Configuration
To use this tool in Cursor, you need to add the following configuration to your Cursor settings:
- Open Cursor settings (typically located at
~/.cursor/config.json) - Add the following configuration:
{
"mcpServers": {
"code-review-tool": {
"command": "npx",
"args": ["-y", "code-review-mcp-server"],
"env": {
"NOTION_API_KEY": "notion_api_key",
"NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL": "notion_code_block_url_here",
"NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL": "notion_code_block_url_here"
}
}
}
}
Enhancing AI Tool Usage with Cursor Rules
For optimal integration with Cursor's AI assistant, we recommend adding the following rule to your Cursor Rules:
Tools
- Whenever the terms 'code review' and 'base branch' appear in the chat, utilize the codeReview MCP tool to generate a diff and associated instructions. Subsequently, use the generated diff and instructions to conduct a thorough code review of the files of the proposed changes.
This rule instructs the AI to automatically utilize the Code Review MCP tool when relevant keywords are detected in your conversations, significantly enhancing workflow efficiency.
Reference documentation: Cursor Model Context Protocol
Notion Integration Setup
1. Request Notion API Token
- Visit Notion Developers
- Create a new Integration
- Obtain the API token
For detailed instructions, refer to: Notion API Authorization Guide
2. Configure Environment Variables
The tool requires the following environment variables:
NOTION_API_KEY=your_token_here
NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL=your_notion_code_block_url
NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL=your_notion_style_guideline_url
These can be provided in the env section of your Cursor configuration as shown above.
3. Add Integration to Notion Page
- Click the
Sharebutton on your Notion page - Add your Integration to the page's share list
Note: Currently only supports reading code blocks from Notion
For detailed instructions, refer to: Notion API Connections Guide
Usage
In the Cursor chat window, enter the following command:
code review
base branch: branch/any_branch
This will:
- Compare differences between the current branch and the specified base branch
- Automatically generate a git diff
- Perform a review based on style and code review guidelines
- Provide detailed review results and improvement suggestions
Review Guidelines
This tool provides two default sets of guidelines:
- Style Guide: Includes code style standards for variable naming, function naming, constant naming, etc.
- Code Review Guidelines: Includes code quality standards based on SOLID principles, readability, immutability, etc.
You can also customize these guidelines through Notion integration.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Advanced software engineer GPT that excels through nailing the basics.
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Converts Figma frames into front-end code for various mobile frameworks.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Espejo dehttps: //github.com/agentience/practices_mcp_server
Una lista curada de servidores de protocolo de contexto del modelo (MCP)
Reviews
user_OPk1tdh3
I've been using mcp-dbutils by donghao1393, and it significantly simplifies database operations. The tool is powerful yet easy to implement, making database management a breeze. I highly recommend checking it out if you're looking for efficient and effective database utilities. Great job by the developer!