MCPVault

GetSymbolAtLocation

MCP tool from MCP Ai Server Visual Studio by LadislavSopko

Identify the symbol at a specific line and column

How to use it

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

FULL MCP AI SERVER VISUAL STUDIO LISTING

Other tools in MCP Ai Server Visual Studio (36)

breakpoint_list

List all breakpoints

breakpoint_remove

Remove breakpoint

breakpoint_set

Set breakpoint by file+line or function name

debug_attach

Attach to a running process

debug_break

Pause the running application

debug_continue

Resume execution

debug_evaluate

Evaluate expression / drill into variable tree

debug_get_callstack

Call stack of current thread

debug_get_locals

Local variables (tree-navigable)

debug_get_mode

Current mode: Design, Running, or Break

debug_list_processes

List processes on a transport

debug_list_transports

List transports (Default, Docker, WSL, SSH...)

debug_start

Start debugging (F5). Fire-and-forget

debug_step

Step over/into/out

debug_stop

Stop debugging session

error_list_get

Errors and warnings from VS Error List

exception_settings_set

Configure break-on-exception

ExecuteAsyncTest

Run tests asynchronously with real-time status

ExecuteCommand

Build or clean solution/project with structured diagnostics

FindSymbolDefinition

Go to definition (F12 equivalent)

FindSymbols

Find classes, methods, properties by name — semantic, not text

FindSymbolUsages

Find all references, compiler-verified (Shift+F12 equivalent)

FormatDocument

Visual Studio's native code formatter

GetActiveFile

Current file and cursor position

GetDiagnostics

Compiler errors & warnings without building — Roslyn background analysis

GetDocumentOutline

Semantic structure: classes, methods, properties, fields

GetInheritance

Full type hierarchy: base types, derived types, interfaces

GetMethodCallers

Which methods call this method (call graph UP)

GetMethodCalls

Which methods this method calls (call graph DOWN)

GetProjectReferences

Project dependency graph

GetSolutionTree

Solution and project structure

immediate_execute

Execute expression with side effects

LoadSolution

Open a .sln/.slnx file — server stays on the same port

output_read

Read VS Output window (Build, Debug, Tests)

RenameSymbol

Safe rename across the entire solution — compiler-verified

TranslatePath

Convert paths between Windows and WSL formats