Skip to main content
Glama

πŸ€– PR-Agent Pro β€” Automated AI Pull Request Reviewer & Security Auditor

GitHub Action MCP Protocol Python 3.8+ License: MIT Glama

An enterprise-grade GitHub Action, Model Context Protocol (MCP) Server, and CLI tool that automatically audits pull request code diffs, detects security flaws & secret leaks, posts inline 1-click suggested fixes, and generates semantic changelogs.


⚑ Key Capabilities

  • πŸ›‘οΈ Zero-Day Security & Secret Leak Scanner: Scans modified lines for leaked Stripe/AWS/GitHub API keys, plaintext passwords, SQL injection vulnerabilities, and command injection risks.

  • πŸ“ Actionable 1-Click Code Review: Posts inline GitHub review comments containing suggestion code blocks that developers can apply directly from the GitHub UI with one click.

  • πŸ€– Semantic PR Summary & Changelog: Automatically synthesizes human-readable pull request overviews, risk scores, and release note bullets.

  • πŸ”Œ Model Context Protocol (MCP) Server: Equips Claude Desktop, Cursor IDE, and Antigravity agents to review local git diffs before pushing!


Related MCP server: shieldbot

πŸš€ GitHub Action Quickstart (2 Minutes)

Add this workflow to your repository at .github/workflows/ai-pr-reviewer.yml:

name: AI Pull Request Reviewer

on:
  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  ai-review:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Run PR-Agent Pro Reviewer
        uses: meanusarcanus/ai-pr-reviewer-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          severity_threshold: "Medium"

πŸ› οΈ Model Context Protocol (MCP) Tools

Tool Name

Parameters

Description

review_pr_diff

diff_text (string, required)

Reviews a git diff, analyzes code quality, and generates actionable comments with 1-click suggested diffs.

audit_code_security

diff_text (string, required)

Scans code changes for leaked secrets, SQL injection, and OWASP security flaws with a grade score (A+ to F).

generate_pr_changelog

diff_text (string, required), pr_title (string)

Synthesizes a structured PR description and release notes from code changes.

Connect to Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "ai-pr-reviewer": {
      "command": "python3",
      "args": ["/path/to/ai_pr_reviewer_action/mcp_server.py"]
    }
  }
}

πŸ“¦ Python SDK & CLI Usage

pip install ai-pr-reviewer
from ai_pr_reviewer import review_diff, audit_security, generate_changelog

diff = """
--- a/db.py
+++ b/db.py
@@ -10,3 +10,4 @@
+    query = f"SELECT * FROM users WHERE email = '{user_email}'"
+    cursor.execute(query)
"""

# Audit security
security = audit_security(diff)
print(f"Score: {security['security_score']}/100 | Grade: {security['security_grade']}")

# Run code review
review = review_code_diff(diff)
print(f"Verdict: {review['verdict']}")

πŸ“„ License

MIT License. Created by Meanus Arcanus.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Security scanning for AI coding tools (Claude Code, Cursor, Windsurf) including secrets detection, MCP config vulnerabilities, agent instruction checks, threat modeling, prompt injection testing, pre-commit security checks, and dependency vulnerability scanning.
      7
      39 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      AI-powered security code review for Claude Code that runs multiple scanners (CodeQL, Semgrep, etc.) to detect vulnerabilities, secrets, and dependency CVEs, producing prioritized reports.
      2
      3
      MIT