Skip to main content

SharpLens

io.github.pzalutski-pixel/sharplens

v1.5.3Updated May 20, 2026stdio · npmstdio · NuGet

67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add sharplens -e ROSLYN_LOG_LEVEL=Information -e ROSLYN_TIMEOUT_SECONDS=30 -- npx -y [email protected]

Configuration

3 settings.

  • DOTNET_SOLUTION_PATH
    Env var· optional
    Path to .sln or .slnx file to auto-load on startup
  • ROSLYN_LOG_LEVEL
    Env var· optional
    Logging verbosity: Trace, Debug, Information, Warning, ErrorDefault: Information
  • ROSLYN_TIMEOUT_SECONDS
    Env var· optional
    Timeout for long-running operationsDefault: 30

Listed in the official MCP Registry since May 20, 2026. Mirrored daily; last checked Nov 26, 2026.