Software & DevOpsDone with Cursor
Debug prod pods and docker-compose with Cursor
A DevOps engineer uses Cursor with a Kubernetes MCP to pull prod logs and suggest fixes, and to repair a broken docker-compose file.
- What They Did
- With a Kubernetes MCP enabled in Cursor, Rajesh Sood asks in plain language for the logs of a named prod pod. Cursor pulls them and suggests fixes without him running kubectl. For a broken docker-compose.yml, he turned on the agent setting that runs commands automatically. He told it to keep retrying a compose dry-run until the build errors cleared.
- How It Went
- The author says the agent iterated on its own until the compose file passed. The article gives no numbers, and no example output from the prod log debugging.
- Worth Knowing
- He says Cursor once hallucinated secrets from a .env file; adding .env to .cursorignore fixed it. He also advises committing often, because agent changes can go wrong.
Try it yourself with Cursor
Connect to my Kubernetes cluster via MCP, pull recent logs for [pod/deployment name], diagnose the issue, and suggest a fix. Also check my docker-compose.yml for errors and propose corrected version, showing me the diff before applying any changes.