Back to Home
physics91 icon

ai-code-review-mcp

Verified Safe

by physics91

Overview

This project provides a Model Context Protocol (MCP) server for AI-powered code analysis, leveraging both Codex and Gemini CLIs to perform and aggregate code reviews.

Installation

Run Command
npx ai-code-agent-mcp

Environment Variables

  • CODEX_CLI_PATH
  • GEMINI_CLI_PATH
  • CODEX_MODEL
  • GEMINI_MODEL
  • CODE_REVIEW_MCP_LOG_LEVEL
  • CODEX_ENABLED
  • GEMINI_ENABLED
  • ANALYSIS_MAX_CODE_LENGTH
  • ANALYSIS_INCLUDE_CONTEXT
  • CONTEXT_AUTO_DETECT
  • CONTEXT_ACTIVE_PRESET
  • WARNINGS_ENABLED
  • WARNINGS_SHOW_TIPS
  • LOG_LEVEL
  • LOG_PRETTY
  • ENABLE_CACHE

Security Notes

The project demonstrates a very strong security posture. It employs extensive input validation using Zod schemas, critical CLI path whitelisting for both Codex and Gemini services, utilizes 'execa' with 'shell: false' to prevent shell injection, and implements comprehensive sensitive data redaction (code, API keys, secrets) from logs and error messages. Codex CLI execution is further hardened with '--sandbox read-only' and dangerous argument filtering. Control characters are stripped from inputs for display safety. A test for prototype pollution is present, indicating awareness. Overall, a highly security-conscious design.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassHigh
Avg Tokens30000
Stars0
Forks0
Last Update2025-12-26

Tags

MCPAI Code ReviewStatic AnalysisGeminiCodex