SharpLens for VS Code
io.github.pzalutski-pixel/sharplens
67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.
client:VS Code
transport:stdio
runtime:npm
Install SharpLens in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "dotnet-solution-path",
"description": "DOTNET_SOLUTION_PATH",
"password": true
},
{
"type": "promptString",
"id": "roslyn-log-level",
"description": "ROSLYN_LOG_LEVEL",
"password": true
},
{
"type": "promptString",
"id": "roslyn-timeout-seconds",
"description": "ROSLYN_TIMEOUT_SECONDS",
"password": true
}
],
"servers": {
"sharplens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "${input:dotnet-solution-path}",
"ROSLYN_LOG_LEVEL": "${input:roslyn-log-level}",
"ROSLYN_TIMEOUT_SECONDS": "${input:roslyn-timeout-seconds}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs