Debugging PHP in Docker with an AI Agent and Xdebug

For a while now I have used LLMs to automate parts of my work. One of those parts is debugging with Xdebug. PhpStorm has an MCP server for it, but it only handles simple GET requests — so I wrote my own.

I spent a full day on a “five-minute” Docker migration

We ditched Docker Desktop for Colima — and then PHP started segfaulting. A story about a simple migration that was not simple. On the way: a free tool that was not really free, a segfault with no logs, and a kernel that breaks its own contract. It ends deep inside the Linux syscall table — with a fix you can copy in five minutes.