Labsco
MCP SERVER

Roslyn MCP Server

by carquiza

Search a C# solution by symbol pattern, find every reference, and see which methods have got too complex.

Code Intelligence & Repository Indexing
Summary
Grep knows the string; this knows the symbol.

Finding every caller of a method by text search means guessing spellings and missing the calls that go through an interface. Roslyn resolves the symbol first, so references, dependencies and complexity are answered from the compiler's view of the solution.

What it is

A C# MCP server built on Microsoft's Roslyn compiler platform, giving a client real symbol analysis over a solution rather than text search. Multi-level caching and incremental analysis keep it workable on large codebases.

What you get
  • Symbols searched by wildcard pattern — *Service, Get*User — across classes, methods and properties
  • Every usage of a symbol located across the whole solution
  • Detailed information about a type, method or property
  • Project dependencies and namespace usage analysed
  • High-complexity methods identified by cyclomatic complexity
  • Input validation and path sanitisation on the paths it is given
Requirements

.NET 8.0 SDK or later, and the absolute path to the solution you want analysed. The client config runs it with dotnet run pointed at the RoslynMcpServer project, and sets an environment name and a log level alongside it; setup.ps1 does the Windows wiring for you.