Automated DevOps lifecycle creation for any project - Multi-Cloud deployment with AI-powered optimization
An intelligent MCP (Model Context Protocol) server that analyzes your project, automatically determines optimal infrastructure requirements, and generates a complete DevOps setup with multi-cloud support (AWS, Azure, GCP), dependency mapping, and zero-config deployment.
π Major Update - Complete CLI with Interactive Mode:
- π― Interactive CLI - User-friendly guided interface with inquirer
- π³ Docker Compose Generator - Complete local development setup
- β‘ Preflight Checks - Validate environment before deployment
- π Deployment History - Track all deployments with rollback capabilities
- π Rollback Manager - Safe deployment rollbacks with recovery
- π° Cost Budget System - Real-time cost monitoring with alerts
- π§ Multi-Environment Manager - Manage dev/staging/prod environments
- π Comprehensive Testing - Full test suite for all features
- πΊοΈ Service Dependency Mapping - Auto-generate architecture diagrams + impact analysis
- π° Multi-Cloud Cost Comparison - Compare AWS vs Azure vs GCP pricing
- βοΈ Azure Deployment - Complete AKS, ACR, Azure DB support
- π GCP Deployment - Complete GKE, Artifact Registry, Cloud SQL support
- β‘ Zero-Config Deployment - Deploy in ONE command (~5 minutes!)
See NEW-FEATURES.md for detailed documentation
Automatically detects:
- 14 languages: JavaScript, TypeScript, Python, Java, Go, Rust, Ruby, PHP, C#, C++, Kotlin, Swift, Scala
- 15+ frameworks: Express, Spring Boot, Django, Flask, FastAPI, React, Next.js, Vue, NestJS, Gin, etc.
- Microservices architecture with service-level analysis
- Database requirements (PostgreSQL, MongoDB, Redis, MySQL, DynamoDB)
- Project complexity scoring (simple/moderate/complex/enterprise)
Determines optimal:
- CPU and memory requirements per service
- Replica counts and autoscaling policies
- Infrastructure sizing (Kubernetes nodes, databases)
- Multi-cloud cost estimates with recommendations
- Auto-detects dependencies by analyzing code (API calls, databases, imports)
- Generates Mermaid diagrams showing architecture
- Impact analysis with criticality scores (0-100)
- Recommendations for redundancy and monitoring
Creates production-ready:
- Kubernetes manifests (Deployments, Services, Ingress, HPA, PDB)
- Terraform configurations for AWS, Azure, or GCP
- Helm charts for package management
- ArgoCD GitOps configurations
- CI/CD pipelines (GitHub Actions, GitLab CI)
- Monitoring stack (Prometheus + Grafana + dashboards)
- Security configurations (Trivy, Falco, Kyverno, Vault, 26+ configs)
- Ansible playbooks (alternative to Terraform)
Deploy to any cloud provider:
- AWS - EKS, ECR, RDS, VPC, IAM
- Azure - AKS, ACR, Azure DB, VNet, Log Analytics
- GCP - GKE, Artifact Registry, Cloud SQL, VPC, Cloud NAT
- Auto-compare costs across all clouds
- Automatic provider detection
- ONE command to deploy entire app
- Auto-detects best cloud provider
- Completes in ~5 minutes (vs 2 hours manual)
- 8-step automated workflow with progress tracking
graph TB
subgraph "Client Layer"
A[AI Assistant/Claude]
B[Developer CLI]
end
subgraph "MCP Server Layer"
C[AutoForge MCP Server]
D[Tool Registry]
end
subgraph "Analysis Layer"
E[Project Analyzer]
F[Resource Calculator]
G[Security Analyzer]
end
subgraph "Generator Layer"
H[Kubernetes Generator]
I[Terraform Generator]
J[Helm Generator]
K[CI/CD Generator]
L[Ansible Generator]
M[ArgoCD Generator]
N[Monitoring Generator]
O[Security Generator]
end
subgraph "Output Layer"
P[YAML Configurations]
Q[Terraform Files]
R[Helm Charts]
S[CI/CD Pipelines]
end
A --> C
B --> C
C --> D
D --> E
D --> F
D --> G
E --> H
E --> I
E --> J
F --> K
E --> L
E --> M
E --> N
G --> O
H --> P
I --> Q
J --> R
K --> S
L --> S
M --> P
N --> P
O --> P
- Node.js 18+ installed
- Cloud CLI (choose one):
- AWS CLI (
aws configure) - Azure CLI (
az login) - GCP CLI (
gcloud auth login)
- AWS CLI (
- Terraform 1.0+ (for infrastructure deployment)
- kubectl 1.33+ (for Kubernetes management)
git clone https://github.com/vedantparmar12/AutoForge.git
cd AutoForgenpm installnode test-new-features.js
npm start
### Using the CLI
#### Interactive Mode (Recommended)
```bash
# Start interactive CLI
devops-cli interactive
# or
devops-cli i
The interactive CLI provides:
- π― Guided workflows - Step-by-step prompts
- π Quick deployment - One-click deploy to any cloud
- π³ Local development - Generate docker-compose files
- π° Cost management - Budget tracking and alerts
- π History tracking - View and rollback deployments
- π§ Environment management - Manage dev/staging/prod
# Analyze project
devops-cli analyze /path/to/project
# Deploy to cloud
devops-cli deploy /path/to/project --cloud aws --environment dev
# Setup local development
devops-cli local-setup /path/to/project
# View deployment history
devops-cli history --environment prod --limit 10
# Rollback deployment
devops-cli rollback dep-1234567890-abc123 --environment prod
# Check cost budget
devops-cli cost-budget --check /path/to/projectπ See CLI-GUIDE.md for complete CLI documentation
For Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"autoforge": {
"command": "node",
"args": ["/path/to/mcp-devops-automation/dist/index.js"],
"description": "Multi-cloud DevOps automation with dependency mapping"
}
}
}Analyzes project structure, detects languages, frameworks, services
await mcp.call('analyze-project', {
projectPath: '/path/to/your/project'
});Calculates optimal Kubernetes resources and cost estimates
await mcp.call('calculate-resources', {
projectPath: '/path/to/your/project'
});Generates complete DevOps setup (90+ files)
await mcp.call('generate-devops-setup', {
projectPath: '/path/to/your/project',
awsRegion: 'us-east-1',
enableMonitoring: true,
deploymentStrategy: 'gitops'
});Deploys to AWS EKS
await mcp.call('deploy-to-aws', {
projectPath: '/path/to/your/project',
awsRegion: 'us-east-1',
dryRun: true
});Maps service dependencies & generates architecture diagrams
await mcp.call('map-dependencies', {
projectPath: '/path/to/your/project'
});
// Returns:
// - Dependency graph (services, databases, relationships)
// - Mermaid diagram for visualization
// - Impact analysis with criticality scores
// - Recommendations for critical servicesCompares infrastructure costs across AWS, Azure, GCP
await mcp.call('compare-cloud-costs', {
projectPath: '/path/to/your/project'
});
// Returns:
// - Cost breakdown for all 3 clouds
// - Recommendation for cheapest option
// - Estimated savings (typically 3-10%)Generates complete Azure deployment (AKS, ACR, Azure DB)
await mcp.call('deploy-to-azure', {
projectPath: '/path/to/your/project',
awsRegion: 'eastus' // Azure region
});
// Generates: 7 Terraform files for Azure infrastructureGenerates complete GCP deployment (GKE, Artifact Registry, Cloud SQL)
await mcp.call('deploy-to-gcp', {
projectPath: '/path/to/your/project',
awsRegion: 'us-central1' // GCP region
});
// Generates: 7 Terraform files for GCP infrastructureDeploys in ONE command - auto-detects everything!
// DRY RUN (safe preview)
await mcp.call('deploy-now', {
projectPath: '/path/to/your/project'
});
// ACTUAL DEPLOYMENT
await mcp.call('deploy-now', {
projectPath: '/path/to/your/project',
options: {
cloud: 'gcp', // Optional: auto-detected if omitted
region: 'us-central1', // Optional
dryRun: false // SET TO FALSE FOR REAL DEPLOYMENT
}
});
// Completes in ~5 minutes!
// Returns: deployment URL + step-by-step progressUser: "Analyze my project and deploy to the cheapest cloud"
AI Agent:
1. analyze-project β Detects 5 services, PostgreSQL, Redis
2. calculate-resources β Determines 3 replicas, 2 vCPU each
3. compare-cloud-costs β GCP is cheapest ($298.50 vs $310.98 AWS)
4. deploy-to-gcp β Generates Terraform for GKE
5. User reviews & runs: terraform apply
User: "Just deploy my app NOW"
AI Agent:
1. deploy-now (dryRun: false) β Auto-detects, generates, deploys
2. β‘ 5 minutes later: App is live with URL!
User: "Map my service dependencies and find critical services"
AI Agent:
1. map-dependencies β Generates Mermaid diagram
2. Shows: postgres-db is CRITICAL (score: 85)
3. Recommendation: Add redundancy + monitoring
- Deployments with health checks, resource limits
- Services (ClusterIP for internal communication)
- ConfigMaps & Secrets
- Ingress (NGINX with TLS support)
- HPA (Horizontal Pod Autoscalers)
- PDB (Pod Disruption Budgets)
- ServiceAccounts with RBAC
AWS:
- EKS cluster, VPC, ECR, RDS, IAM, Load Balancer Controller
Azure:
- AKS cluster, VNet, ACR, Azure DB, Redis Cache, Log Analytics
GCP:
- GKE cluster, VPC, Artifact Registry, Cloud SQL, Memorystore, Cloud NAT
- 6+ Helm charts per project
- 7 ArgoCD applications (GitOps)
- 4 GitHub Actions workflows (CI/CD)
- 11 monitoring configs (Prometheus + Grafana)
- 26 security configurations (Trivy, Falco, Kyverno, Vault)
- 12 Ansible playbooks (alternative to Terraform)
Total: 90+ production-ready files generated!
| Cloud | Control Plane | Compute (3 nodes) | Database | Total/mo | Savings |
|---|---|---|---|---|---|
| GCP π₯ | $73 | $147 | $30 | $298.50 | Baseline |
| Azure π₯ | Free | $210 | $45 | $305 | +2.2% |
| AWS π₯ | $73 | $220 | $35 | $310.98 | +4.2% |
Estimates for moderate workload (3 services, PostgreSQL, Redis)
π‘ Typical Savings with GCP: 3-10% vs AWS
β JavaScript/TypeScript β’ Python β’ Java β’ Go β’ Rust β’ Ruby β’ PHP β’ C# β’ C++ β’ Kotlin β’ Swift β’ Scala β’ C β’ Shell
β Express β’ Spring Boot β’ Django β’ Flask β’ FastAPI β’ React β’ Next.js β’ Vue β’ NestJS β’ Gin β’ Echo β’ Fiber β’ Quarkus β’ Micronaut β’ Fastify
β PostgreSQL β’ MySQL β’ MariaDB β’ MongoDB β’ Redis β’ DynamoDB β’ ElastiCache
β AWS (EKS, ECR, RDS) β Azure (AKS, ACR, Azure DB) β GCP (GKE, Artifact Registry, Cloud SQL)
mcp-devops-automation/
βββ src/
β βββ analyzers/
β β βββ project-analyzer.ts # Language/framework detection
β β βββ dependency-mapper.ts # β NEW: Dependency mapping
β βββ calculators/
β β βββ resource-calculator.ts # Resource optimization
β βββ generators/
β β βββ kubernetes-generator.ts
β β βββ terraform-generator.ts # AWS Terraform
β β βββ azure-generator.ts # β NEW: Azure Terraform
β β βββ gcp-generator.ts # β NEW: GCP Terraform
β β βββ helm-generator.ts
β β βββ argocd-generator.ts
β β βββ cicd-generator.ts
β β βββ monitoring-generator.ts
β β βββ security-generator.ts
β β βββ ansible-generator.ts
β βββ tools/
β β βββ devops-tools.ts # MCP tool implementations
β β βββ zero-config-deployer.ts # β NEW: One-command deploy
β βββ types/
β β βββ index.ts # TypeScript definitions
β βββ index.ts # MCP server entry
βββ dist/ # Compiled JavaScript
βββ test-new-features.js # Comprehensive test suite
βββ README.md # This file
βββ NEW-FEATURES.md # β NEW: Detailed feature docs
βββ ENHANCEMENT-PLAN.md # Future roadmap
βββ SECURITY-FEATURES.md # Security documentation
βββ package.json
graph TB
subgraph System["MCP DevOps Automation Server v2.0"]
PA[Project Analyzer]
RC[Resource Calculator]
DM[Dependency Mapper<br/>NEW]
PA --> Gen
RC --> Gen
DM --> Gen
subgraph Gen["Generators"]
K8s["β’ Kubernetes (Deployments, HPA, PDB, Ingress)"]
TF["β’ Terraform (AWS, Azure, GCP) - NEW Multi-Cloud"]
Helm["β’ Helm Charts (6+ charts per project)"]
Argo["β’ ArgoCD GitOps (automated deployment)"]
CI["β’ CI/CD Pipelines (GitHub Actions, GitLab)"]
Mon["β’ Monitoring (Prometheus, Grafana, dashboards)"]
Sec["β’ Security (Trivy, Falco, Kyverno, Vault)"]
Ans["β’ Ansible Playbooks (alternative orchestration)"]
end
Gen --> ZCD[Zero-Config Deployer - NEW<br/>Auto-detect β Generate β Deploy in 5 minutes]
end
ZCD --> Cloud
subgraph Cloud["Multi-Cloud Deployment"]
EKS[AWS EKS]
AKS[Azure AKS]
GKE[GCP GKE]
end
style System fill:#e1f5ff,stroke:#0066cc,stroke-width:3px
style Gen fill:#fff4e6,stroke:#ff9800,stroke-width:2px
style ZCD fill:#e8f5e9,stroke:#4caf50,stroke-width:2px
style Cloud fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
style DM fill:#fff9c4,stroke:#fbc02d,stroke-width:2px
style TF fill:#fff9c4,stroke:#fbc02d,stroke-width:2px
style ZCD fill:#fff9c4,stroke:#fbc02d,stroke-width:2px
# Build project
npm run build
# Test all 9 MCP tools
node test-new-features.js
# Output:
# β
Service Dependency Mapping - WORKING
# β
Multi-Cloud Cost Comparison - WORKING
# β
Deploy to Azure - WORKING
# β
Deploy to GCP - WORKING
# β
Zero-Config Deployment - WORKINGnpm run lint
Output:
{
"projectName": "express-api",
"framework": "express",
"version": "4.18.0",
"serviceType": "api",
"hasDatabase": true,
"databaseType": "mongodb",
"port": 3000,
"buildCommand": "npm run build",
"dependencies": {
"production": 15,
"development": 8
}
}Solution: Ensure project path is absolute and contains source code
Solution:
- AWS:
aws configure - Azure:
az login - GCP:
gcloud auth login
Solution: Ensure project has been analyzed first with analyze-project
Solution: Check cloud CLI is configured and has proper permissions
- NEW-FEATURES.md - Detailed guide for 5 new features
- ENHANCEMENT-PLAN.md - Future roadmap (20+ features)
- SECURITY-FEATURES.md - Security configurations
- SETUP.md - Detailed setup instructions
- CICD-WORKFLOW.md - CI/CD documentation
| Metric | Before (v1.0) | After (v2.0) | Improvement |
|---|---|---|---|
| Deployment Time | 2 hours | 5 minutes | -96% β‘ |
| Cloud Options | AWS only | AWS + Azure + GCP | +200% π |
| Cost Visibility | AWS only | All clouds compared | +200% π° |
| Architecture Visibility | None | Dependency maps | β πΊοΈ |
| MCP Tools | 4 | 9 | +125% π |
| Generated Files | 70 | 90+ | +29% π¦ |
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Run linting and tests
- Submit a pull request
See CONTRIBUTING.md for detailed guidelines.
- Follow TypeScript best practices
- Write comprehensive tests
- Document all functions
- Use meaningful variable names
- Follow existing code style
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Model Context Protocol (MCP)
- Multi-cloud Terraform modules from HashiCorp community
- Inspired by GitOps and FinOps best practices
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full docs in repository
If you find this project useful, please consider giving it a star! β
Made with β€οΈ by the DevOps Automation Team
Deploy to any cloud in minutes, not days - with AI-powered optimization and dependency mapping.
v2.0 | 9 MCP Tools | Multi-Cloud | Zero-Config | Production-Ready