Code Review

by crazyrabbitltc

5 487 downloads Not rated yet
GitHub

About

Enables automated code reviews through multiple LLM providers by analyzing repository structures and evaluating code for security, performance, quality, and maintainability with structured output containing issues, strengths, and recommendations.

Details

Repository
crazyrabbitLTC/mcp-code-review-server

Explore

- Flatten codebases using Repomix
- Analyze code with Large Language Models
- Get structured code reviews with specific issues and recommendations
- Support for multiple LLM providers (OpenAI, Anthropic, Gemini)
- Handles chunking for large codebases

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Code Review
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 build/index.js
    Environment
    • LLM_PROVIDER OPEN_AI
    • OPENAI_API_KEY your_openai_api_key_here

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


npm install

LLM_PROVIDER=OPEN_AI
OPENAI_API_KEY=your_openai_api_key_here

analyze_repo

Flattens a codebase using Repomix to provide a high-level overview of its structure and organization.

code_review

Performs a comprehensive code quality assessment, identifying issues and providing actionable recommendations for improvement.

This server provides two distinct tools for different code analysis needs:

For testing purposes, you can use the included CLI tool:

node build/cli.js <repo_path> [options]

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "code review": {
            "env": {
                "LLM_PROVIDER": "OPEN_AI",
                "OPENAI_API_KEY": "your_openai_api_key_here"
            },
            "args": [
                "build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "LLM_PROVIDER": "OPEN_AI",
        "OPENAI_API_KEY": "your_openai_api_key_here"
    },
    "args": [
        "build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "LLM_PROVIDER": "OPEN_AI",
        "OPENAI_API_KEY": "your_openai_api_key_here"
    },
    "args": [
        "build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "LLM_PROVIDER": "OPEN_AI",
        "OPENAI_API_KEY": "your_openai_api_key_here"
    },
    "args": [
        "/c",
        "node",
        "build/index.js"
    ],
    "command": "cmd"
}

A custom MCP server that performs code reviews using Repomix and LLMs.

Features

- Flatten codebases using Repomix
- Analyze code with Large Language Models
- Get structured code reviews with specific issues and recommendations
- Support for multiple LLM providers (OpenAI, Anthropic, Gemini)
- Handles chunking for large codebases

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.