RepoGuardian MCP Server
Enables AI assistants to analyze GitHub repository health, issues, PRs, code, and engineering risks via RHD's agentic RAG, while keeping external actions human-approved and policy-gated.
README
RepoGuardian
powered by RHD - Repository Health Director
Autonomous Engineering Intelligence. Evidence-grounded decisions. Human-controlled execution.
Connect a GitHub repository. RHD investigates its issues, pull requests, source code, releases, engineering risks and repository health using agentic RAG, deterministic multi-agent orchestration, specialized model governance and evidence-grounded reasoning.
RHD analyzes automatically. RHD recommends automatically. Humans authorize external actions.
Live Application
Public web app: https://repoguardian-rhd.vercel.app
FastAPI: https://repoguardian-rhd-api.vercel.app
API docs: https://repoguardian-rhd-api.vercel.app/docs
Architecture: https://repoguardian-rhd.vercel.app/architecture
RHD v4 Mission Control: https://repoguardian-rhd.vercel.app/mission-control
RHD v5 Chat Workspace: https://repoguardian-rhd.vercel.app
Demo repository: https://github.com/romil569/RepoGuardian-Demo
Public v5.1 flow: paste a GitHub repository into the home chat, run analysis, wait for the persisted job stages to complete, then review the inline SVG architecture artifact and ask follow-up questions in the same repository context.
Architecture
flowchart LR
G[GitHub] --> W[Webhooks / Sync]
W --> Q[Event Queue]
Q --> RI[Repository Intelligence]
RI --> S[(SQL + Vector + Graph)]
S --> AR[Agentic RAG]
AR --> RHD[RHD Supervisor]
RHD --> A[Specialist Agents]
A --> ML[ML / DL Intelligence]
ML --> EC[Evidence Critic]
EC --> PG[Policy Gate]
PG --> HR[Human Review]
HR --> GA[GitHub Action]
Deployment modes:
LIGHTWEIGHT_LOCAL: SQLite, local vectors, deterministic/RHD tools.INDUSTRY_LOCAL: optional Docker PostgreSQL/Redis when Docker exists.MANAGED_CLOUD: Vercel frontend, Vercel Python FastAPI backend, Neon PostgreSQL/pgvector, Postgres queue.ENTERPRISE_AWS: Terraform foundation; not provisioned.
Feature Matrix
| Feature | Status | Notes |
|---|---|---|
| RHD Agent | Working | Repository review, Ask RHD, priorities, evidence trace |
| RHD v5.1 Chat Workspace | Working | Paste a public GitHub repository, run a persisted serverless analysis job, restore context after reload, and continue grounded follow-up questions |
| Deterministic Architecture Artifacts | Working | Mermaid/SVG diagrams generated and persisted from synchronized repository tree, source files, code symbols, and repository evidence |
| Multimodal Attachment Readiness | Partial | Upload UI and capability reporting; direct image understanding requires configured multimodal provider |
| Voice Controls | Partial | Optional browser UI affordance; text workflow remains primary |
| RHD v4 Agent Mesh | Beta | Read-only supervised agents with persisted run/step traces and policy gating |
| Agentic/Hybrid RAG v3 | Implemented | Query planner, hybrid retrieval, score fusion, deterministic reranking, grounding critic |
| Code-RAG | Beta | Static code scan/symbol graph foundations; serverless filesystem scanning stays disabled |
| Graph-RAG | Beta | PostgreSQL-backed graph rows and evidence paths; separate graph database is not required |
| MCP Server | Implemented | stdio tools/resources/prompts over shared RHD tool registry |
| PR Risk | Beta | Deterministic risk, blast-radius, reviewer hints and test recommendations from synced PR/code-symbol evidence |
| Issue Intelligence | Working | Duplicate, completeness, priority, security, release correlation |
| Security Signals | Working | Secret redaction and injection guard; not vulnerability certification |
| Incident Intelligence | Beta | Repository-scoped timelines and cautious hypotheses; correlation is not causation |
| Release Intelligence | Working | Temporal correlation wording, no causation claims |
| Repository Health | Working | Health score, dimensions, weekly brief |
| Automation | Partial | Event/job foundations; no unrestricted autopilot |
| Review Queue | Working | Approval, rejection, policy validation |
| Audit | Working | Safe summaries, no secrets |
| Model Gateway | Working | Task-aware routing, Ollama local adapter, cloud config probes, deterministic fallback |
| ML Registry / MLOps | Working | Honest model cards; no custom metrics without defensible datasets |
| Managed PostgreSQL | Neon validated | Provider-neutral DATABASE_URL, pgvector health checks |
| Serverless Queue | Implemented | Postgres job queue for Vercel; local fallback remains available |
Truthful capability levels:
Working: production-compatible and covered by regression tests.Beta: implemented as an additive v4 path and covered by tests, but depends on synced repository data quality.Partial: foundation exists, with explicitly documented constraints.Optional: requires local/configured provider; never claimed active in public cloud without configuration.Roadmap: documented only, not represented as shipped behavior.
Quick Start
Lightweight Local
cd C:\Users\HP\Desktop\RepoGuardian
copy .env.example .env
copy backend\.env.example backend\.env
.\scripts\start-dev.ps1
Open http://127.0.0.1:3000.
Industry Local
cd C:\Users\HP\Desktop\RepoGuardian
.\scripts\start-industry-local.ps1
.\scripts\doctor.ps1
Docker PostgreSQL/Redis are used only when Docker is installed. Otherwise the stable lightweight path remains available.
Managed Cloud
Backend Vercel entrypoint: api/index.py.
Required backend environment:
DEPLOYMENT_MODE=MANAGED_CLOUDDATABASE_URL=postgresql://...POSTGRES_RUNTIME_MODE=managedQUEUE_BACKEND=postgresPUBLIC_ANALYSIS_MODE=trueGITHUB_WRITE_MODE=disabledFRONTEND_URL=https://...CORS_ORIGINS=https://...ENABLE_STARTUP_SCHEMA_CREATE=false
Frontend environment:
NEXT_PUBLIC_API_URL=https://your-fastapi-service.example.com
See docs/deployment-managed-cloud.md and docs/vercel-backend-audit.md.
MCP
cd mcp-server
npm install
$env:REPOGUARDIAN_API_URL="http://127.0.0.1:8000"
npm start
MCP exposes RHD tools, resources, and prompts. Write-gated actions remain human/policy gated. See docs/mcp.md.
Testing
cd backend
.\.venv\Scripts\python -m pytest
cd frontend
npm run lint
npm run typecheck
npm run build
npm run e2e
cd mcp-server
npm run typecheck
npm test
Safety
- Repository writes are allow-listed and require human approval.
- Public repositories are analyzed in read-only mode unless policy explicitly allows writes.
- Private repositories default to local/deterministic processing.
- Issue text, comments, README files, code, and PR descriptions are treated as untrusted evidence.
- Evidence must correspond to synchronized repository records.
- Frontend
NEXT_PUBLIC_variables never contain backend secrets. - Audit logs store safe summaries, not secrets or private reasoning.
Current Limits
- Managed PostgreSQL/pgvector is ready for credentials but not connected in this local run.
- Redis is optional and not connected locally.
- Docker remains optional and unavailable on the current machine.
qwen3:1.7bOllama was validated locally;qwen3:8bwas pulled but too slow for demo.- ML/DL training is not claimed without a defensible labeled dataset.
- Production is not marked validated until deployed infrastructure and live production testing exist.
Documentation
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.