AI-native CloudFormation/Terraform generator with 99.5% first-deploy accuracy
The MCP CloudFormation Builder is the core infrastructure orchestration engine that powers DeveloperLabs AI products. It provides:
- CloudFormation Generation: AI-powered template generation from GitHub repositories
- Self-Healing System: Automatic error detection and fixing via pattern database
- MCP Orchestration: Model Context Protocol integration for Claude-powered infrastructure
- Pattern Database: Network-effects driven accuracy improvement (99.5%+ success rate)
- Terraform Support: Multi-IaC format generation
- Cost Estimation: AWS pricing API integration
This codebase contains DeveloperLabs AI's proprietary orchestration engine. It is NOT distributed to white-label clients. External products (lead-magnet, ISV demo) call this via internal API.
External Products (lead-magnet, ISV demo)
β
Internal API (/api/internal/*)
β
MCP CloudFormation Builder (THIS REPO)
βββ CloudFormation Generator
βββ Self-Healing Engine
βββ Pattern Database
βββ RAG System
βββ AWS Deployment
- Node.js 18+
- Supabase account
- AWS account with appropriate permissions
- Anthropic API key
# Clone repository
cd ~/Projects/mcp-cloudformation-builder
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your credentials
# Run database migrations
# (Connect to your Supabase project first)
# Start development server
npm run devThe API will be available at http://localhost:3001
These endpoints are for internal use by other DeveloperLabs products only. They require INTERNAL_API_SECRET authentication.
Generate CloudFormation template from GitHub repository.
Request:
{
"repository_url": "https://github.com/user/repo",
"environment": "dev" | "staging" | "prod",
"region": "us-east-1",
"partner_id": "uuid",
"user_id": "uuid",
"options": {
"enable_healing": true,
"use_pattern_db": true,
"cost_analysis": true
}
}Response:
{
"success": true,
"template": "AWSTemplateFormatVersion: '2010-09-09'...",
"metadata": {
"accuracy_score": 99.5,
"healing_applied": false,
"pattern_db_hit": true,
"generation_time_ms": 850,
"estimated_cost": {
"monthly": 247.50,
"currency": "USD"
}
}
}generator.ts- Main generation logicvalidator.ts- AWS template validationhealer.ts- Kiro self-healing engineorchestrator.ts- MCP/SpecKit orchestration
pattern-detector.ts- Error pattern recognitionauto-fix-generator.ts- Automatic fix generationintelligence-report-generator.ts- Analysis and insights
analyzer.ts- Repository structure analysisgithub-api.ts- GitHub API integration
sdk-utils.ts- AWS SDK utilitiespricing.ts- AWS Pricing APIpricing-models.ts- Cost calculation logic
cloudformation_templates- Generated templatestemplate_deployment_logs- Deployment trackingtemplate_auto_fixes- Self-healing patternsrepository_version_tracking- SpecKit cacheerror_solutions- Pattern database (CRITICAL - Network effects moat)
pricing_cache- AWS pricing datauser_github_analyses- Analysis historyterraform_generations- Terraform templatescredit_system- Usage tracking
npm testnpm run build
npm startSee .env.example for required environment variables.
- CloudFormation generation accuracy: >99.5%
- API response time: <2 seconds (P95)
- Pattern database hit rate: >80%
- Self-healing success rate: >95%
- API calls per day
- Cost per generation
- Error rate: <0.5%
- Platform: Vercel (Next.js API routes)
- Database: Supabase (PostgreSQL)
- AWS: For deployment testing and pricing
- Domain:
api-internal.developerlabs.ai(internal only)
- Push to
mainbranch - Vercel auto-deploys
- Run database migrations on production Supabase
- Verify internal API endpoints
- Update
INTERNAL_API_SECRETin consuming services
- Internal API requires
INTERNAL_API_SECRETheader - Database uses Row-Level Security (RLS)
- AWS credentials stored in environment variables (never in code)
- All API calls logged for audit trail
Proprietary - DeveloperLabs AI
For internal support: clance@developerlabs.ai
Built with β€οΈ by DeveloperLabs AI