SharpLensMcp MCP server
SharpLensMcp is a community-driven MCP server that leverages Microsoft Roslyn to provide deep semantic analysis for C# and .NET projects. It enables AI coding agents to perform tasks beyond basic LSP support, such as finding async methods missing CancellationToken, impact analysis, dead code detection, complexity metrics, and safe refactoring with preview. It supports installation via NuGet or npm and integrates with tools like Claude Code.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Perform deep semantic analysis of C# codebases
- Detect dead code and complexity metrics
- Execute safe refactoring with preview
- Find async methods missing CancellationToken
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
SharpLensMcp 1.5.3
{
"version": "1.5.3",
"transport": "stdio",
"identifier": "SharpLensMcp",
"runtimeHint": "dotnet tool run",
"registryType": "nuget",
"environmentVariables": [
{
"name": "DOTNET_SOLUTION_PATH",
"format": "string",
"description": "Path to .sln or .slnx file to auto-load on startup"
},
{
"name": "ROSLYN_LOG_LEVEL",
"format": "string",
"default": "Information",
"description": "Logging verbosity: Trace, Debug, Information, Warning, Error"
},
{
"name": "ROSLYN_TIMEOUT_SECONDS",
"format": "number",
"default": "30",
"description": "Timeout for long-running operations"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Let your agent find its tools
Find servers like SharpLensMcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.