Releases: koriym/xdebug-mcp
v0.3.1
What's Changed
- feat: Enhanced step debugging with AI Dasein partnership approach by @koriym in #22
- feat: Add AI-optimized help documentation for all xdebug tools by @koriym in #23
- feat: Add branch coverage analysis with GraphViz visualization by @koriym in #24
- Support dynamic
xdebug.trace_output_namepatterns in trace file by @o0h in #25
New Contributors
Full Changelog: v0.2.1...v0.3.1
v0.3.0 - AI-Optimized Help & Branch Coverage Visualization
π― Highlights
AI-Optimized Help Documentation
- Comprehensive
--helpoutput for all xdebug tools with AI-first design philosophy - Clear value propositions and workflow integration for each tool
- Practical usage patterns comparing benefits vs traditional debugging methods
Branch Coverage Visualization
- GraphViz integration for visual branch coverage analysis
- Enhanced coverage insights beyond line coverage
Enhanced Debugging Experience
- Improved xdebug-coverage with automatic PHPUnit integration
- Default to
php vendor/bin/phpunit --no-coveragewhen no arguments provided - Non-invasive debugging with JSON output optimized for AI consumption
MCP Tool Improvements
- Fixed argument parsing for better Claude Code compatibility
- Improved shell escaping and validation
- All 4 slash commands (x-trace, x-debug, x-profile, x-coverage) work reliably
π Documentation
- Updated README with AI-first design philosophy
- Enhanced tool usage guidance
- Comprehensive help system across all tools
π§ Installation
composer require koriym/xdebug-mcp:^0.3Full Changelog: v0.2.1...v0.3.0
v0.2.1
π Enhanced Xdebug Detection & Vendor Filtering
This release focuses on improving Xdebug detection reliability and providing more granular control over vendor package filtering.
π― Key Features
π΅οΈ Intelligent Xdebug Detection System
- Automatic Discovery: Smart detection of Xdebug installations across multiple PHP versions
- Path Resolution: Comprehensive scanning of common installation locations
- Priority Ordering: Intelligent system path scanning with proper prioritization
- Better Diagnostics: Enhanced error reporting for Xdebug configuration issues
π¦ Enhanced Vendor Filtering
- Advanced Control: Improved
--include-vendoroption with pattern matching - Granular Filtering: Fine-grained control over vendor package inclusion/exclusion
- Wildcard Support: Pattern-based targeting (e.g.,
bear/*,symfony/console) - Backward Compatible: Maintains existing filtering behavior
π οΈ Usage Examples
# Include specific vendor packages
./bin/xdebug-trace --include-vendor="bear/resource,psr/log" script.php
# Include entire vendor namespace
./bin/xdebug-trace --include-vendor="symfony/*" script.php
# Multiple patterns
./bin/xdebug-trace --include-vendor="bear/*,doctrine/orm" script.phpπ§ Experimental Infrastructure
This release also includes experimental infrastructure for future advanced debugging capabilities:
- Basic profiler directory structure
- Development planning and architectural documentation
- Foundation for upcoming AI debugging features
π§ Improvements
- More reliable Xdebug detection across different environments
- Better vendor filtering performance and accuracy
- Enhanced CLI error messages and diagnostics
- Improved cross-platform compatibility
π Full Changelog
See CHANGELOG.md for complete details.
Improved reliability and control for PHP debugging workflows.
Release 0.2.0
Version 0.2.0 release
- Updated version to 0.2.0
- All tests passing (108 tests, 272 assertions)
- Comprehensive PHP Xdebug MCP Server functionality
0.1.0: First Stable Release
π First Stable Release
This is the first stable release of the Universal PHP Xdebug MCP Server, introducing revolutionary AI-powered debugging capabilities.
π― Key Innovation: Evidence-Based Debugging
Move from guesswork-driven to technology-driven debugging with actual runtime data analysis.
β¨ Major Features
π€ JSON Schema Support for AI Integration
--jsonflag for structured AI-optimized output- Complete JSON Schema (draft-07) with validation
- AI analysis guidelines for trace interpretation
- File size-based reading strategies for optimal AI processing
π AI-Optimized Debugging Workflow
- Evidence-based analysis using Xdebug trace data
- 30-second root cause identification vs hours of guesswork
- Non-invasive debugging - zero source code modification
- Comprehensive execution visibility with conditional breakpoints
π Complete Documentation & Integration
- GitHub Pages publication at https://koriym.github.io/xdebug-mcp/
- AI debugging principles for modern development workflows
- Practical examples showing dramatic efficiency improvements
- Professional package configuration with proper export handling
π‘οΈ Quality & Security
- Command argument escaping with
escapeshellarg() - URL validation workflow for documentation integrity
- Comprehensive error handling and input validation
- GitHub Actions CI for quality assurance
π οΈ Complete Xdebug Toolset
xdebug-debug- Conditional breakpoint debugging (NEW: JSON support)xdebug-profile- Performance profilingxdebug-trace- Execution flow analysisxdebug-coverage- Code coverage reportingxdebug-phpunit- PHPUnit integrationxdebug-mcp- MCP server for AI integration
π Real-World Impact
Before (Var_Dump Age π)
var_dump($cart); // What's in cart?
var_dump($discount); // Check discount
var_dump($total); // Why is this negative?!
die("HERE"); // Getting desperate...
// 2 hours later: still guessing...After (AI-Native Age π€)
./vendor/bin/xdebug-debug --break=checkout.php:89:$total<0 --json -- php app.php
# AI analyzes and reports in 30 seconds:
{"trace_file":"/tmp/trace.123.xt","lines":24,"size":1.2,"command":"php app.php"}π Installation
# Install stable release
composer require --dev koriym/xdebug-mcp
# Try AI-powered debugging
./vendor/bin/xdebug-debug --break='MyClass.php:42:$result==null' --json -- php app.php
# Enable MCP integration for Claude
claude mcp add xdebug php "$(pwd)/vendor/bin/xdebug-mcp"π Documentation
- Main Documentation: https://koriym.github.io/xdebug-mcp/
- AI Debugging Guide: https://koriym.github.io/xdebug-mcp/ai-debugging-with-debugger.md
- JSON Schema: https://koriym.github.io/xdebug-mcp/schemas/xdebug-debug-v1.json
The revolution starts here. Welcome to the AI-Native Age of PHP debugging! π€β¨