← Index

SharpLens

io.github.pzalutski-pixel/sharplens·v1.5.1·Other
Quality Score
90
/100

62 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, code generation.

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<dotnet_solution_path>",
        "ROSLYN_LOG_LEVEL": "Information",
        "ROSLYN_TIMEOUT_SECONDS": "30"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<dotnet_solution_path>",
        "ROSLYN_LOG_LEVEL": "Information",
        "ROSLYN_TIMEOUT_SECONDS": "30"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y sharplens-mcp
§02  Environment variables
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

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

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
15
installability
25
documentation
15
stability
10
§04  Alternatives in Other