MCP ExplorerExplorer

Mcp Review Code Tool

@wenkilon 9 months ago
11 MIT
FreeCommunity
AI Systems
#mcp#modelcontextprotocol#openai#review-code
A code review tool based on Model Context Protocol (MCP) that leverages OpenAI's capabilities for intelligent code analysis and review.

Overview

What is Mcp Review Code Tool

mcp_review_code_tool is a code review tool based on the Model Context Protocol (MCP) that utilizes OpenAI’s capabilities for intelligent code analysis and review.

Use cases

Use cases include automated code reviews, enhancing code quality through AI-driven suggestions, and integrating code review processes into CI/CD pipelines.

How to use

To use mcp_review_code_tool, clone the repository, install dependencies using npm, and configure the MCP server settings in the mcp.json file. Finally, build the project to generate the code review tool.

Key features

Key features include intelligent code analysis leveraging OpenAI’s API, integration with MCP for seamless code review processes, and support for Node.js and TypeScript.

Where to use

mcp_review_code_tool can be used in software development environments where code quality and review processes are essential, such as in Agile teams and DevOps practices.

Content

mcp_review_code_tool 项目说明文档

欢迎Star~~

项目简介

mcp_review_code_tool 是一个基于 Model Context Protocol (MCP) 的server tool项目。
本项目主要用于实现代码评审等功能的服务集成。LLM使用的是OpenRouter的api。

开发调试记录:
https://wenkil.github.io/2025/03/28/开发一个本地MCP工具进行代码review/

最新更新

🔥 新增Web版代码审查工具:代码逻辑改为了支持通过Web界面进行本地代码审查而非MCP调用,详情请查看 web_code_review/README.md,支持多文件上传、代码质量评估和可视化报告。

技术栈

  • Node.js 18+
  • TypeScript
  • MCP SDK

快速开始

环境准备

  1. 确保已安装 Node.js 18+ 版本
  2. 推荐使用 nvm 进行 Node.js 版本管理

安装步骤

  1. 克隆项目
git clone [项目地址]
cd mcp_review_code_tool
  1. 安装依赖
npm install
  1. 构建项目
npm run build

构建输出

构建后的文件将输出到 dist 目录:

  • dist/mcp_code_review.js - 代码评审工具

配置说明

MCP 服务器配置

mcp.json 中进行配置:

{
  "mcpServers": {
    "代码评审工具": {
      "command": "node",
      "args": [
        "your path/dist/mcp_code_review.js"
      ],
      "cwd": "your path",
      "env": {
        "OPENAI_API_KEY": "your api key",
        "OPENAI_API_BASE": "https://openrouter.ai/api/v1",
        "OPENAI_API_MODEL": "qwen/qwen-2.5-coder-32b-instruct:free"
      }
    }
  }
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers