Skip to content
Cursor

SharpLens for Cursor

io.github.pzalutski-pixel/sharplens

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

client:Cursor transport:stdio runtime:npm

Install SharpLens in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "sharplens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
        "ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
        "ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

SharpLens in other clients