csharp-lsp — Claude Code plugin: C# code intelligence
Wires a C# language server into Claude so the agent gets diagnostics and code intelligence for .cs files. Useful on any C# project.
/plugin install csharp-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat csharp-lsp does
The plugin gives Claude a real picture of C# code. The agent sees diagnostics and language-server hints for .cs files instead of guessing from raw text. That shows up in the edits: fewer invented methods, fewer made-up types.
The plugin itself is a wrapper. The csharp-ls language server installs separately, two ways: dotnet tool install --global csharp-ls, or brew install csharp-ls on macOS. The .NET tool route is the one the docs recommend.
You need .NET SDK 6.0 or later. Without the SDK the server won't start, and the plugin does nothing — check that first.
What it helps with
- get C# diagnostics while the agent edits
- match real method signatures instead of guessing from text
- navigate an unfamiliar C# codebase without reading every file
- catch type errors before a build
Example prompts for the agent
- check
Program.csfor errors and suggest fixes - find every call site for this method and show me the signature
- what's wrong with this
.csfile — show the diagnostics
How to install csharp-lsp
Plugin marketplace
/plugin install csharp-lsp@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about csharp-lsp
How do I install csharp-lsp in Claude?
Add the marketplace with /plugin marketplace add anthropics/claude-plugins-official, then install the plugin: /plugin install csharp-lsp@claude-plugins-official.
What does csharp-lsp do?
It connects a C# language server to Claude, so the agent gets diagnostics and code intelligence for .cs files.
What does csharp-lsp need to work?
The csharp-ls language server installs separately, via dotnet tool install --global csharp-ls or brew install csharp-ls on macOS. It requires .NET SDK 6.0 or later.
Source text
csharp-lsp · Apache-2.0
# csharp-lsp C# language server for Claude Code, providing code intelligence and diagnostics. ## Supported Extensions `.cs` ## Installation ### Via .NET tool (recommended) ```bash dotnet tool install --global csharp-ls ``` ### Via Homebrew (macOS) ```bash brew install csharp-ls ``` ## Requirements - .NET SDK 6.0 or later ## More Information - [csharp-ls GitHub](https://github.com/razzmatazz/csharp-language-server) - [.NET SDK Download](https://dotnet.microsoft.com/download)
© Anthropic · Apache-2.0 · anthropics/claude-plugins-official