code-reviewer-fixer-agent
This AI agent analyzes code repositories, detects potential security vulnerabilities, reviews code quality, and suggests fixes based on Sentry error logs using Sentry and GitHub MCP servers!
Documentation
21-Day Agent Series: Day 11 AGENT : AI Code Review & Issue Fixer
AI Code Review & Issue Fixer
This agent is part of the "A New AI Agent Every Day!" Series - Day 11/21 - AI Code Review & Issue Fixer 🛠🚀 This AI agent analyzes code repositories, detects potential security vulnerabilities, reviews code quality, and suggests fixes based on Sentry error logs using Sentry and GitHub MCP servers!
Installation
Prerequisites
- Python 3.9 or higher
- Git
- Virtual environment (recommended)
Steps
Don't forget to download nodejs for MCP
1. Clone the repository:
git clone
cd2. Install dependencies:
pip install -r requirements.txt3. Create a `.env` file in the root directory and configure it as follows:
AZURE_OPENAI_ENDPOINT="your_azure_openai_endpoint"
AZURE_OPENAI_API_VERSION="your_azure_openai_api_version"
AZURE_OPENAI_API_KEY="your_azure_openai_api_key"
GITHUB_PERSONAL_ACCESS_TOKEN="YOUR_GITHUB_TOKEN"
SENTRY_AUTH_TOKEN="YOUR_SENTRY_TOKEN"Running the Application
Start the FastAPI server:
uvicorn upsonicai:app --reloadOpen the UI in your browser:
http://127.0.0.1:8000/MCP Configuration
Modify your MCP configuration to include GitHub and Sentry:
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN"
}
},
"sentry": {
"command": "python",
"args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"]
}
}How It Works
- Fetches recent commits from GitHub/GitLab repositories
- Analyzes code quality and detects security vulnerabilities
- Retrieves error logs from Sentry
- Provides actionable insights and fixes for detected issues
API Documentation
Interactive API docs are available at:
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
Frequently asked questions
What is code-reviewer-fixer-agent?
code-reviewer-fixer-agent is This AI agent analyzes code repositories, detects potential security vulnerabilities, reviews code quality, and suggests fixes based on Sentry error logs using Sentry and GitHub MCP servers!
How do I install code-reviewer-fixer-agent?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is code-reviewer-fixer-agent open source?
Yes — it is hosted on GitHub at https://github.com/gokborayilmaz/code-reviewer-fixer-agent and has 11 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP