A code review tool for Cursor IDE that uses OpenAI's GPT models to provide intelligent code analysis and suggestions.
- Real-time code review using OpenAI's GPT models
- Integration with Cursor IDE through MCP protocol
- Support for both SSE and stdio transport modes
- Detailed code analysis with specific improvement suggestions
- Python 3.10 or higher
- OpenAI API key
- Cursor IDE
- Clone the repository:
git clone https://github.com/jacklandis29/codechecker-mcp.git
cd codechecker-mcp
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
- Install dependencies:
pip install -e .
- Create a
.env
file in the project root and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Start the server:
python main.py --transport sse --port 8000
- Configure Cursor IDE:
- Open Cursor settings
- Add the following configuration:
{
"mcp": {
"endpoint": "http://127.0.0.1:8000/sse",
"enabled": true
}
}
- Use the code review tool in Cursor IDE by selecting code and providing context for review.
--transport
: Choose between "sse" (for Cursor IDE integration) or "stdio" (for command-line usage)--port
: Specify the port number for the SSE server (default: 8000)
MIT License