PHP code example of ikarolaborda / php-xdebug-mcp
1. Go to this page and download the library: Download ikarolaborda/php-xdebug-mcp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ikarolaborda / php-xdebug-mcp example snippets
bash
composer bash
git clone https://github.com/ikarolaborda/php-xdebug-mcp.git
cd php-xdebug-mcp
composer install
jsonc
// Claude Code ~/.claude.json
{
"mcpServers": {
"php-xdebug-mcp": {
"command": "php",
"args": ["/abs/path/to/php-xdebug-mcp/bin/php-xdebug-mcp"],
"env": {
"XDEBUG_MCP_LOG_PATH": "/tmp/php-xdebug-mcp.log",
"XDEBUG_MCP_SAFETY_MODE": "control"
}
}
}
}