MCPVault

debugger_get_locals

MCP tool from VS MCPServer by CodingWithCalvin

Get local variables in current frame

How to use it

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

Install VS MCPServer

$claude mcp add --transport http visualstudio http://localhost:5050
FULL VS MCPSERVER LISTING

Other tools in VS MCPServer (39)

build_cancel

Cancel a running build

build_project

Build a specific project

build_solution

Build the entire solution

build_status

Get current build status

clean_solution

Clean the solution

debugger_add_breakpoint

Add a breakpoint at a file and line

debugger_break

Pause execution (Ctrl+Alt+Break)

debugger_continue

Continue execution (F5)

debugger_evaluate

Evaluate an expression in the current debug context

debugger_get_callstack

Get the call stack

debugger_launch

Start debugging (F5), optionally for a specific project

debugger_launch_without_debugging

Start without debugger (Ctrl+F5), optionally for a specific project

debugger_list_breakpoints

List all breakpoints

debugger_remove_breakpoint

Remove a breakpoint

document_active

Get the active document

document_cleanup

Run code cleanup on a document

document_close

Close a document

document_list

List all open documents

document_open

Open a file in the editor

document_read

Read document contents

document_save

Saves an open document

document_write

Write to a document

editor_find

Search within documents

editor_goto_line

Navigate to a specific line

editor_insert

Insert text at cursor position

editor_replace

Find and replace text

find_references

Find all references to a symbol

goto_definition

Navigate to the definition of a symbol

project_info

Get detailed project information

project_list

List all projects in the solution

selection_get

Get the current text selection

selection_set

Set the selection range

solution_close

Close the current solution

solution_info

Get information about the current solution

solution_open

Open a solution file

startup_project_get

Get the current startup project

startup_project_set

Set the startup project for debugging

symbol_document

Get all symbols defined in a document

symbol_workspace

Search for symbols across the solution