An MCP server for .NET/C# semantic code analysis, navigation, refactoring, and code generation using Microsoft Roslyn. It operates on loaded solutions to provide compiler-accurate insights such as symbol search, diagnostics, impact analysis, and safe refactorings.
From the registry: 62 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, code generation.
Please install the `sharplens` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **.NET 8.0 SDK or later** — Required for Roslyn analysis. Works with .NET 8, 9, 10+. (https://dotnet.microsoft.com)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","sharplens-mcp"]
- optional environment variables:
- `DOTNET_SOLUTION_PATH`: Path to .sln or .slnx file to auto-load. If not set, must call load_solution tool. (example: `/path/to/your/Solution.sln`)
Note: 62 tools for .NET/C# semantic analysis via Microsoft Roslyn: symbol navigation, impact analysis, dead code detection, safe refactoring with preview, complexity metrics. Also installable via 'dotnet tool install -g SharpLensMcp'.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.DOTNET_SOLUTION_PATHrequiredPath to a .sln or .slnx file to auto-load on startup.Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Validate oh-my-posh configurations and segment snippets against the official schema.
Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.