RoslynLens Documentation
A token-efficient MCP server for .NET codebase navigation via Roslyn. 34 tools, 18 anti-pattern detectors, configurable and extensible.
Getting Started
- Quick Start — up and running in 2 minutes
- Installation — NuGet, source build, updates
- Configuration — MCP registration, solution discovery
- Configuration Reference — all environment variables, CLI args, tuning guide
- Troubleshooting — common issues and fixes
Tools Reference (34 tools)
Core tools (17)
- Navigation Tools — find_symbol (with glob patterns), find_references, find_implementations, find_callers, find_overrides
- Inspection Tools — get_public_api, get_symbol_detail, get_type_hierarchy, get_dependency_graph
- Project Tools — get_project_graph, get_diagnostics, get_test_coverage_map
- Analysis Tools — detect_antipatterns, detect_circular_dependencies, find_dead_code
- Modular Architecture Tools — get_module_depends_on, validate_conventions
v1.1.0 tools (11)
- Advanced Analysis Tools — get_complexity_metrics, analyze_data_flow, analyze_control_flow, detect_duplicates, resolve_external_source
- Compound Tools — analyze_method, get_type_overview, get_file_overview
- Batch Tools — find_symbols_batch, get_public_api_batch, get_symbol_detail_batch
v1.2.0 tools (2)
- Solution Management Tools — list_solutions, switch_solution
v1.3.0 tools (4)
- Graph Intelligence Tools — get_communities, find_god_nodes, find_surprising_dependencies, find_isolated_symbols
Anti-Pattern Detectors (18)
- General .NET Detectors — AP001-AP009 (async, error handling, resource management, observability)
- Domain-Specific Detectors — GR-GUID, GR-SECRET, GR-DTO, and 6 more
Architecture
- How It Works — startup sequence, workspace management, tool execution flow
- Adding a Tool — step-by-step guide with templates
- Adding a Detector — step-by-step guide with test templates
Other
- Comparison with Alternatives — feature matrix vs SharpLensMcp, RoslynMCP, SharpToolsMCP, CodeAnalysisMCP