carquiza/RoslynMCP
If you are the rightful owner of RoslynMCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Roslyn MCP Server is a C# server that integrates with Microsoft's Roslyn compiler platform to enhance Claude Desktop with advanced code analysis and navigation capabilities for C# codebases.
The Roslyn MCP Server is designed to provide powerful code analysis and navigation features for C# developers using Claude Desktop. By leveraging the capabilities of the Microsoft Roslyn compiler platform, this server enables users to perform complex code searches, track symbol references, and analyze code dependencies and complexity. It is optimized for performance with multi-level caching and supports large codebases efficiently. The server also emphasizes security through input validation and path sanitization. Developers can easily integrate the server with Claude Desktop by modifying the configuration file, allowing seamless access to its features. The server is built on .NET 8.0 and is compatible with Visual Studio 2022 or VS Code, making it accessible for modern C# development environments.
Features
- Wildcard Symbol Search: Allows users to find classes, methods, and properties using pattern matching.
- Reference Tracking: Enables locating all usages of symbols across entire solutions.
- Symbol Information: Provides detailed information about types, methods, properties, and more.
- Dependency Analysis: Analyzes project dependencies and namespace usage patterns.
- Code Complexity Analysis: Identifies high-complexity methods using cyclomatic complexity metrics.
Usages
usage with Claude Desktop
{ "mcpServers": { "roslyn-code-navigator": { "command": "dotnet", "args": [ "run", "--project", "/path/to/RoslynMCP/RoslynMcpServer" ], "env": { "DOTNET_ENVIRONMENT": "Production", "LOG_LEVEL": "Information" } } } }
Tools
SearchSymbols
Search for symbols using wildcard patterns.
FindReferences
Find all references to a specific symbol.
GetSymbolInfo
Get detailed information about a symbol.
AnalyzeDependencies
Analyze project dependencies and usage patterns.
AnalyzeCodeComplexity
Identify high-complexity methods.