Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By lahmav1.1.0MITIn 1 marketplace
Microsoft's Roslyn language server, mediated for Claude Code: navigation and edit-time diagnostics over LSP, plus an MCP refactoring surface (rename, code actions, fix-all, format, diagnostics on demand).
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
solutionAbsolute or repository-relative path to the .slnx, .sln or .csproj to load. Leave blank and the adapter discovers one, honouring .vscode/settings.json's dotnet.defaultSolution; set it in a monorepo, where the discovered solution is often not the one you are working in. A path that is not there fails with a message rather than falling back to a guess.
stringdefault
Log levellog_level
Trace, Debug, Information, Warning, Error, Critical or None (default Information). Logs go to stderr, which Claude Code shows with --debug; stdout is the protocol channel and never carries anything else.
stringdefault
Roslyn language server pathroslyn_path
Directory holding an already-installed Microsoft.CodeAnalysis.LanguageServer.dll. Set it to run air-gapped or to test a locally built server; blank downloads the pinned version into the plugin's data directory.
stringdefault
Roslyn language server versionroslyn_version
Overrides the pinned roslyn-language-server version the adapter downloads. Blank uses the version this release was tested against; anything else has no hash to verify against, is reported by doctor as unverified, and may not accept the same command line.
stringdefault
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
Microsoft's Roslyn language server, mediated so that a coding agent can actually use it — as an LSP server for the agents that speak LSP, and as an MCP server for the refactorings LSP clients have no button for. It contains no compiler. Roslyn runs in a child process this binary downloads, launches and supervises, which is the whole design: reimplementing C# analysis is not something one person maintains, and Microsoft now publishes the real engine as a public MIT dotnet tool. The only part nobody had done is the mediation.
Claude Code's C# story is broken in a specific, fixable way. The official csharp-lsp plugin
launches csharp-ls from PATH and installs nothing, so on most machines the language-server tool
never activates at all. And even when a server does start, Claude Code's LSP client refuses
client/registerCapability, answers workspace/configuration only when a settings block happens to
be present, never sends Roslyn's solution/open, never waits for
workspace/projectInitializationComplete — so the first several seconds of every session answer
"no definition found" rather than an error — and consumes only push diagnostics, which Roslyn does
not send. The result is an agent that reaches for grep and sed on a language that has had exact,
semantic answers for twenty years.
This binary supplies each of those: it acquires and launches Roslyn, answers the registrations,
configuration and progress requests on the client's behalf, opens the solution, holds requests until
the workspace has actually loaded, and bridges Roslyn's pull diagnostics onto the push model the
client understands. On top of that, the mcp verb exposes the mutating half no LSP client offers a
model — solution-wide semantic rename, code actions, fix-all by diagnostic id, formatting and
diagnostics on demand — addressed by symbol name rather than by a line number the model had to
grep for first.
One binary serves all of it: Claude Code (both protocols, as a plugin), GitHub Copilot CLI and
OpenCode over LSP, and Codex CLI, Gemini CLI, Cursor, VS Code and Claude Desktop over MCP. It is
written in C# on .NET 10 and ships as a Native AOT executable per platform. The runtime dependency
tree is three packages, all from Microsoft or the official MCP organisation; there is not one
Microsoft.CodeAnalysis.* reference in it, and there never will be. MIT licensed.
claude-roslyn-lsp lsp The LSP server. What an editor or an agent's LSP client launches.
claude-roslyn-lsp mcp The MCP server: eleven tools, over stdio.
claude-roslyn-lsp doctor Report everything, then start Roslyn and complete one handshake.
claude-roslyn-lsp install The same, with the download allowed.
There is no default verb. Both servers speak a different protocol on the same stdout, so a client that forgot the subcommand would be connected to the wrong one and simply hang; a bare invocation exits 2 with the usage text on stderr instead.
lsp mediates the session in both directions. It answers initialize immediately from its own
authored capability document, opens the discovered solution, holds semantic requests until Roslyn
reports the workspace loaded, answers the requests Roslyn makes that Claude Code refuses, and
forwards everything else with only the JSON-RPC id rewritten — no reserialisation, so a result
crosses byte for byte.mcp is the refactoring surface: resolveSymbol, findReferences, getTypeMembers,
getDiagnostics, getCodeActions, applyCodeAction, renameSymbol, fixDiagnostics,
formatCode, getWorkspaceStatus. Four of them write files; all four take preview. It runs a
Roslyn of its own — launched, supervised and file-watched exactly as the lsp half's is — and it
starts loading the solution as soon as the client finishes the MCP handshake rather than when the
first tool is called, because a client starts its servers when a session starts and may not ask a
C# question for minutes. Until the workspace is loaded every tool answers status: "loading"
instead of hanging, and getWorkspaceStatus says how far it has got.doctor is the support report and the exit code that means something: 0 only if Roslyn is
runnable right now, established by launching it and completing a real handshake.What to expect on a first run. The first lsp session for a machine downloads about 70 MB of
Roslyn and extracts about 140 MB, reporting progress to the client as it goes; every later session
starts from the cache. Then the solution loads, and everything asked during that window is held and
answered afterwards rather than answered empty. Measured through Claude Code on this machine:
npx claudepluginhub lahma/claude-roslyn-lsp --plugin roslyn-adapterBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground