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
{
"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