Xdebug MCP
未认领MCP server for PHP Xdebug debugging - enables AI-assisted PHP debugging through the Model Context Protocol with Unix socket and TCP support
01 / 选择客户端
03 / 添加配置
claude mcp add --transport stdio 'xdebug-mcp' -- 'npx' '-y' 'xdebug-mcp'04 / 在客户端中确认
打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。
更多AI & ML服务器
浏览完整目录安全概况
已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理
40 个工具中显示 40 个
文档中列出的工具 (40)
内容来自项目文档。服务器握手不会验证每个工具的说明或行为。
add_logpoint
Add a logpoint with message template
add_watch
Add a persistent watch expression
close_session
Close a debug session
continue
Continue to next breakpoint
detach
Detach and let script continue
evaluate
Evaluate a PHP expression
evaluate_watches
Evaluate all watches and detect changes
get_contexts
Get available variable contexts
get_coverage_report
View coverage statistics
get_logpoint_history
View log output and hit statistics
get_memory_timeline
View memory usage over time
get_profile_stats
Get current profiling statistics
get_session_state
Get detailed state of a session
get_source
Get source code
get_stack_trace
Get the call stack
get_variable
Get a specific variable
get_variables
Get all variables in scope
list_breakpoints
List all breakpoints including pending
list_debug_profiles
List all saved profiles
list_sessions
List all active debug sessions
list_watches
List all active watches
load_debug_profile
Load a saved debug profile
remove_breakpoint
Remove a breakpoint (works with pending breakpoints)
remove_logpoint
Remove a logpoint
remove_watch
Remove a watch expression
save_debug_profile
Save current configuration as a profile
set_active_session
Set which session is active
set_breakpoint
Set a line or conditional breakpoint (supports pending breakpoints)
set_call_breakpoint
Break on function calls (supports pending breakpoints)
set_exception_breakpoint
Break on exceptions (supports pending breakpoints)
set_variable
Set a variable's value
start_coverage
Start tracking code coverage
start_profiling
Start memory/time profiling
step_into
Step into function calls
step_out
Step out of current function
step_over
Step over (skip function internals)
stop
Stop debugging
stop_coverage
Stop and get coverage report
stop_profiling
Stop profiling and get results
update_breakpoint
Enable/disable or modify a breakpoint