Cover image
Try Now
2025-02-07

Dieser AI -Agent analysiert Code -Repositories, erkennt potenzielle Sicherheitslücken, überprüft die Codequalität und schlägt Korrekturen vor, die auf Sentry -Fehlerprotokollen anhand von Sentry- und Github MCP -Servern basieren!

3 years

Works with Finder

1

Github Watches

2

Github Forks

10

Github Stars

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 <repository-url>
    cd <repository-folder>
    
  2. Install dependencies:

    pip install -r requirements.txt
    
    
  3. 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 --reload

Open 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:

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • OffchainLabs
  • GO -Umsetzung des Ethereum -Beweises des Anteils

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

    Reviews

    2 (1)
    Avatar
    user_6llTdwdj
    2025-04-16

    I've been using the Code-Reviewer-Fixer-Agent by gokborayilmaz and it's been a game-changer! The tool significantly streamlines the code review process by automating fixes, which enhances productivity and code quality. Highly recommend this for anyone looking to save time and improve their codebase! Check it out at https://github.com/gokborayilmaz/code-reviewer-fixer-agent.