Getting Started with DevOps-OS MCP Server#

Welcome! DevOps-OS MCP Server is the Model Context Protocol implementation that connects AI assistants (Claude, ChatGPT, etc.) with DevOps-OS generators.

πŸ“Œ About the Two Projects

  • DevOps-OS MCP (this repo): MCP server for AI assistant integration
  • DevOps-OS CLI (see cloudengine-labs/devops_os): Original command-line tool

Both share the same core scaffold modules. Choose based on your use case:

  • Use MCP if you want to integrate with Claude, ChatGPT, Cursor, or other AI assistants
  • Use CLI if you want to run generators in scripts, pipelines, or local automation

What is DevOps-OS MCP?#

DevOps-OS MCP is a toolkit that generates production-ready CI/CD pipelines, Kubernetes manifests, infrastructure hardening baselines, and SRE monitoring configs β€” through conversational AI using the MCP server.

Ask Claude or ChatGPT:

"Generate a complete GitHub Actions CI/CD workflow for a Python Flask API with Docker build, pytest tests, and deployment to Kubernetes."

You get production-ready YAML in seconds.

CategoryWhat You Can Generate
CI/CDGitHub Actions, GitLab CI, Jenkins workflows
GitOps / DeployArgoCD Applications, Flux CD Kustomizations
ContainersDocker configs, Helm charts
Hardening / ComplianceKyverno policies, InSpec profiles, Checkov checks
SRE / ObservabilityPrometheus alert rules, Grafana dashboards, SLO configs
Unit Testingpytest, Jest, Vitest, Mocha, Go test scaffolds
Dev EnvironmentDev container configuration

πŸ‘‹ New to DevOps-OS? Start Here#

Not familiar with DevOps terms? Read the Beginner’s Guide first β€” it explains concepts in plain English with real-world analogies.


Prerequisites#

RequirementWhy
Python 3.10+Runs the MCP server
pipInstalls Python dependencies
GitClones the repo
Claude Desktop or ChatGPTThe AI assistant you’ll use to generate configs

Quick Start: 5 Minutes to First Generated Config#

Step 1: Clone and Install#

git clone https://github.com/chefgs/devops_os_mcp.git
cd devops_os_mcp

# Set up Python environment
python3 -m venv .venv
source .venv/bin/activate  # macOS / Linux
# .venv\Scripts\activate   # Windows (cmd)

# Install MCP server dependencies
pip install -r mcp_server/requirements.txt

Step 2: Configure Claude Desktop (or ChatGPT)#

For Claude Desktop:

  1. Get your repo path: pwd (copy output)
  2. Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  3. Add this config:
{
  "mcpServers": {
    "devops-os": {
      "command": "python",
      "args": ["-m", "mcp_server.server"],
      "cwd": "/your/repo/path/here"
    }
  }
}
  1. Restart Claude Desktop. You’ll see a wrench icon πŸ”§ at the bottom right.

For ChatGPT or other MCP clients:

See MCP Setup & Configuration for detailed instructions.

Step 3: Generate Your First Config#

Ask Claude:

Generate a GitHub Actions workflow for a Python Flask API with:
- Lint and test stages (using pytest)
- Docker build and push to Docker Hub
- Deployment to Kubernetes

Done! Claude will generate the complete workflow YAML.


🎯 Example Prompts to Try#

Once connected, try these prompts:

What You WantPrompt
GitHub Actions WorkflowGenerate a GitHub Actions CI/CD workflow for a Python project with Docker build and deployment to AWS
Jenkins PipelineCreate a Declarative Jenkins Pipeline for a Java Spring Boot app with Maven build and ArgoCD deployment
Kubernetes ManifestsGenerate Kubernetes manifests for a Node.js microservice with 3 replicas and a LoadBalancer service
SRE DashboardsGenerate Prometheus alert rules and Grafana dashboards for a microservice with 99.9% SLO
Hardening PoliciesGenerate Kyverno policies for a production Kubernetes cluster based on CIS Benchmarks
Dev ContainerScaffold a dev container for Python + Go development with Terraform, kubectl, and k9s

Learn More About DevOps-OS Philosophy#

Process-First SDLC Philosophy β†’

Understand why each generator exists and how it maps to software development best practices.

See the Process-First guide for the full reference.


3 β€” Generate your first CI/CD pipeline#

All scaffold generators are subcommands of the unified devopsos scaffold command. Use --help on any subcommand to see all options.

GitHub Actions#

python -m cli.devopsos scaffold gha --name my-app --languages python,javascript --type complete

Output: .github/workflows/my-app-complete.yml

GitLab CI#

python -m cli.devopsos scaffold gitlab --name my-app --languages python --type complete

Output: .gitlab-ci.yml

Jenkins#

python -m cli.devopsos scaffold jenkins --name my-app --languages java --type complete

Output: Jenkinsfile


4 β€” Generate Kubernetes / GitOps configs#

# ArgoCD Application CR + AppProject
python -m cli.devopsos scaffold argocd --name my-app \
       --repo https://github.com/myorg/my-app.git \
       --namespace production
# Output: argocd/application.yaml + argocd/appproject.yaml

# Flux CD configs
python -m cli.devopsos scaffold argocd --name my-app --method flux \
       --repo https://github.com/myorg/my-app.git
# Output: flux/ directory

5 β€” Generate infrastructure hardening baselines#

# Kubernetes policy baselines
python -m cli.devopsos scaffold hardening --standard cis-k8s --type kyverno --environment production

# Operating system compliance profiles
python -m cli.devopsos scaffold hardening --standard cis-rhel9 --type inspec

Output: hardening/ directory containing Kyverno policies, InSpec profiles, Checkov checks, and a compliance mapping file.

See Infrastructure Hardening for supported standards and validation examples.


6 β€” Generate SRE configs#

python -m cli.devopsos scaffold sre --name my-app --team platform

Output: sre/ directory containing:

  • alert-rules.yaml β€” Prometheus PrometheusRule CR
  • grafana-dashboard.json β€” Grafana importable dashboard
  • slo.yaml β€” Sloth-compatible SLO manifest
  • alertmanager-config.yaml β€” Alertmanager routing stub

7 β€” Generate unit test configs#

# Python β€” generates pytest.ini, conftest.py, and a sample test file
python -m cli.devopsos scaffold unittest --name my-app --languages python

# JavaScript with Jest
python -m cli.devopsos scaffold unittest --name my-app --languages javascript --framework jest

# TypeScript with Vitest
python -m cli.devopsos scaffold unittest --name my-app --languages typescript --framework vitest

# Multi-stack (Python + JavaScript + Go) in one command
python -m cli.devopsos scaffold unittest --name my-platform --languages python,javascript,go

See CLI Reference for all options and output file paths.


8 β€” Interactive wizard (all-in-one)#

python -m cli.devopsos init              # interactive project configurator
python -m cli.devopsos scaffold gha      # scaffold GitHub Actions
python -m cli.devopsos scaffold gitlab   # scaffold GitLab CI
python -m cli.devopsos scaffold jenkins  # scaffold Jenkins
python -m cli.devopsos scaffold argocd   # scaffold ArgoCD / Flux
python -m cli.devopsos scaffold hardening # scaffold hardening baselines
python -m cli.devopsos scaffold sre      # scaffold SRE configs
python -m cli.devopsos scaffold cicd     # scaffold GHA + Jenkins in one step
python -m cli.devopsos scaffold unittest # scaffold unit test configs

9 β€” Use with an AI assistant#

Use DevOps-OS as an MCP server in Claude Desktop or ChatGPT for seamless integration.

For Claude Desktop (5-minute setup):

pip install -r mcp_server/requirements.txt

Then see MCP Quick Start for step-by-step instructions.

For ChatGPT, HTTP endpoints, and production deployment: See MCP Setup & Configuration for detailed setup guide.

Via API (Alternative β€” Direct API Calls)#

Load tools from skills/ directory and call Claude or OpenAI APIs directly:


10 β€” Next steps#

I want to…Read
Use MCP with Claude DesktopMCP Quick Start (5 minutes)
Set up MCP for ChatGPT, HTTP, productionMCP Setup & Configuration (detailed)
Understand the Process-First philosophyProcess-First guide
See every CLI option and output pathCLI Reference
Generate infrastructure hardening baselinesInfrastructure Hardening
Deep-dive GitHub ActionsGitHub Actions
Deep-dive GitLab CIGitLab CI
Deep-dive JenkinsJenkins
Learn ArgoCD integrationGitOps & ArgoCD
Set up SRE monitoring configsSRE Configuration
Set up the dev containerDev Container
Explore all AI integration optionsAI Integration Overview