Skip to content
agentusehub

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.

Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

A DevOps engineer uses Cursor with a Kubernetes MCP to pull prod logs and suggest fixes, and to repair a broken docker-compose file.

Reported experience

  1. 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.

  2. 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.

  3. 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.

Example prompts

Try 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.
Software & DevOps

Port a Chrome extension to Safari

The author had ChatGPT take the Session Buddy extension source from Chrome, port it to Safari and install it, taking about 20 minutes.

ChatGPT