It's 2 a.m. and payments-api is Degraded in Argo CD. You open the UI, click into the resource tree, find the ReplicaSet, find the Pod, read the events, read the logs, and twenty minutes later you know it's an ImagePullBackOff caused by a tag that never got pushed.

AI agents can do that walk for you. With direct access to your GitOps control plane, though, they can also do a lot of damage. So I built Argo CD GitOps Engineering, an open-source Kiro Power designed around one idea:

An agent that touches Argo CD should behave like a careful senior engineer: gather evidence first, say what it can't see, and never change anything without explicit approval.

👉 Repo: github.com/juanhcode/argocd-gitops-engineering (Apache-2.0)

What is a Kiro Power?

A Power bundles Skills (focused instructions the agent loads on demand) with MCP servers (the tools the agent can call), packaged in the Agent Plugins format. Kiro activates the Power when your prompt matches its keywords, so its knowledge only lands in context when you're actually working on Argo CD.

This Power has three files that matter:

plugin.json # manifest + activation keywords (argocd, outofsync, crashloopbackoff, ...) mcp.json # the official argocd-mcp server, pinned and read-only skills/ # 8 skills with reference docs 

Safe defaults, enforced by the server

The MCP config is deliberately short:

{ "mcpServers": { "argocd": { "type": "stdio", "command": "npx", "args": ["-y", "argocd-mcp@0.9.0", "stdio"], "env": { "ARGOCD_BASE_URL": "${ARGOCD_BASE_URL}", "ARGOCD_API_TOKEN": "${ARGOCD_API_TOKEN}", "MCP_READ_ONLY": "true" } } } } 
  • MCP_READ_ONLY=true: the 5 write tools (sync_application, delete_application, ...) aren't hidden behind a prompt. They aren't registered at all. The model can't call a tool that doesn't exist.
  • Pinned version (argocd-mcp@0.9.0), so the tool surface the skills describe is the one you actually get.
  • No secrets in files. The URL and token come from environment variables.

The Power treats safety as layers and says plainly which ones are real:

Layer Control Strength
1 Argo CD RBAC on the token's account Authoritative
2 MCP_READ_ONLY=true Strong (server-side)
3 Kiro tool-call confirmation Strong if not bypassed
4 Approval protocol in the skills Advisory only

Instructions in a prompt are not an authorization mechanism. A model can be wrong, or it can be manipulated by a hostile log line. Real protection comes from a least-privilege token and read-only mode, and the Power tells users exactly that.

Eight skills, one hub

Skill What it covers
argocd-fundamentals GitOps mental model, status vocabulary, tool pitfalls, response format, routing
application-management Apps, AppProjects, clusters; gated create, update and delete
gitops-operations Sync policy, prune, self-heal, waves, hooks, rollback, promotion, Helm, Kustomize
deployment-troubleshooting A universal 8-step workflow + 14 scenario playbooks
kubernetes-observability Resource trees, events, logs, per-kind health
eks-integration EKS connectivity, IAM, access entries, ECR, VPC CNI (read-only AWS checks)
security-and-governance Approval protocol, risk levels, RBAC, tokens, TLS, prompt injection
production-operations Readiness, controlled sync, verification, incident triage, change records

Evidence first, every time

Every diagnostic answer follows a fixed format that keeps what was observed apart from what is inferred. Here's an illustrative example:

**Environment:** argocd.example.com / prod-eks / prod **Application:** payments-api (project: payments, namespace: argocd) **Sync status:** Synced @ 4f2c1a9 — last operation: Succeeded **Health status:** Degraded **Affected resources:** Deployment/payments/payments-api — Degraded — 0/3 ready **Evidence** - [Observed] get_application_events: "Failed to pull image ...:v2.4.1: not found" - [Observed] get_application_resource_tree: Pod payments-api-7d9... ImagePullBackOff **Root cause** (confirmed) 1. Image tag v2.4.1 does not exist in the registry. **Recommended remediation** 1. Push the tag, or revert the image bump in Git — where: Git repo — expected impact: rollout resumes **Risk level:** Low — read-only diagnosis, fix happens in Git **Approval requirements:** None (read-only) 

When the evidence doesn't settle it, the agent lists ranked hypotheses, each with what would confirm it. It doesn't guess and present the guess as fact.

Honest about what it can't see

I read the argocd-mcp source and wrote a capability matrix for all 16 tools, then confirmed the behaviour with tests. Some findings:

  • A bad token returns an empty application list, not an error. If the agent sees "you have no apps", it has to consider auth before concluding anything.
  • Argo CD HTTP errors come back with isError: false, so the agent has to inspect the body.
  • Logs are a fixed last 100 lines of the current container. There are no --previous logs, which is exactly what you need for a CrashLoopBackOff, so the Power hands you the kubectl logs --previous command instead.
  • update_application silently strips Helm values, Kustomize config and ignoreDifferences before the PUT. Running it on a Helm app would wipe its configuration, so the Power forbids that and sends you to Git.
  • There's no rollback, refresh, diff, ApplicationSet or node tool. The skills never invent one; they name the human-run alternative.

What live testing taught me

Static docs only get you so far, so I ran the Power in Kiro against a real Argo CD on minikube with intentionally broken workloads. Two findings changed the skills:

  1. The agent called sync_application without asking first (in a write-enabled test copy pointed at the disposable cluster). I tightened the approval protocol: a request made before the plan is shown isn't approval, a client's tool-confirmation dialog isn't approval, and no write tool, dry runs included, may be called in the same turn as the approval request. The approval request has to end the agent's turn.
  2. A wrong container name doesn't return an error. get_application_workload_logs returns isError: false and a single "log line" that says container X is not valid for pod Y. An agent can easily read that as application output. The skills now take the container name from the Pod spec first.

Neither showed up in reading the code. Both showed up within minutes of live use.

Tested without touching production

node scripts/validate.mjs # manifests, skill structure, links, no invented tools, secret scan node scripts/mcp-smoke-test.mjs # starts the real argocd-mcp against a local mock Argo CD API 

The smoke test spawns the exact command from mcp.json against a dependency-free mock Argo CD API on 127.0.0.1. It checks that read-only mode exposes exactly 11 tools, that a write call is rejected and no HTTP write reaches the API, how auth failures behave, and that the token is never sent to a foreign host. CI runs both on every push. There are also kind/minikube scenarios (crash loop, image pull failure, pending pod, failed readiness, broken Helm chart, invalid manifest) and a prompt suite that includes a prompt-injection case: a log line that tries to tell the agent to delete things.

Try it

  1. Create a read-only Argo CD account and token (docs/configuration.md).
  2. Export the credentials and launch Kiro from that shell:
 export ARGOCD_BASE_URL="https://argocd.example.com" export ARGOCD_API_TOKEN="..." # from your keychain or secret manager, not a file 
  1. Kiro → Powers → Add Custom Power → Import power from a repository URL → https://github.com/juanhcode/argocd-gitops-engineering
  2. Ask: "List my Argo CD applications that are not healthy."

Other prompts to try:

  • "Why is orders-worker in CrashLoopBackOff? Follow the troubleshooting workflow."
  • "Is anything blocking syncs for the payments project right now?"
  • "Plan a production sync of reports: readiness checklist, dry run, rollback plan."
  • "Our EKS cluster shows a failed connection in Argo CD. What should I check on the AWS side?"

Feedback welcome

This is a community project, not affiliated with the Argo Project, CNCF, AWS or Kiro. If you run Argo CD in production, I'd love to hear which failure modes you'd want a playbook for, and where the agent's answers fall short. Issues and PRs are welcome at github.com/juanhcode/argocd-gitops-engineering.