Skip to content

talkops-ai/argo-rollout

v0.2.1Apache-2.0

Progressive delivery for Kubernetes with Argo Rollouts — canary, blue-green, Deployment-to-Rollout migration, Prometheus analysis gating, experiments, and rollout troubleshooting.


Let your AI assistant run progressive delivery with Argo Rollouts: move Deployments to Rollouts, run canary and blue-green releases, gate them on Prometheus metrics, and recover when something goes wrong.

What you get

  • 15 MCP tools (3 read-only) that work against your live Argo Rollouts setup
  • 13 resources your assistant can read for context, under argorollout://
  • 4 Agent Skills: step-by-step playbooks that teach your assistant how to use the tools well
  • Safe by default: only read-only tools are loaded until you turn on writes, and changes are previewed or confirmed before they happen

Quick start

You'll need:

  • Python 3.12+ and uv, or Docker
  • Access to a Kubernetes cluster with Argo Rollouts installed
  • Optional: a Prometheus URL for metric comparisons and analysis

1. Add the server to your MCP client. For Claude Desktop, Cursor, Windsurf, and most other clients, add this to your MCP config file:

{
  "mcpServers": {
    "argo-rollout": {
      "command": "uvx",
      "args": [
        "--from",
        "talkops-argo-rollout-mcp-server",
        "argo-rollout-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "/path/to/your/kubeconfig",
        "PROMETHEUS_URL": "http://prometheus.monitoring:9090"
      }
    }
  }
}

Using Claude Code? Run this instead:

claude mcp add argo-rollout -e KUBECONFIG=/path/to/your/kubeconfig -e PROMETHEUS_URL=http://prometheus.monitoring:9090 -- uvx --from talkops-argo-rollout-mcp-server argo-rollout-mcp-server

uvx downloads talkops-argo-rollout-mcp-server from PyPI and runs it, so there's nothing else to install. Prefer a normal install? Run pip install talkops-argo-rollout-mcp-server and use argo-rollout-mcp-server as the command.

Prefer Docker? Pull talkopsai/argo-rollout-mcp-server from Docker Hub—no Python setup needed:

{
  "mcpServers": {
    "argo-rollout": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_TRANSPORT=stdio",
        "-v",
        "/path/to/your/kubeconfig:/app/.kube/config:ro",
        "-e",
        "PROMETHEUS_URL",
        "talkopsai/argo-rollout-mcp-server:latest"
      ],
      "env": {
        "PROMETHEUS_URL": "http://prometheus.monitoring:9090"
      }
    }
  }
}

2. Restart your client and try asking:

  • "Is the checkout Deployment ready to migrate to an Argo Rollout?"
  • "Start a canary for checkout with image v2.4.0 and pause at 20%."
  • "My rollout is stuck in Degraded. What happened?"

Allowing changes

Out of the box the server is read-only. To let your assistant make changes (creating, converting, promoting, aborting, and deleting rollouts, analysis templates, and experiments), add "--allow-write" to args (or pass -e MCP_ALLOW_WRITE=true to docker run). Even then, changes are previewed first and destructive actions ask for confirmation.

Configuration

Set these as environment variables (the env block in your client config, or -e with docker run) or pass the matching flag.

VariableFlagDefaultWhat it does
K8S_KUBECONFIG / KUBECONFIG--kubeconfig~/.kube/configKubeconfig file to use
K8S_CONTEXT--contextcurrent contextKubernetes context to use
PROMETHEUS_URL--prometheus-urlhttp://prometheus:9090Prometheus for metric checks
MCP_ALLOW_WRITE--allow-writefalseEnable tools that change your cluster
MCP_TOOLSETS--toolsetsallLimit tools: rollouts, migration, analysis, diagnostics, readonly
MCP_TRANSPORT--transportstdiostdio or http
MCP_PORT--port8768Port when using HTTP

Run uvx --from talkops-argo-rollout-mcp-server argo-rollout-mcp-server --help to see every option.

Running over HTTP

To share one server between several clients or run it remotely, start it in HTTP mode with Docker or uvx:

# With Docker (starts in HTTP mode by default)
docker run --rm -p 8768:8768 \
  -v ~/.kube/config:/app/.kube/config:ro \
  -e PROMETHEUS_URL=http://prometheus.monitoring:9090 \
  talkopsai/argo-rollout-mcp-server:latest

# Or with uvx
MCP_TRANSPORT=http MCP_PORT=8768 uvx --from talkops-argo-rollout-mcp-server argo-rollout-mcp-server

Then point your client at http://localhost:8768/mcp:

{
  "mcpServers": {
    "argo-rollout": {
      "url": "http://localhost:8768/mcp"
    }
  }
}

Agent Skills

Skills live in skills/. Each one is a SKILL.md playbook (plus optional references/ and offline scripts/) that teaches your AI assistant how to do a job safely, while the MCP server does the actual work. Tools are the hands, skills are the know-how.

To use them, copy the folders into your assistant's skills directory, for example:

git clone https://github.com/talkops-ai/talkops-mcp.git
cp -r talkops-mcp/src/argo-rollout-mcp-server/skills/* ~/.claude/skills/

This folder is also a portable Agent Plugin (plugin.json + mcp.json + skills/), so plugin-aware clients can load the server and skills together.

SkillUse it to
onboarding-and-migrating-to-argo-rolloutsCheck a Deployment and move it to a Rollout, including zero-downtime migrations.
progressing-argo-rolloutsRun canary, blue-green, and multi-cluster rollouts step by step.
gating-rollouts-with-analysis-and-experimentsUse Prometheus analysis and experiments to decide whether a rollout continues.
troubleshooting-argo-rolloutsDiagnose degraded, paused, or aborted rollouts and fix them.

Reference

All 15 tools

ToolAccessWhat it does
argo_compare_canary_metricsReadCompare live Prometheus HTTP error rate, latency (P95/P99), and RPS between stable and canary Services.
argo_configure_analysis_templateWriteCreate (or preview) an AnalysisTemplate/ClusterAnalysisTemplate and link it to a Rollout.
argo_configure_rollout_strategyWriteConfigure or repair Rollout strategy steps, Services, and traffic routing.
argo_convert_deployment_to_rolloutWriteConvert a live Kubernetes Deployment to an Argo Rollout (<= 8 parameters).
argo_convert_rollout_to_deploymentWriteReverse-migrate a live Argo Rollout back to a standard Kubernetes Deployment.
argo_create_experimentWriteCreate a standalone Argo Experiment for baseline vs. canary comparison.
argo_create_rolloutWriteCreate a new Argo Rollout for progressive delivery (<= 8 parameters).
argo_delete_analysis_templateWrite (destructive)Permanently delete an AnalysisTemplate or ClusterAnalysisTemplate.
argo_delete_experimentWrite (destructive)Permanently delete an Argo Experiment and its ephemeral ReplicaSets.
argo_delete_rolloutWrite (destructive)Permanently delete an Argo Rollout (blocks if workloadRef Deployment has 0 replicas).
argo_diagnose_rolloutReadCollect a single-call diagnostic report with deterministic diagnosis codes for a Rollout.
argo_manage_legacy_deploymentWrite (destructive)Scale, delete, or configure workloadRef scale-down on a legacy Deployment after Rollout migration.
argo_manage_rollout_lifecycleWrite (destructive)Execute a progressive delivery lifecycle action on an active Rollout.
argo_set_rollout_imageWriteUpdate the container image on an existing Argo Rollout to trigger a rollout cycle.
argo_validate_deployment_readinessReadValidate whether a live Kubernetes Deployment is ready for Argo Rollouts migration.

All 13 resources

ResourceWhat it returns
argorollout://cluster/contextsGet active and available kubeconfig contexts (no credentials).
argorollout://cluster/healthGet overall cluster node readiness and capacity.
argorollout://cluster/namespacesGet list of namespaces in the cluster.
argorollout://metrics/prometheus/statusGet Prometheus connectivity status.
argorollout://rollouts/listList all rollouts across namespaces with health scores.
argorollout://server/capabilitiesGet server capabilities, write mode, enabled toolsets, and CRD availability.
argorollout://analysistemplates/{namespace}List namespace AnalysisTemplates and ClusterAnalysisTemplates.
argorollout://experiments/{namespace}/{name}/statusGet Argo Experiment status.
argorollout://history/{namespace}/{deployment}Get ReplicaSet revision history and status conditions for a Rollout.
argorollout://metrics/{namespace}/{service}/summaryGet real Prometheus metrics for a service, or explicit unavailable status (fixes B9 & B12).
argorollout://rollouts/{namespace}/{name}/analysisrunsGet the 5 most recent AnalysisRuns for a Rollout.
argorollout://rollouts/{namespace}/{name}/detailGet concise Rollout status (phase, step, weights, hashes, healthScore, conditions) without YAML bloat.
argorollout://rollouts/{namespace}/{name}/manifestGet sanitized YAML manifest for a Rollout (strips managedFields and redacts literal env values).

Development

git clone https://github.com/talkops-ai/talkops-mcp.git
cd talkops-mcp/src/argo-rollout-mcp-server
uv sync --dev
uv run pytest
uv run argo-rollout-mcp-server --help

Get help

License

Apache 2.0. See LICENSE.