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 erinloyv0.1.1MITIn 1 marketplace
Roslyn C#/VB language server for Claude Code: one shared per-workspace server, analyzer shadow-copying so builds never lock, native .slnx and .NET 10, with a refactoring MCP and an extension API for live systems.
Claude loads one when your task matches it, or you run it by name.
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.
NOTICE: AI GENERATED SLOP. KNOWN TO WORK, BUT BARELY REVIEWED. TAKE APPROPRIATE PERCAUTIONS IN YOUR DOWNSTREAM WORKS.
Roslyn's language server — Microsoft.CodeAnalysis.LanguageServer, the engine behind the C# Dev Kit — packaged as a
Claude Code plugin, for C# and Visual Basic. It runs as one shared per-workspace server with
thin per-session clients, so several Claude Code instances share a single loaded solution instead of each loading its own.
It ships three things:
roslyn-refactor) for the mutating operations Claude Code's read-only LSP tool lacks, plus a crlsp
command-line client of the same shared server;Two problems with running a C# language server under Claude Code, and what this does about them.
Build locks. A language server loads Roslyn analyzers and source generators to do its work, which holds OS handles on
those DLLs. In a repo that builds its own analyzers or generators, the next build can't overwrite the locked output —
MSB3027, "being used by another process". The fix the IDEs use is shadow-copying: load a copy of the analyzers from a
temp directory so the build output stays free. The Roslyn server does this by default; csharp-ls does not and can't be
configured to. This plugin extends the same idea to its own binaries: clients and the daemon run from a per-build shadow
copy, so rebuilding the plugin never blocks on a running instance either.
One solution per instance. A language server loads the whole solution into memory. Run one per editor instance and you pay that cost N times. This plugin runs a single daemon per workspace and connects each Claude Code instance to it as a thin client, so N instances cost roughly 1× the memory, not N×.
Claude #1 ─ client ─┐
Claude #2 ─ client ─┤ Sluice shared memory ┌─ one daemon per workspace
Claude #3 ─ client ─┴───────────────────────▶ │ └─ one Microsoft.CodeAnalysis.LanguageServer
│ (solution loaded once → 1× memory)
ClaudeRoslynLsp.Client) — spawned by Claude Code per session. It derives a per-workspace key, connects to
the daemon (electing to start one, under a named mutex, if none is running), and forwards messages between Claude Code's
stdio and the daemon. It also routes files that live in a different repo to that repo's own daemon, and exits cleanly if
its daemon dies so Claude Code reconnects.ClaudeRoslynLsp.Daemon) — one per workspace. It downloads and caches
Microsoft.CodeAnalysis.LanguageServer, starts it, opens the solution, and multiplexes every client onto that one server:
a shared initialize, id-namespaced requests, reference-counted document opens, and per-client diagnostic routing so one
instance's edits don't flood the others. It shuts down after a period with no clients.The client↔daemon hop uses Sluice shared-memory channels rather than a named pipe.
Both build from source on first run — the only download is Microsoft's server package. Claude Code spawns the components
through boot/run.ps1, which runs them from a shadow copy of the latest build. Building writes to bin, which is never
executed directly, so a rebuild can't be blocked by a running instance no matter how many are active.
PATH (dotnet --version reports 10.x). The client and daemon target net8.0 with RollForward
and run on the net10 runtime, so no separate .NET 8 install is needed.crlsp CLI work without it; only the in-editor LSP server depends on it.From a running claude:
/plugin marketplace add erinloy/claude-roslyn-lsp
/plugin install roslyn@claude-roslyn-lsp
Restart Claude Code. The first launch builds the components and downloads the server (one-time, a minute or two); later
launches connect to the running daemon immediately. If you have more than one C# LSP plugin installed, disable the others so
only one claims .cs.
npx claudepluginhub erinloy/claude-roslyn-lsp --plugin roslynPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.