Skip to main content
Glama
romil569

RepoGuardian MCP Server

by romil569

RepoGuardian

powered by RHD - Repository Health Director

Autonomous Engineering Intelligence. Evidence-grounded decisions. Human-controlled execution.

Python FastAPI Next.js TypeScript PostgreSQL pgvector MCP Ollama Tests License: MIT

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.

Related MCP server: GitHub Repo Explainer MCP

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_CLOUD

  • DATABASE_URL=postgresql://...

  • POSTGRES_RUNTIME_MODE=managed

  • QUEUE_BACKEND=postgres

  • PUBLIC_ANALYSIS_MODE=true

  • GITHUB_WRITE_MODE=disabled

  • FRONTEND_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.7b Ollama was validated locally; qwen3:8b was 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

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
5Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to analyze GitHub repository structures and read file contents with features like directory traversal, file type analysis, syntax highlighting, and code pattern detection. Supports both public and private repositories through GitHub API integration.
    11
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to access live GitHub repository data without cloning, supporting repo summarization, file explanation, recent changes, and dependency analysis.
    MIT

View all related MCP servers

Related MCP Connectors

  • Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/romil569/RepoGuardian-RHD-Enterprise'

If you have feedback or need assistance with the MCP directory API, please join our Discord server