MCPVault

get_variables

MCP tool from Xdebug MCP by kpanuragh

Get all variables in scope

How to use it

get_variables is exposed by the Xdebug MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_variables tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Xdebug MCP

$npm install -g xdebug-mcp
FULL XDEBUG MCP LISTING

Other tools in Xdebug MCP (39)

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

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