Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Add four navigation tools that mirror LSP protocol capabilities:
    • symbol_document - Get all symbols (classes, methods, etc.) in a file
    • symbol_workspace - Search symbols across the entire solution
    • goto_definition - Navigate to where a symbol is defined
    • find_references - Find all usages of a symbol
  • Create SymbolModels.cs with DTOs for navigation results
  • Implement three-layer RPC pattern following existing architecture

Test plan

  • Build solution with dotnet build src/CodingWithCalvin.MCPServer.slnx
  • Load extension in VS with a C# solution open
  • Start MCP server and verify new tools appear in "Show Available Tools"
  • Test symbol_document on a .cs file
  • Test symbol_workspace with query like "Service"
  • Test goto_definition on a method call
  • Test find_references on a class name

Add four navigation tools that mirror LSP protocol capabilities:
- symbol_document: Get all symbols in a file using FileCodeModel
- symbol_workspace: Search symbols across the entire solution
- goto_definition: Navigate to symbol definition using Edit.GoToDefinition
- find_references: Find all usages of a symbol via text search

Includes new DTOs in SymbolModels.cs and implements the three-layer
RPC pattern (NavigationTools -> RpcClient -> RpcServer -> VisualStudioService).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants