AI Integration — MCP Server & AI Skills#

DevOps-OS exposes all its pipeline automation tools as an MCP (Model Context Protocol) server and as AI skill definitions for Claude and OpenAI.


Available Tools#

17 tools and one prompt. For how they fit together and example conversations, see What You Can Do.

Start here: the start prompt (Start here: scan my repo) walks your assistant through scan → explain → choose → generate → verify. The server also states this flow in its MCP instructions, so most assistants scan before generating.

GoalToolWhat it returns
Understandanalyze_repoStack, hosting, existing CI and gaps, recommended next calls (local server only)
Understandaudit_github_workflowCoverage, missing capabilities and hardening findings for a workflow you paste in
Pipelinesgenerate_github_actions_workflowGitHub Actions YAML: build / test / deploy / complete / reusable / security, deploy targets, security scans, SHA pinning
Pipelinesgenerate_gitlab_ci_pipelineGitLab CI/CD pipeline (.gitlab-ci.yml)
Pipelinesgenerate_jenkins_pipelineJenkins Declarative Pipeline (Jenkinsfile)
Pipelinesgenerate_unittest_configUnit-test scaffolding
Deploy and rungenerate_k8s_configKubernetes Deployment + Service manifests
Deploy and rungenerate_argocd_configArgo CD Application and AppProject manifests
Deploy and rungenerate_sre_configsPrometheus rules, Grafana dashboard, SLO manifest
Deploy and rungenerate_deploy_preflightLocal test plan for a hosting target; no credentials
Securitygenerate_dependabot_config.github/dependabot.yml
Securitycheck_security_issuesSecurity status of the tool versions DevOps-OS manages
Workstationscaffold_devcontainerdevcontainer.json + devcontainer.env.json
Versionsget_version_config, check_version_updates, suggest_versions, update_versionsLook up, check and update managed tool versions

The JSON definitions under skills/ (for the Anthropic and OpenAI APIs) cover the original seven generator tools only; they do not include the newer tools or options. The MCP server exposes everything above.

——|——————-| | generate_github_actions_workflow | GitHub Actions workflow YAML | | generate_jenkins_pipeline | Jenkins Declarative Pipeline (Jenkinsfile) | | generate_k8s_config | Kubernetes Deployment + Service manifests | | scaffold_devcontainer | devcontainer.json + devcontainer.env.json | | generate_gitlab_ci_pipeline | GitLab CI/CD pipeline (.gitlab-ci.yml) | | generate_argocd_config | Argo CD Application and AppProject manifests | | generate_sre_configs | SRE / observability configs (Prometheus, Grafana, SLO) |


Integration Guides#

Get DevOps-OS running as an MCP server with Claude Desktop in 5 minutes:

  1. MCP Quick Start — Clone, install, configure, and generate

For detailed setup with authentication, HTTP endpoints, and production deployment:

  1. MCP Setup & Configuration — Complete reference guide with troubleshooting
  2. Environment Variables Reference — Comprehensive guide for all 18 configuration variables

ChatGPT Custom GPT (Easiest for Teams)#

Create a shared DevOps assistant for your entire team:

  1. ChatGPT Custom GPT Setup — Deploy DevOps-OS HTTP server and create a Custom GPT

OpenAI Codex (For Direct API Integration)#

Use Codex for direct code generation without web UI:

  1. OpenAI Codex Integration — Direct API integration with Codex models

Installation#

pip install -r mcp_server/requirements.txt

Running the server#

# Run as a stdio MCP server (default — for Claude Desktop and most MCP clients)
python -m mcp_server.server

# Or directly
python mcp_server/server.py

# For HTTP endpoint (ChatGPT, remote clients)
DEVOPS_OS_TRANSPORT=streamable-http python -m mcp_server.server

Connecting to Claude Desktop#

Add to claude_desktop_config.json
(~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "devops-os": {
      "command": "python",
      "args": ["-m", "mcp_server.server"],
      "cwd": "/path/to/devops_os"
    }
  }
}

Restart Claude Desktop, then ask it:

“Generate a complete GitHub Actions CI/CD workflow for a Python + Node.js project with Kubernetes deployment using Kustomize.”

“Create a Jenkins pipeline for a Python microservice with Docker build and push stages.”

“Scaffold a devcontainer for a Go + Python project with Terraform and kubectl.”


Architecture#

AI Assistant (Claude / ChatGPT)
        │  MCP / function-call request
        ▼
DevOps-OS MCP Server  ←──────────┐
        │                        │
        │  calls Python functions │
        ▼                        │
  devopsos scaffold gha          │
  devopsos scaffold gitlab  (same generators
  devopsos scaffold jenkins  used by the CLI)
  devopsos scaffold argocd        │
  devopsos scaffold sre           │
        │                        │
        ▼                        │
  Generated files ───────────────┘

Using with Claude (Anthropic API)#

Load skills/claude_tools.json as the tools parameter:

import json
import anthropic

with open("skills/claude_tools.json") as fh:
    tools = json.load(fh)

client = anthropic.Anthropic()
response = client.messages.create(
    model="claude-opus-4-5",
    max_tokens=4096,
    tools=tools,
    messages=[{
        "role": "user",
        "content": (
            "Generate a complete GitHub Actions CI/CD workflow for a "
            "Python + Node.js project with Kubernetes deployment via Kustomize."
        ),
    }],
)

for block in response.content:
    if block.type == "tool_use":
        print(f"Tool: {block.name}")
        print(f"Input: {json.dumps(block.input, indent=2)}")

Using with OpenAI (function calling)#

Load skills/openai_functions.json as the tools parameter:

import json
import openai

with open("skills/openai_functions.json") as fh:
    functions = json.load(fh)

client = openai.OpenAI()
response = client.chat.completions.create(
    model="gpt-4o",
    tools=functions,
    messages=[{
        "role": "user",
        "content": "Generate a Jenkins pipeline for a Java Spring Boot app."
    }],
)

for choice in response.choices:
    if choice.message.tool_calls:
        for tc in choice.message.tool_calls:
            print(f"Function: {tc.function.name}")
            print(f"Args: {tc.function.arguments}")

For comprehensive guidance on OpenAI integration, see:

OpenAI Codex Integration Guide — Direct API integration with examples and troubleshooting


Custom GPT / GPT Actions#

Use skills/openai_functions.json as the OpenAPI schema for a Custom GPT Action:

  1. Open ChatGPT → Create a GPT → Configure → Actions → Create new action
  2. Paste the contents of skills/openai_functions.json
  3. Set the server URL to your deployed MCP server endpoint
  4. Save and test the GPT

For detailed instructions on creating and configuring a Custom GPT, see:

ChatGPT Custom GPT Integration Guide — Complete setup, deployment, and team sharing guide


Example Prompts#

Generate a GitHub Actions workflow for a Java Spring Boot app with kubectl deployment.

Create a Jenkins pipeline for a Python microservice with Docker build and push stages.

Scaffold a devcontainer for a Go + Python project with Terraform and kubectl.

Generate Kubernetes manifests for an app called 'api-service' using image
'ghcr.io/myorg/api-service:v1.2.3' with 3 replicas on port 8080.

Create a GitLab CI pipeline with Python testing and ArgoCD deployment.

Generate SRE configs for my-service with a 99.9% availability SLO and PagerDuty alerts.