← Back to browse

SharpLens

Indexed by io.github.pzalutski-pixel

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsDOTNET_SOLUTION_PATH ROSLYN_LOG_LEVEL ROSLYN_TIMEOUT_SECONDS
Claude Code
claude mcp add --env DOTNET_SOLUTION_PATH= --env ROSLYN_LOG_LEVEL= --env ROSLYN_TIMEOUT_SECONDS= sharplens -- npx sharplens-mcp
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"sharplens","command":"npx","args":["sharplens-mcp"],"env":{"DOTNET_SOLUTION_PATH":"","ROSLYN_LOG_LEVEL":"","ROSLYN_TIMEOUT_SECONDS":""}}'
JSON
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "sharplens-mcp"
      ],
      "env": {
        "DOTNET_SOLUTION_PATH": "",
        "ROSLYN_LOG_LEVEL": "",
        "ROSLYN_TIMEOUT_SECONDS": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.