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.
Done withCursor
- 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.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: medium.com · Undated
Related use cases
Keep coding agents running autonomously for long stretches
Cursor's write-up on scaling long-running autonomous coding.
Upgrade site dependencies and frameworks with Cursor
Kent C. Dodds had Cursor's agent look up migration docs, plan and upgrade Remix v2 to React Router v7 and xstate in his site.
Turn Sentry bug reports into fix pull requests
Sentry's Seer passes root cause analysis and issue context to a Cursor Cloud Agent, which writes the fix and opens a pull request in the user's repo.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Route Linear tickets to PRs across multiple repos
A developer sends tasks via Telegram/OpenClaw into Linear, where Cyrus routes each to the right repo and model and opens PRs for review.
Run a Claude Code refactor unattended
A Claude Code agent ran 40 minutes unattended on a refactor; it worked and tests passed, but the user couldn't tell what it did in between.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.