{"at":"2026-11-23T05:25:36.903Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:25:37.342Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:25:37.442Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:25:37.884Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"xdebug-mcp","version":"1.0.0"}}}}
{"at":"2026-11-23T05:25:37.884Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:25:37.884Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:25:37.888Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List all active PHP debug sessions with their current state","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_sessions"},{"description":"Get detailed state of a specific debug session including current position and status","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID (uses active session if not specified)","type":"string"}},"type":"object"},"name":"get_session_state"},{"description":"Set which debug session should be the active/default session for subsequent commands","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID to set as active","type":"string"}},"required":["session_id"],"type":"object"},"name":"set_active_session"},{"description":"Close and terminate a debug session","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID to close (uses active session if not specified)","type":"string"}},"type":"object"},"name":"close_session"},{"description":"Set a breakpoint in PHP code. Supports line breakpoints and conditional breakpoints with hit counts. Can be set before a debug session starts - breakpoints will be applied when a session connects.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"condition":{"description":"Optional PHP condition expression (e.g., '$x > 10' or '$user !== null')","type":"string"},"file":{"description":"Full file path (use container path for Docker, e.g., /var/www/html/index.php)","type":"string"},"hit_condition":{"description":"Hit condition: >= (break when hits >= value), == (break on exact hit), % (break every N hits)","enum":[">=","==","%"],"type":"string"},"hit_value":{"description":"Hit count value - break after this many hits","type":"integer"},"line":{"description":"Line number for the breakpoint","exclusiveMinimum":0,"type":"integer"},"session_id":{"description":"Session ID (uses active session if not specified)","type":"string"}},"required":["file","line"],"type":"object"},"name":"set_breakpoint"},{"description":"Set a breakpoint that triggers when a specific exception is thrown. Can be set before a debug session starts.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"exception":{"default":"*","description":"Exception class name to break on (use '*' for all exceptions, or specific like 'RuntimeException')","type":"string"},"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"set_exception_breakpoint"},{"description":"Set a breakpoint that triggers when a specific function is called. Can be set before a debug session starts.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"function_name":{"description":"Function name to break on (e.g., 'myFunction' or 'MyClass::myMethod')","type":"string"},"session_id":{"description":"Session ID","type":"string"}},"required":["function_name"],"type":"object"},"name":"set_call_breakpoint"},{"description":"Remove a breakpoint by its ID. Works for both active session breakpoints and pending breakpoints.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"breakpoint_id":{"description":"The breakpoint ID to remove (session breakpoint ID or pending_* ID)","type":"string"},"session_id":{"description":"Session ID","type":"string"}},"required":["breakpoint_id"],"type":"object"},"name":"remove_breakpoint"},{"description":"Update a breakpoint (enable/disable or change hit conditions). Works for both active session and pending breakpoints.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"breakpoint_id":{"description":"The breakpoint ID to update","type":"string"},"hit_condition":{"description":"New hit condition","enum":[">=","==","%"],"type":"string"},"hit_value":{"description":"New hit count value","type":"integer"},"session_id":{"description":"Session ID","type":"string"},"state":{"description":"Enable or disable the breakpoint","enum":["enabled","disabled"],"type":"string"}},"required":["breakpoint_id"],"type":"object"},"name":"update_breakpoint"},{"description":"List all breakpoints including both active session breakpoints and pending breakpoints","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"include_pending":{"default":true,"description":"Include pending breakpoints in the list","type":"boolean"},"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"list_breakpoints"},{"description":"Continue script execution until the next breakpoint or end of script","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"continue"},{"description":"Step into the next function call, or to the next line if not a function call. This follows execution into called functions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"step_into"},{"description":"Step over to the next line in the current scope. Function calls are executed but not stepped into.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"step_over"},{"description":"Step out of the current function. Execution continues until the current function returns.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"step_out"},{"description":"Stop the debug session and terminate script execution immediately","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"stop"},{"description":"Detach from the debug session and let the script continue running without debugging","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"detach"},{"description":"Get the current call stack showing all function calls leading to the current position","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"get_stack_trace"},{"description":"Get available variable contexts (Local, Superglobals, User-defined constants) at the current position","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"},"stack_depth":{"default":0,"description":"Stack frame depth (0 = current frame)","type":"integer"}},"type":"object"},"name":"get_contexts"},{"description":"List all variables in scope with metadata (names, types, child counts). Use get_variable() to inspect specific variable values. Returns lightweight metadata for browsing the variable tree.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"context_id":{"default":0,"description":"Context ID: 0=Local variables, 1=Superglobals, 2=User constants","type":"integer"},"session_id":{"description":"Session ID","type":"string"},"stack_depth":{"default":0,"description":"Stack frame depth (0 = current frame)","type":"integer"}},"type":"object"},"name":"get_variables"},{"description":"Get a specific variable by name, including nested properties. Use PHP syntax for nested access (e.g., '$user->name', '$array[0]', '$obj->items[2]->value')","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"context_id":{"default":0,"description":"Context ID","type":"integer"},"max_depth":{"default":2,"description":"Maximum depth for nested properties","type":"integer"},"name":{"description":"Variable name with $ prefix (e.g., '$user', '$data[\"key\"]', '$obj->property')","type":"string"},"session_id":{"description":"Session ID","type":"string"},"stack_depth":{"default":0,"description":"Stack frame depth","type":"integer"}},"required":["name"],"type":"object"},"name":"get_variable"},{"description":"Set the value of a variable in the current scope","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"context_id":{"default":0,"description":"Context ID","type":"integer"},"name":{"description":"Variable name (e.g., $x, $user->name)","type":"string"},"session_id":{"description":"Session ID","type":"string"},"stack_depth":{"default":0,"description":"Stack frame depth","type":"integer"},"value":{"description":"New value as a PHP literal (e.g., 42, \"hello\", true, null)","type":"string"}},"required":["name","value"],"type":"object"},"name":"set_variable"},{"description":"Evaluate a PHP expression in the current context. Returns the result of the expression. Use for calculations, method calls, or inspecting computed values.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"expression":{"description":"PHP expression to evaluate (e.g., '$x + $y', 'count($array)', '$user->getName()', 'array_keys($data)')","type":"string"},"session_id":{"description":"Session ID","type":"string"},"stack_depth":{"default":0,"description":"Stack frame depth","type":"integer"}},"required":["expression"],"type":"object"},"name":"evaluate"},{"description":"Get the source code of a file or a specific line range","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"begin_line":{"description":"Starting line number","type":"integer"},"end_line":{"description":"Ending line number","type":"integer"},"file":{"description":"File path to get source from","type":"string"},"session_id":{"description":"Session ID","type":"string"}},"required":["file"],"type":"object"},"name":"get_source"},{"description":"Add a watch expression that will be evaluated on each break. Watch expressions persist across steps.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"expression":{"description":"PHP expression to watch (e.g., '$user->id', 'count($items)')","type":"string"}},"required":["expression"],"type":"object"},"name":"add_watch"},{"description":"Remove a watch expression","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"watch_id":{"description":"Watch ID to remove","type":"string"}},"required":["watch_id"],"type":"object"},"name":"remove_watch"},{"description":"Evaluate all watch expressions and return their current values","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"evaluate_watches"},{"description":"List all active watch expressions","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_watches"},{"description":"Add a logpoint that logs messages without stopping execution. Use {varName} placeholders for variables.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"condition":{"description":"Optional condition","type":"string"},"file":{"description":"File path","type":"string"},"line":{"description":"Line number","type":"integer"},"message":{"description":"Message template with {var} placeholders (e.g., 'User {$userId} logged in')","type":"string"}},"required":["file","line","message"],"type":"object"},"name":"add_logpoint"},{"description":"Remove a logpoint","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"logpoint_id":{"description":"Logpoint ID","type":"string"}},"required":["logpoint_id"],"type":"object"},"name":"remove_logpoint"},{"description":"Get the log output history from logpoints","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"default":50,"description":"Maximum entries to return","type":"integer"},"logpoint_id":{"description":"Specific logpoint ID (all if not specified)","type":"string"}},"type":"object"},"name":"get_logpoint_history"},{"description":"Start profiling to track memory usage and execution time","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"start_profiling"},{"description":"Stop profiling and get the results","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"stop_profiling"},{"description":"Get current profiling statistics","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_profile_stats"},{"description":"Get memory usage timeline from profiling","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_memory_timeline"},{"description":"Capture the current HTTP request context ($_GET, $_POST, $_SESSION, $_COOKIE, headers)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"capture_request_context"},{"description":"Add a step filter to skip certain files/directories during stepping (e.g., vendor code)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Description of the filter","type":"string"},"pattern":{"description":"Pattern to match (e.g., '/vendor/', '*.min.js', '/regex/')","type":"string"},"type":{"description":"include = step into, exclude = skip","enum":["include","exclude"],"type":"string"}},"required":["pattern","type"],"type":"object"},"name":"add_step_filter"},{"description":"List all step filter rules","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_step_filters"},{"description":"Get the history of function calls made during debugging","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"default":50,"description":"Maximum entries","type":"integer"},"search":{"description":"Search query to filter","type":"string"}},"type":"object"},"name":"get_function_history"},{"description":"Start tracking code coverage during debugging","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"start_coverage"},{"description":"Stop tracking code coverage and get the report","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"stop_coverage"},{"description":"Get the current code coverage report","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_coverage_report"},{"description":"Save the current debug configuration (breakpoints, watches, filters) as a named profile","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Profile description","type":"string"},"name":{"description":"Profile name","type":"string"}},"required":["name"],"type":"object"},"name":"save_debug_profile"},{"description":"Load a saved debug profile","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"Profile name to load","type":"string"}},"required":["name"],"type":"object"},"name":"load_debug_profile"},{"description":"List all saved debug profiles","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_debug_profiles"},{"description":"Export the current debug session as a report","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"default":"json","description":"Export format","enum":["json","html"],"type":"string"},"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"export_session"},{"description":"Capture a snapshot of the current debug state for the export report","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"session_id":{"description":"Session ID","type":"string"}},"type":"object"},"name":"capture_snapshot"}]}}}
