AgentHubAgentHub

SharpLens

MCP ServerMCP Registry官方收录

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

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

概览

SharpLens 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}

环境变量

DOTNET_SOLUTION_PATH可选

Path to .sln or .slnx file to auto-load on startup

ROSLYN_LOG_LEVEL可选

Logging verbosity: Trace, Debug, Information, Warning, Error

ROSLYN_TIMEOUT_SECONDS可选

Timeout for long-running operations

DOTNET_SOLUTION_PATH可选

Path to .sln or .slnx file to auto-load on startup

ROSLYN_LOG_LEVEL可选

Logging verbosity: Trace, Debug, Information, Warning, Error

ROSLYN_TIMEOUT_SECONDS可选

Timeout for long-running operations

相关资源

统一 Manifest

{
  "id": "io.github.pzalutski-pixel/sharplens",
  "type": "mcp-server",
  "version": "1.5.3",
  "displayName": "SharpLens",
  "description": "67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.",
  "repository": {
    "url": "https://github.com/pzalutski-pixel/sharplens-mcp",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "sharplens-mcp",
        "version": "1.5.3",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "DOTNET_SOLUTION_PATH",
            "description": "Path to .sln or .slnx file to auto-load on startup"
          },
          {
            "name": "ROSLYN_LOG_LEVEL",
            "description": "Logging verbosity: Trace, Debug, Information, Warning, Error"
          },
          {
            "name": "ROSLYN_TIMEOUT_SECONDS",
            "description": "Timeout for long-running operations"
          }
        ]
      },
      {
        "registryType": "nuget",
        "identifier": "SharpLensMcp",
        "version": "1.5.3",
        "runtimeHint": "dotnet tool run",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "DOTNET_SOLUTION_PATH",
            "description": "Path to .sln or .slnx file to auto-load on startup"
          },
          {
            "name": "ROSLYN_LOG_LEVEL",
            "description": "Logging verbosity: Trace, Debug, Information, Warning, Error"
          },
          {
            "name": "ROSLYN_TIMEOUT_SECONDS",
            "description": "Timeout for long-running operations"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.pzalutski-pixel/sharplens",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.pzalutski-pixel%2Fsharplens/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
SharpLens — MCP Server 安装与配置 · AgentHub