Code Review Server logo

Code Review Server

by MCP-Mirror

A custom MCP server that performs code reviews using Repomix and LLMs. It provides structured code reviews with specific issues and recommendations.

View on GitHub

Last updated: N/A

What is Code Review Server?

The Code Review Server is a custom MCP server designed to automate code reviews using Repomix for codebase flattening and Large Language Models (LLMs) for analysis. It provides structured feedback, identifying issues and offering recommendations for improvement.

How to use Code Review Server?

To use the server, clone the repository, install dependencies, configure your LLM provider in the .env file, and start the server. It exposes two main tools: analyze_repo for codebase overview and code_review for detailed analysis. You can interact with it using an MCP client or the included CLI tool for testing.

Key features of Code Review Server

  • 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

Use cases of Code Review Server

  • Automated code quality assessment

  • Security vulnerability identification

  • Performance bottleneck detection

  • Code maintainability improvement

  • Detailed code review with severity ratings

FAQ from Code Review Server

What LLM providers are supported?

The server supports OpenAI, Anthropic, and Gemini.

How do I configure the LLM provider?

You can configure the LLM provider and API key in the .env file.

What is Repomix used for?

Repomix is used to flatten the codebase structure for easier analysis by the LLM.

What is the output format of the code review?

The code review is returned in a structured JSON format with a summary, issues, strengths, and recommendations.

How do I review specific files?

Use the --files option with the CLI tool to specify the files you want to review.