Roslyn CodeLens for Cursor
io.github.marcelroozekrans/roslyn-codelens
Roslyn MCP server: semantic .NET/C# intelligence - analysis, refactoring, tests, IL inspection.
client:Cursor
transport:stdio
runtime:npm
Install Roslyn CodeLens in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"roslyn-codelens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"roslyn-codelens-mcp"
]
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs