Deploy MCPCodex to production with confidence. Choose from cloud providers, self-hosted options, or edge deployments for optimal performance.
Deploy to major cloud providers with auto-scaling
Deploy on your own infrastructure
Deploy to edge locations for lowest latency
# Create production environment file
cp .env.example .env.production
# Configure required variables
MCPCODEX_API_KEY=your_production_key
DATABASE_URL=postgresql://user:pass@host:5432/db
REDIS_URL=redis://localhost:6379
NODE_ENV=production
# Build production image
docker build -t mcpcodex:latest .
# Run with Docker Compose
docker-compose -f docker-compose.prod.yml up -d
# Or run standalone
docker run -d \
--name mcpcodex \
-p 3000:3000 \
--env-file .env.production \
mcpcodex:latest
# Apply configurations
kubectl apply -f k8s/namespace.yaml
kubectl apply -f k8s/configmap.yaml
kubectl apply -f k8s/secret.yaml
# Deploy application
kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/service.yaml
kubectl apply -f k8s/ingress.yaml
# Check status
kubectl get pods -n mcpcodex
kubectl get services -n mcpcodex
# Health check endpoint
curl https://your-domain.com/health
# Response
{
"status": "healthy",
"version": "2.0.0",
"uptime": 3600,
"services": {
"database": "connected",
"redis": "connected",
"ai": "ready"
}
}
Best for: Small teams, < 10 developers
Best for: Growing teams, 10-50 developers
Best for: Large organizations, 50+ developers
Important: Never commit secrets to version control. Use environment variables or secret management services.
Time-series metrics collection and alerting
# prometheus.yml
scrape_configs:
- job_name: 'mcpcodex'
static_configs:
- targets: ['localhost:9090']
Beautiful dashboards for metrics visualization
# Import dashboard
Dashboard ID: 12345
Data Source: Prometheus
Centralized logging with Elasticsearch, Logstash, Kibana
# logstash.conf
input {
beats { port => 5044 }
}
output {
elasticsearch {
hosts => ["localhost:9200"]
}
}
MCPCodex provides built-in metrics for monitoring application health:
name: Deploy MCPCodex
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy to Production
uses: mcpcodex/deploy-action@v2
with:
api-key: ${{ secrets.MCPCODEX_KEY }}
environment: production
deploy:
stage: deploy
image: mcpcodex/deployer:latest
script:
- mcpcodex deploy --env production
environment:
name: production
url: https://app.example.com
only:
- main
Our deployment experts are ready to help you get up and running