NestDaddy

SharpLens

io.github.pzalutski-pixel/sharplens · v1.5.3

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

Connect Runs on your machine

Terminal
claude mcp add sharplens -e DOTNET_SOLUTION_PATH=<DOTNET_SOLUTION_PATH> -e ROSLYN_LOG_LEVEL=<ROSLYN_LOG_LEVEL> -e ROSLYN_TIMEOUT_SECONDS=<ROSLYN_TIMEOUT_SECONDS> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
        "ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
        "ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
        "ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
        "ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "sharplens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
        "ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
        "ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
DOTNET_SOLUTION_PATH
Optional
Path to .sln or .slnx file to auto-load on startup
ROSLYN_LOG_LEVEL
Optional
Logging verbosity: Trace, Debug, Information, Warning, Error
ROSLYN_TIMEOUT_SECONDS
Optional
Timeout for long-running operations

Details

Package[email protected] (NPM, stdio)
Package[email protected] (NUGET, stdio)
First published20 May 2026
Last updated20 May 2026
Registry nameio.github.pzalutski-pixel/sharplens

More other servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.