devops-deploy-guard-mcp-server
Detects Bun as a package manager and supports projects using Bun for deployment.
Automatically detects CentOS and generates idempotent provisioning plans for system packages and core utilities.
Automatically detects Debian and generates provisioning plans for system packages and core utilities.
Provides Docker deployment planning, manages Docker containers and images, and prunes dangling images.
Inspects remote database migration state for Drizzle ORM during deployment.
Automatically detects Fedora and generates provisioning plans for system packages and core utilities.
Uses Git diffs to optimize deployments and manages Git branches and resets.
Provides a specialized tool for deploying PM2-managed applications from GitHub repositories.
Provisions and configures Let's Encrypt SSL certificates via Certbot for secure HTTPS.
Generates reverse proxy blocks mapping domains to backend ports and manages Nginx configuration.
Installs dynamic Node.js versions and supports Node.js application deployments.
Detects npm as package manager and uses it for dependency installation during deployment.
Manages PM2 process manager for running Node.js applications and provides log viewing.
Detects pnpm as package manager and supports projects using pnpm.
Checks pending Prisma migrations and manages database schema deployments.
Checks pending Sequelize migrations during deployment.
Checks pending TypeORM migrations during deployment.
Automatically detects Ubuntu and generates provisioning plans for system packages and core utilities.
Detects Yarn as package manager and supports projects using Yarn.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@devops-deploy-guard-mcp-serverplan a deployment for my Node.js app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DevOps Deploy Guard MCP Server (v1.7.0)
Production-ready, zero-knowledge AI DevOps deployment, infrastructure provisioning, self-healing execution, and persistent documentation engine for VPS servers.
devops-deploy-guard-mcp-server is an advanced Model Context Protocol (MCP) server that empowers AI coding assistants (Antigravity IDE, Claude Code/Desktop, Cursor, Kimi, etc.) to safely provision servers, configure Nginx & SSL, deploy applications, debug mid-deployment failures interactively, and maintain persistent runbooks โ without risking catastrophic production server crashes or database resets.
๐ Key Features in v1.7.0
๐ค Self-Healing Execution Engine: If a deployment command fails, the server pauses execution in a
PAUSED_AWAITING_FIXstate instead of instantly rolling back. The LLM receives full failure outputs, applies mid-deployment fixes viadiagnose_and_fix, and resumes execution seamlessly viaresume_execution.๐ Auto-Runbook Generator (
generate_project_runbook): Dynamically writes a physicalDEPLOYMENT_RUNBOOK.mdinto the user's project root containing exact manual SSH commands, Nginx blocks, SSL status, and.envlocations.๐งน Safe Resource Cleanup (
cleanup_server_resources): Checks root partition space (df -h /) and safely prunes dangling Docker images (docker image prune -f) and stale Git branches only if disk usage exceeds 70%.๐ฏ Context-Aware Conditional Deployments (
plan_dynamic_deployment): Inspects Git diffs against remote tracking branches to skip unnecessarynpm installor database migrations when manifests and schemas haven't changed.๐ก๏ธ Multi-OS Infrastructure Provisioning: Automatically detects Ubuntu, Debian, RHEL, CentOS, Fedora, and Alpine to generate idempotent provisioning plans for system packages, Node.js, PM2, Docker, UFW/Firewalld, Nginx, and Certbot SSL certificates.
๐ Two-Tier Command Sanitizer: Hard-blocks catastrophic shell commands (
rm -rf,DROP DATABASE,prisma migrate dev,:devtargets,--watch) while warning on risky operations (docker system prune,git reset --hard).
๐ Security & Protection Architecture
Security Layer | Description |
Two-Step Staged Execution | Planning tools output a |
Command Sanitizer | Statically inspects all shell strings. Blocks catastrophic commands and dev flags in production environments. |
Non-Fatal Pause Engine | Pauses failed deployments without destroying Git state, enabling LLMs to run diagnostic fix commands. |
Secret Protection |
|
Path Traversal Guard | Prevents arbitrary remote file writes outside approved project paths ( |
Automatic Gitignore | Automatically adds |
๐ Comprehensive Tool Registry (19 Tools)
1. Read-Only Inspection & Analysis
Tool Name | Description |
| Inspects OS, disk space, Docker containers, PM2 processes, Nginx sites, memory usage, and local runbook/history status. |
| Detects package managers (npm, pnpm, yarn, bun), ecosystem files, Docker configs, build targets, and exposed ports. |
| Inspects remote database migration state for Prisma, TypeORM, Sequelize, Drizzle, or custom migration scripts. |
| Performs HTTP health check requests against local or domain endpoints post-deployment. |
| Fetches tail logs from PM2 processes or Docker containers via SSH. |
2. Infrastructure Provisioning & Setup
Tool Name | Description |
| Generates package update and core build utility installation plans ( |
| Provisioning plan for dynamic Node.js versions (e.g. |
| Generates UFW or Firewalld security rules to allow SSH (22), HTTP (80), and HTTPS (443). |
| Generates reverse proxy blocks mapping domain names to local backend application ports. |
| Provisions and configures Let's Encrypt SSL certificates via Certbot for secure HTTPS traffic. |
3. Environment & Security
Tool Name | Description |
| Scans codebase and generates blank |
| Writes |
4. Planning & Execution
Tool Name | Description |
| (Recommended) Context-aware deployment plan evaluating Git diffs, ORM migrations, builds, and process restarts. |
| Specialized planning tool for Docker Compose containerized applications. |
| Specialized planning tool for PM2-managed Node.js applications. |
| Executes a generated deployment plan step-by-step with non-fatal pausing on step failure. |
5. Self-Healing Execution Engine (v1.7.0)
Tool Name | Description |
| Runs sanitized diagnostic fix commands via SSH for a paused deployment without resetting Git commit state. |
| Resumes a paused deployment plan, skipping completed steps and running remaining steps to completion. |
| Aborts a deployment plan and executes automated Git reset and service reload sequence. |
6. Maintenance & Persistent Documentation (v1.6.0)
Tool Name | Description |
| Generates a local |
| Safely prunes dangling Docker images ( |
โก Quick Start & Configuration Guide
๐ค Interactive AI Setup Wizard (Copy-Paste Prompt)
Instead of manually editing config files, copy the prompt below and paste it into your AI assistant (Antigravity IDE, Claude, Cursor, Kimi, etc.) to run an interactive setup wizard:
You are my AI DevOps Setup Assistant for devops-deploy-guard-mcp-server.
Please guide me through setting up this MCP server step-by-step by interviewing me first.
Ask me these questions in a clean list:
1. What is your VPS IP address or host domain?
2. What is your SSH username (e.g., root, ubuntu, deploy)?
3. What is the local path to your unencrypted SSH private key file (e.g., C:\Users\name\.ssh\id_rsa or ~/.ssh/id_rsa)?
4. What is your domain name (e.g., api.example.com) and admin email address for SSL?
5. Which AI IDE / MCP Client are you using (Antigravity IDE, Claude Desktop, Cursor, Kimi, etc.)?
After I answer:
- Create or update my local .devops-mcp.json config file with my responses.
- Ensure .devops-mcp.json and .deployment-history.json are listed in my .gitignore file.
- Generate the exact MCP client configuration JSON snippet formatted for my AI IDE.
- Compile the TypeScript server with `npm run build` and run `inspect_server` to verify SSH connectivity.1. Manual Installation
cd devops-deploy-guard-mcp-server
npm install
npm run build2. Configuration (.devops-mcp.json)
When launched, the server automatically creates a .devops-mcp.json file in your workspace root (and appends it to .gitignore):
{
"vps_host": "203.0.113.45",
"vps_user": "root",
"ssh_private_key_path": "/Users/yourname/.ssh/id_rsa",
"domain_name": "api.example.com",
"admin_email": "admin@example.com",
"vps_port": 22
}๐ Connecting to MCP Clients
Antigravity IDE / Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"devops-deploy-guard": {
"command": "node",
"args": ["/absolute/path/to/devops-deploy-guard-mcp-server/dist/index.js"]
}
}
}Cursor / Kimi / Stdio Clients
Command: node
Arguments: /absolute/path/to/devops-deploy-guard-mcp-server/dist/index.js
๐ Self-Healing Deployment Workflow (v1.7.0 Walkthrough)
Developer / AI requests deployment
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ plan_dynamic_deployment โ โ Analyzes diffs & builds plan
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ confirm_execution โ โ Executes step-by-step
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
โ โ
[All Steps Succeed] [Step Fails (e.g. npm peer dep)]
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Status: SUCCESS โ โ Status: PAUSED_AWAITING_FIXโ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ diagnose_and_fix โ โ LLM applies fix command
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโดโโโโโโโโโโโโโโ
โ โ
[Fix Works] [Cannot Fix]
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ
โ resume_execution โ โ rollback_execution โ
โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ๐ Operational Documentation & History
Auto-Runbook File (
DEPLOYMENT_RUNBOOK.md):Run
generate_project_runbookto generate a complete markdown runbook for human developers and handovers.
Deployment History Log (
.deployment-history.json):Every deployment attempt (success, paused, or rolled back) is automatically logged with timestamp, plan ID, status, and executed commands.
๐ ๏ธ Development & Testing
# Watch mode for development
npm run dev
# Run Vitest unit tests
npm test
# Production build
npm run build๐ License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/awais2o/devops-deploy-guard-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server