|
4 | 4 |
|
5 | 5 | **Debug PHP with Runtime Data — No var_dump(), No Guesswork** |
6 | 6 |
|
7 | | -Trace-based debugging for PHP, built on Xdebug. Drive the tools from the CLI, or let an AI assistant run them for you. |
| 7 | +Trace-based debugging for PHP, built on Xdebug. Drive the tools from the CLI, or let an AI assistant run the core tools through plugin, Skill, or MCP integration. |
8 | 8 |
|
9 | 9 | [](https://github.com/koriym/xdebug-mcp) |
10 | 10 | [](https://github.com/koriym/xdebug-mcp) |
@@ -32,13 +32,13 @@ Just tell your AI assistant what you want: |
32 | 32 | "UserServiceのテストカバレッジを確認して" |
33 | 33 | ``` |
34 | 34 |
|
35 | | -The AI automatically selects the appropriate tool, executes it, and analyzes the results. |
| 35 | +When connected through the plugin, Skill, or an MCP-capable client, the AI can select the appropriate tool, execute it, and analyze the results. |
36 | 36 |
|
37 | 37 | ## Requirements |
38 | 38 |
|
39 | 39 | - PHP 8.2+ |
40 | 40 | - [Xdebug 3.x](https://xdebug.org/docs/install) extension (installed, but **not** enabled by default) |
41 | | -- Optional: an AI assistant (Claude Code plugin, or any MCP-capable client) |
| 41 | +- Optional: an AI assistant (Claude Code plugin, Codex Skill, or any MCP-capable client) |
42 | 42 |
|
43 | 43 | > **💡 Performance Tip:** Keep Xdebug disabled in php.ini for daily use. This tool loads Xdebug on-demand only when needed. |
44 | 44 |
|
@@ -146,6 +146,8 @@ flowchart LR |
146 | 146 | | `xback` | Call stack at breakpoint | "Show me how we got to this error" | |
147 | 147 | | `xcompare` | Compare variable states across two runs | "Compare input 10 vs 0" or "Compare with main branch" | |
148 | 148 |
|
| 149 | +All tools in this table are available as CLI commands. MCP currently exposes the core one-shot analysis tools: `xtrace`, `xprofile`, `xstep`, `xcoverage`, and `xback`. `xcompare` is CLI-only. |
| 150 | + |
149 | 151 | ## CLI Usage |
150 | 152 |
|
151 | 153 | For direct command-line usage without AI: |
@@ -203,7 +205,7 @@ Schemas live under [docs/schemas/](docs/schemas/). AI assistants — and humans |
203 | 205 |
|
204 | 206 | ## MCP Configuration |
205 | 207 |
|
206 | | -For any MCP-capable client, register `xdebug-mcp` in that client's MCP config (e.g. `.mcp.json`): |
| 208 | +For any MCP-capable client, register `xdebug-mcp` in that client's MCP config (e.g. `.mcp.json`). MCP exposes `xtrace`, `xprofile`, `xstep`, `xcoverage`, and `xback`: |
207 | 209 |
|
208 | 210 | ```json |
209 | 211 | { |
@@ -304,7 +306,7 @@ Looking for a different approach? [kpanuragh/xdebug-mcp](https://github.com/kpan |
304 | 306 |
|
305 | 307 | ## Why "xdebug-mcp"? |
306 | 308 |
|
307 | | -This project started as an MCP (Model Context Protocol) server for AI-powered PHP debugging. MCP is still supported for any MCP-capable client, but the CLI is now the primary interface — the tools (`xstep`, `xtrace`, `xprofile`, `xcoverage`, `xback`, `xcompare`) work on their own, with or without MCP. |
| 309 | +This project started as an MCP (Model Context Protocol) server for AI-powered PHP debugging. MCP is still supported for any MCP-capable client, but the CLI is now the primary interface. The core MCP tools (`xstep`, `xtrace`, `xprofile`, `xcoverage`, `xback`) also work as standalone CLI commands; `xcompare` and `xrepl` are CLI-only tools. |
308 | 310 |
|
309 | 311 | ## Resources |
310 | 312 |
|
|
0 commit comments