Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By koriymv1.0.0MITIn 1 marketplace
Finds why PHP code misbehaves by stopping at breakpoints and recording the stack, variables and execution trace. Needs PHP 8.2+ and Xdebug 3.x installed.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 marketplace, most starred first
xdebug, debugging, profiling, code-coverage, execution-trace, step-debugging, coverage, trace
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Debug PHP with runtime data. No var_dump(), no guesswork.
One command runs your script under Xdebug and reports what happened: the stack, the variables, the trace. Your AI assistant reads it as schema-backed JSON; see the CLI reference for which tools need --json.

Requires PHP 8.2+ and Xdebug 3.x. Keep Xdebug disabled in php.ini; the tools load it only when they run.
composer global require koriym/xdebug-mcp
"$(composer global config bin-dir --absolute --quiet)/check-env"
Claude Code — install the plugin, which bundles the Skill:
/plugin marketplace add koriym/xdebug-mcp
/plugin install xdebug@xdebug-mcp
Codex CLI — install the Skill:
tmp=$(mktemp -d) \
&& git clone --depth 1 https://github.com/koriym/xdebug-mcp.git "$tmp/xdebug-mcp" \
&& mkdir -p ~/.codex/skills \
&& cp -r "$tmp/xdebug-mcp/skills/xdebug" ~/.codex/skills/ \
&& rm -rf "$tmp"
Other MCP clients (e.g. Claude Desktop) — register the MCP server.
Then just ask:
"Debug script.php and find why $user is null at line 42"
"api.phpのパフォーマンスボトルネックを見つけて"
| Tool | What it does | Example |
|---|---|---|
xstep | Stop at a line, record the stack and variables | xstep --break='app.php:42' -- php app.php |
xtrace | Record the execution flow | xtrace -- php app.php |
xprofile | Find where time and memory go | xprofile -- php api.php |
xcoverage | Show which lines ran | xcoverage -- vendor/bin/phpunit |
xback | Show how execution reached a line | xback --break='app.php:50' -- php app.php |
xcompare | Diff variables between two runs | xcompare --break='calc.php:25' --run-a='php calc.php 10' --run-b='php calc.php 0' |
Each tool is a one-shot CLI command and an MCP tool. Vendor code is left out by default. See the CLI reference for options and output.
git clone --depth 1 https://github.com/koriym/xdebug-mcp.git && cd xdebug-mcp
composer install
./bin/xstep --break="demo/buggy.php:34" -- php demo/buggy.php
./bin/xprofile -- php demo/slow.php
./bin/xtrace -- php demo/buggy.php
Or ask your AI: "Debug demo/buggy.php and find the bugs".
When you want to look around yourself, xrepl stops at the breakpoint and takes commands: p to print, s/o to step, r to run again from the start.
xrepl --break="demo/buggy.php:34" -- php demo/buggy.php

The project started as an MCP server, hence the name. The CLI is now the primary interface. For session-based step debugging over MCP, see kpanuragh/xdebug-mcp.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub koriym/xdebug-mcp --plugin xdebugPlugins from other owners that cover similar ground