SShortSingh.
Back to feed

Developer Builds Open-Source MCP Server to Let AI Agents Debug PHP via Xdebug in Docker

0
·2 views

A developer frustrated with the limitations of PhpStorm's built-in MCP server has released xdbg, a custom open-source MCP server designed to give AI agents full Xdebug debugging capabilities inside Docker containers. PhpStorm's native MCP server, introduced in version 2025.2, only supports GET requests and lacks header control, CLI path support, and in-container Xdebug management. The xdbg tool enables an AI agent to enable Xdebug, set breakpoints, fire real HTTP requests, step through code, and inspect runtime state autonomously. Available on GitHub under the MIT licence with a one-line install, it is compatible with AI coding clients such as Claude Code, Cursor, and any MCP-capable tool. The project was motivated by real-world debugging failures where LLMs alone produced plausible but incorrect diagnoses, highlighting the need for runtime inspection alongside static code analysis.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

LumasPDF lets Python developers create signed PDF/A-1b files in 40 lines

A developer and author of the LumasPDF SDK has demonstrated how to generate a digitally signed, PDF/A-1b compliant document using Python in just 40 lines of code. The library is installed via a standard pip wheel and requires no compiled extensions, relying instead on ctypes bindings over a native engine. It supports Windows, Linux, and macOS platforms, with the native engine bundled inside the wheel itself. The workflow handles font embedding, conformance checking, and PKCS#12 certificate-based signing in a single script. The SDK is free to download, though unlicensed output includes an evaluation watermark that a trial key can remove.

0
ProgrammingDEV Community ·

AI-Written Tests Can Pass Without Proving Anything — Here Is the Fix

When AI coding agents submit a patch, they often include tests in the same commit, creating a risk that the tests only validate themselves rather than the new behavior. A technique called the 'revert witness' addresses this by restoring production files to their pre-patch state and rerunning the test suite — if nothing fails, the tests are not actually pinning the change. Using a small tag-parser as an example, the article shows how a weak test suite stays green after reverting the patch, while a properly written suite fails on the reverted code, confirming it genuinely captures the new contract. A short Bash script, revert_witness.sh, automates this check by reading a configurable base commit and temporarily restoring original production files before running tests. The author argues this revert-witness step should be a mandatory part of both local staging and CI pipelines as AI-generated pull requests become increasingly common.

0
ProgrammingHacker News ·

GNU Radio Now Runs Directly in the Browser

GNU Radio, the open-source software-defined radio (SDR) toolkit, can now be accessed and operated directly through a web browser. The project is hosted at gnuradioworld.com, eliminating the need for local installation of the traditionally desktop-bound software. This development lowers the barrier to entry for radio enthusiasts, researchers, and developers who work with SDR technology. The announcement was shared on Hacker News, where it attracted early community attention.