Use Cursor to inspect pod logs and fix compose files
A DevOps engineer used Cursor to read production pod logs through Kubernetes MCP and to repair a broken Docker Compose setup.
- What they did
- Rajesh Sood connected Cursor to a Kubernetes MCP, then asked it in plain language for the logs from a specific production pod. Cursor fetched the logs and proposed fixes without him opening kubectl. For a broken docker-compose.yml, he enabled automatic command execution and told the agent to keep running compose checks until the errors were gone.
- How it went
- The compose file kept getting revised by the agent until a dry run finally passed. For the pod-log troubleshooting, the article does not give a sample log or a named fix.
- Tips
- He recommends keeping .env files out of Cursor’s reach if you do not want it to surface secrets. He also suggests committing frequently, since agent edits can still break things.
Try it yourself with Cursor
Connect to my Kubernetes cluster through MCP and fetch the recent logs for [pod or deployment name]. Explain what looks wrong and suggest a fix. Then inspect my docker-compose.yml for errors, propose a corrected version, and show me the diff. Pause and ask for my approval before you apply, save, send, submit, delete, or run anything that would change files or affect services.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Flag coding conflicts before agents edit
They set up a local layer that makes coding agents announce planned changes so overlapping architecture work gets caught early.
Let a background agent watch tasks and open PRs
A team keeps a server-based agent running so Cursor can monitor work and turn finished tasks into pull requests.
Let Cursor draft a project app in a 24-hour loop
A developer let Cursor work for a full day on a project tracker, and it finished with a usable but unfinished result.
Use Cursor to run Terraform through MCP
A developer used Cursor with tfmcp to plan and apply Postgres Terraform changes, then fell back to the terminal when permissions blocked the first attempt.
Use Cursor to make a custom invitation site
Fabio Zapata had Cursor assemble a local invitation site with motion, images, and page links, using prompts instead of hand-coding at first.
Turn a short ticket into a landing page
Cursor’s background agent made a pricing page from a brief spec, opened a PR, and let the developer review it before shipping.