Sponsored by Deepsite.site

CodeView MCP 🪄

Created By
mann-uofg7 months ago
AI-powered code-review toolkit: MCP server + CLI to analyze GitHub PRs with local LLM smells, cloud LLM summaries, inline comments, risk gating, and test stub generation.
Content

CodeView MCP 🪄

Powered by MCP, CodeLlama-13B (local), Llama-3.1-8b-instant (cloud)

PyPI
CI


1 Why

Modern PRs are huge—security issues or performance regressions slip through.
ReviewGenie does a 30-second AI review:

  • Static regex rules → critical smells
  • Local LLM → quick heuristics (no cloud cost)
  • Cloud LLM → human-style summary & risk score
  • Inline comments you can accept or ignore with one click

2 What it does

ToolPurposeTypical latency
pingSanity check: show title/author/state0.3 s
ingestFetch diff JSON + SQLite cache1–2 s
analyzeSummary, smells[], rule_hits[], risk_score ∈ [0–1]6–10 s
inlinePosts or previews comments0.5 s
checkCI gate (risk_score > threshold)0.2 s
generate_testsStub pytest files + open PR4–6 s

Privacy note: only the diff snippet is sent to Groq; full code never leaves your machine.


3 Quick Start (5 min)

git clone https://github.com/mann-uofg/codeview-mcp.git
cd codeview-mcp
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pip install -e .

# one-liner smoke
reviewgenie/codeview ping https://github.com/psf/requests/pull/6883

Store secrets once (env-var OR keyring):

from codeview_mcp.secret import set_in_keyring

set_in_keyring("GH_TOKEN",        "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")    #GitHub PAT  
set_in_keyring("OPENAI_API_KEY",  "gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")              # Groq/OpenAI key  
set_in_keyring("OPENAI_BASE_URL", "https://api.groq.com/openai/v1")

Full tutorial: docs/QUICKSTART.md


4 Architecture

pipeline

  • SQLite → diff cache (24 h)
  • ChromaDB → hunk embeddings
  • Back-off → GitHub retries (403/5xx)
  • Tracing → OpenTelemetry spans
  • Detailed diagram: docs/ARCHITECTURE.md

5 Benchmark

See bench/benchmarks.md: 10 popular OSS PRs → avg ⏱ 8.1 s analyze, 💰 $0.0008 Groq cost, 96 % comment acceptance.


6 Docs


7 Day-by-Day Log

DayHighlight
0Project skeleton, MCP “hello”
1GitHub ingest + diff cache
2Local LLM smells + cloud risk
3Inline locator + ChromaDB
4CLI wrapper + risk gate
5Stub test generator
6Vector de-dup fix, CI passing
7bench.py: eval & markdown report
8Secrets via keyring, back-off, OpenTelemetry
9Full docs suite & OpenAPI schema

Full changelog: docs/CHANGELOG.md


8 Roadmap

  • 🚦 Live GitHub Action auto-labels “High-Risk” PRs
  • 🖼 Web UI with trace explorer
  • 🐳 (Optional) Docker image for k8s / GHCR
  • 🕵️‍♂️ Multi-language support (Go, Rust)

Star the repo ⭐ & drop an issue if you’d like to help!

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.