DevGuardian MCP Server
Generates a Dockerfile and docker-compose.yml tailored to the project's stack, and includes Docker build steps in the generated CI pipeline.
Validates .env file structure safely (shows keys but never secret values) and generates project-specific .gitignore rules covering .env patterns, asking for permission first.
Provides a full Git suite (status, add, commit, push, pull, log, diff, branch, checkout, stash, reset, remote) plus AI-written smart commits, with a credential-scanning security gate protecting commits and pushes.
Fetches pull request diffs from GitHub repositories and produces structured AI reviews covering bugs, security, performance and style; supports GITHUB_TOKEN for private repos.
Auto-generates .github/workflows/ci.yml with linting, testing, Docker and a self-healing job that repairs failed CI runs.
Scans internal imports and generates a Mermaid.js dependency diagram showing how every file in the project connects to the others.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
DevGuardian MCP Server — v3 Autonomous Engineering Ecosystem
An AI-powered, project-aware coding assistant MCP server built with Gemini 2.0 Flash and UV.
Plug it into Antigravity or Claude Desktop and get a full AI engineering team: debugging, reviewing, testing, deploying, and securing your code — all autonomously.

What is DevGuardian?
DevGuardian v3 is a multi-agent autonomous engineering ecosystem. It goes far beyond a single script — it reads your entire project structure before acting, uses a team of AI agents to validate work iteratively, and now actively repairs its own CI failures.
Core Design Principles:
Project DNA Awareness — Before writing a single line of code, DevGuardian reads your README,
pyproject.toml, full file tree, and import graph. It generates code that fits your architecture, not generic boilerplate.Agent Swarm with Adversarial Review — A 3-agent pipeline (Coder → Tester → Reviewer) that loops until the code is production-ready. If the Reviewer rejects the code, it sends specific feedback back to the Coder for another pass (up to 3 iterations).
Semantic Memory — DevGuardian remembers your coding style preferences and lessons learned across sessions, stored locally in
.devguardian_memory.json.Sandbox Execution — The Tester agent actually runs the generated code in a safe subprocess to catch runtime errors, not just look for them visually.
Self-Healing CI — If a push to
mainfails CI checks, a repair job automatically triggers DevGuardian to diagnose and fix the issue, then re-pushes a repair commit.
Related MCP server: @h0wzy/mcp
Tool Reference (31 Tools)
Autonomous Agents
Tool | Description |
| 3-agent pipeline (Coder, Tester, Reviewer) with adversarial feedback loops and sandbox execution. Loops until code is accepted. |
| Stateful LangGraph agent that plans, executes tools in loops, verifies work, and self-corrects. |
AI Code Intelligence
Tool | Description |
| Analyze errors and stack traces; returns root cause and exact fix with full project context. |
| Understand what any code does in plain English. |
| Project-aware code review covering bugs, security, performance, and style. |
| Generate clean code tailored to your project's architecture. |
| Refactor and improve existing code consistently. |
Quality and Testing
Tool | Description |
| TDD Auto-Pilot: generates pytest tests, runs them, fixes source until tests pass. |
| Fetches PR diffs from GitHub and performs an AI-powered code review. |
DevOps and Infrastructure
Tool | Description |
| Auto-generates |
| Auto-generates |
| Analyzes your project structure and generates a tailored |
Architecture and Documentation
Tool | Description |
| Analyzes internal imports and generates a Mermaid.js dependency diagram of your project. |
| Generates a high-density technical architecture summary using Gemini. |
Mass Operations
Tool | Description |
| Applies a single instruction across every Python file in the project simultaneously. |
Security
Tool | Description |
| Validates |
| Scans the repo for 20+ credential types and missing |
Git Suite
Tool | Description |
| AI reads your diff, writes a commit message, scans for credential leaks, then commits. |
| Show working tree status. |
| Stage files for commit. |
| Commit with a custom message. |
| Push to remote (protected by the security gate). |
| Pull from remote. |
| View commit history. |
| Show staged or unstaged diffs. |
| List all branches. |
| Switch or create branches. |
| Stash or unstash changes. |
| Reset HEAD (soft, mixed, hard). |
| List configured remotes. |
Setup
Prerequisites
UV installed
Python 3.10+
Git installed
A Gemini API Key (free)
Installation
cd DevGuardian
uv venv
uv pip install -e .Configure your API key
copy .env.example .env
# Open .env and paste your Gemini API key
# Optionally add GITHUB_TOKEN for private repo PR reviewsTest the server runs
uv run devguardianYou should see no errors — the server waits for MCP connections on stdio.
MCP Configuration
Antigravity (VS Code)
Add to your .gemini/settings.json:
{
"mcpServers": {
"devguardian": {
"command": "uv",
"args": ["--directory", "C:\\Users\\ASUS\\OneDrive\\Desktop\\DevGuardian", "run", "devguardian"],
"env": {
"GEMINI_API_KEY": "your_key_here",
"GITHUB_TOKEN": "your_github_token_here"
}
}
}
}Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"devguardian": {
"command": "uv",
"args": ["--directory", "C:\\Users\\ASUS\\OneDrive\\Desktop\\DevGuardian", "run", "devguardian"],
"env": {
"GEMINI_API_KEY": "your_key_here"
}
}
}
}Usage Examples
Agent Swarm — Build a feature with 3 AI agents
"DevGuardian, use the agent swarm to create a rate-limiting utility for our API."
Coder writes aRateLimiterclass. Tester finds edge cases. Reviewer rejects and sends feedback. Coder fixes. Reviewer accepts on pass 2. Final production-ready file is returned.
TDD Auto-Pilot — Test-driven bug fixing
"Run test_and_fix on
devguardian/tools/debugger.py"
DevGuardian writes pytest tests, runs them, reads the failures, patches the source, and loops until all tests go green.
PR Review — Review any live pull request
"Review PR #42 in myorg/myrepo"
DevGuardian fetches the diff from GitHub and produces a structured review covering bugs, security, performance, and style.
Architecture Map — Visualize your codebase
"Generate an architecture map for this project."
DevGuardian scans all internal imports and produces a Mermaid.js dependency diagram showing how every file connects to every other file.
Smart .gitignore — Context-aware generation
"Generate a gitignore for this project."
DevGuardian reads your tech stack and file structure. It asks for your permission before including.envpatterns, then generates a tailored file — not a generic template.
Push Code Safely
"Push my changes to main."
DevGuardian scans all staged files. If it detects a hardcoded API key or token, it blocks the push and reports the exact file and line number.
Project Structure
DevGuardian/
├── .env.example Copy to .env and add your API key
├── .gitignore Security-focused ignore rules
├── pyproject.toml UV project config and dependencies
├── Dockerfile Production container
├── docker-compose.yml Service orchestration
├── README.md
├── tests/
│ └── test_debugger.py TDD-generated test suite
├── .github/
│ └── workflows/
│ └── ci.yml GitHub Actions CI/CD with self-healing job
└── devguardian/
├── server.py MCP server entry point (31 tools)
├── agents/
│ ├── engineer.py Stateful LangGraph autonomous agent
│ └── swarm.py 3-Agent Swarm v3 with adversarial loops
├── tools/
│ ├── debugger.py debug_error
│ ├── code_helper.py explain, review, generate, improve
│ ├── git_ops.py Full git suite + smart_commit
│ ├── tdd.py TDD Auto-Pilot
│ ├── github_review.py GitHub PR Reviewer
│ ├── infra.py Dockerfile, CI/CD, and gitignore generators
│ ├── architect.py Architecture mapping and technical docs
│ ├── self_healing.py CI failure detection and repair engine
│ └── mass_refactor.py Mass codebase refactoring
└── utils/
├── gemini_client.py Gemini 2.0 Flash wrapper
├── file_reader.py Project DNA context builder
├── security.py Pre-push security gate and .env validator
├── memory.py Persistent semantic memory (JSON-based)
└── executor.py Safe subprocess execution sandboxSecurity Model
Anti-Leak Shield:
security.pydetects 20+ credential types (AWS, GitHub, OpenAI, Google, Stripe, Slack) before anygit pushorsmart_commit.Precise Detection: Only flags hardcoded quoted values — no false positives on
os.getenv()calls.Env Safety:
validate_envreviews your.envfile structure — shows keys but never exposes values.Permission-Based Gitignore: The
generate_gitignoretool asks for explicit user permission before adding.envpatterns — nothing is done without your approval.Local Execution: Your code never leaves your machine except for Gemini API calls.
CI/CD Pipeline
The pipeline runs on every push and pull request to main:
lint — Ruff checks code style and format
test — Pytest runs the full test suite with coverage
Self-Healing Repair — Triggers only if lint or test fails. Uses the Agent Swarm to diagnose, fix, and re-push a repair commit automatically.
build — Builds the Python package
docker — Builds the Docker image
Docker
docker compose up --buildBuilt by Karan using Gemini 2.0 Flash, LangGraph, MCP SDK, and UV.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Claude Code / MCP skills for the dev pipeline: discover, spec, design, build, ship, operate.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLM-powered code analysis, generation, debugging, and context management through MCP integration with IDEs like Cursor and Claude Desktop.MIT
- AlicenseNot gradedqualityBmaintenanceEnables multi-agent AI collaboration by connecting Claude Code, OpenAI Codex, and Google Antigravity, providing cross-model code reviews, independent second opinions, and autonomous validation through MCP tools.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, user stories, task lists, and full-stack starter projects, analyze codebases, curate context, and run multi-step software development workflows through MCP tools.42 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, map codebases, create starter projects, manage tasks, and run multi-step software development workflows through MCP tools.42 npmMIT