Skip to main content
Glama
RepoGuardian MCP Server

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

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

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
      Enables AI agents to screen GitHub repositories and pull requests for risk analysis, generating risk scores, findings, and merge-readiness signals.
      5
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Connects AI assistants to GitHub repositories, pull requests, issues, commits, and code search while enabling repository visibility controls, CI/CD monitoring, sandboxed local filesystem access, and code quality/security analysis.
      13
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to monitor GitHub repository health by calculating health scores, fetching repository metadata, analyzing Dependabot alerts, checking CI/CD status, and retrieving code scanning alerts.
      8
      216 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding assistants to inspect local and remote repositories through sandboxed tools that surface project overviews, structure, dependency audits, Git churn hotspots, and a heuristic health score. It also supports safe GitHub issue searching and creation with built-in duplicate preflight checks, while blocking sensitive files, binary content, and path traversal attacks.
      MIT