HomeDevelopment › SharpLens

SharpLens

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

C#
★ 35 stars Last pushed 2026-08-16 License: MIT

Topics: Developer Tools

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 1.5.3)

npx -y [email protected]

Or add to your MCP client config:

{
  "mcpServers": {
    "sharplens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<YOUR_VALUE>",
        "ROSLYN_LOG_LEVEL": "<YOUR_VALUE>",
        "ROSLYN_TIMEOUT_SECONDS": "<YOUR_VALUE>"
      }
    }
  }
}
  • DOTNET_SOLUTION_PATH — Path to .sln or .slnx file to auto-load on startup
  • ROSLYN_LOG_LEVEL — Logging verbosity: Trace, Debug, Information, Warning, Error
  • ROSLYN_TIMEOUT_SECONDS — Timeout for long-running operations

Package (nuget 1.5.3)

Package: nuget SharpLensMcp

  • DOTNET_SOLUTION_PATH — Path to .sln or .slnx file to auto-load on startup
  • ROSLYN_LOG_LEVEL — Logging verbosity: Trace, Debug, Information, Warning, Error
  • ROSLYN_TIMEOUT_SECONDS — Timeout for long-running operations

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry