CodeChecker MCP

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Utilizes OpenAI's GPT models to provide real-time code review, analysis, and improvement suggestions within Cursor IDE

代码检查器 MCP

Cursor IDE 的代码审查工具,使用 OpenAI 的 GPT 模型提供智能代码分析和建议。

特征

  • 使用 OpenAI 的 GPT 模型进行实时代码审查
  • 通过 MCP 协议与 Cursor IDE 集成
  • 支持 SSE 和 stdio 传输模式
  • 详细的代码分析和具体的改进建议

先决条件

  • Python 3.10 或更高版本
  • OpenAI API 密钥
  • 游标 IDE

安装

  1. 克隆存储库:
git clone https://github.com/jacklandis29/codechecker-mcp.git cd codechecker-mcp
  1. 创建并激活虚拟环境:
python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
  1. 安装依赖项:
pip install -e .
  1. 在项目根目录中创建一个.env文件并添加您的 OpenAI API 密钥:
OPENAI_API_KEY=your_api_key_here

用法

  1. 启动服务器:
python main.py --transport sse --port 8000
  1. 配置 Cursor IDE:
    • 打开光标设置
    • 添加以下配置:
{ "mcp": { "endpoint": "http://127.0.0.1:8000/sse", "enabled": true } }
  1. 通过选择代码并提供审查上下文来使用 Cursor IDE 中的代码审查工具。

配置

  • --transport :在“sse”(用于 Cursor IDE 集成)或“stdio”(用于命令行使用)之间进行选择
  • --port :指定 SSE 服务器的端口号(默认值:8000)

执照

MIT 许可证

-
security - not tested
F
license - not found
-
quality - not tested

Cursor IDE 的代码审查工具,使用 OpenAI 的 GPT 模型提供智能代码分析和建议。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Configuration
            1. License
              ID: sexuh3aajt