C

Claude Roslyn Lsp

by lahma · io.github.lahma/claude-roslyn-lsp

Exposes Roslyn's mutating C# capabilities to coding agents over stdio — solution-wide semantic rename, code actions, fix-all by diagnostic id, formatting and on-demand diagnostics — addressed by symbol name and with preview support for the tools that write files.

nuget Local · stdio GlamaOfficial MCP Registry High confidence

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CLAUDE_ROSLYN_LSP_SOLUTION No The .slnx, .sln or .csproj to open. Default: discovered. A path that does not exist fails loudly rather than falling back to discovery. Default: discovered
CLAUDE_ROSLYN_LSP_ROSLYN_PATH No A directory holding Microsoft.CodeAnalysis.LanguageServer.dll, that assembly, or another executable to run instead. First in the resolution chain; its version is not checked. Alias: CLAUDE_ROSLYN_LSP_SERVER_PATH.
CLAUDE_ROSLYN_LSP_ROSLYN_VERSION No Fetch a different roslyn-language-server version. Default: the pin. There is no hash for it, so doctor reports it as unverified, and the launcher drops flags only the pinned build is known to accept. Alias: CLAUDE_ROSLYN_LSP_SERVER_VERSION. Default: the pin
CLAUDE_ROSLYN_LSP_ROSLYN_ARGS No Extra arguments for the Roslyn child, split on whitespace. Development only.
CLAUDE_ROSLYN_LSP_CACHE_DIR No Moves the downloaded servers only; logs and staged downloads stay under the home.
CLAUDE_ROSLYN_LSP_HOME No Where downloads, logs and lock files live. Default: platform cache dir. Falls back to CLAUDE_PLUGIN_DATA, then LOCALAPPDATA, ~/Library/Caches, $XDG_CACHE_HOME or ~/.cache.
CLAUDE_ROSLYN_LSP_OFFLINE No Never download. A missing server becomes an explained failure instead of a 70 MB fetch. Default: 0
CLAUDE_ROSLYN_LSP_TRANSPORT No pipe or stdio. The pipe keeps the protocol on a channel nothing else can write to. Default: pipe
CLAUDE_ROSLYN_LSP_READY_TIMEOUT_SECONDS No How long a request waits for the workspace to load before passing through anyway. Range 1-3600. Default: 120
CLAUDE_ROSLYN_LSP_DIAGNOSTICS No The pull-to-push diagnostics bridge. lsp only; an MCP client asks with getDiagnostics. Default: 1
CLAUDE_ROSLYN_LSP_DIAGNOSTIC_MIN_SEVERITY No The severity floor applied before diagnostics are published to an LSP client. Default: warning
CLAUDE_ROSLYN_LSP_WORKSPACE_DIAGNOSTICS No Opt-in workspace-wide diagnostics for files that are not open. Needs a full-solution compiler scope, which is the expensive setting. Default: off
CLAUDE_ROSLYN_LSP_FILE_WATCHER No The file-watch bridge. Without it, a file created by a shell command or by git never joins its project and every later answer is silently stale. lsp only: the mcp half always watches. Default: 1
CLAUDE_ROSLYN_LSP_SHARE No Whether the lsp and mcp servers share one Roslyn per solution. Off makes each launch one of its own. Default: 1
CLAUDE_ROSLYN_LSP_GC No Which garbage collector the Roslyn child runs with: workstation or server. An explicit DOTNET_gcServer or COMPlus_gcServer in the environment wins over this. Default: workstation
CLAUDE_ROSLYN_LSP_GC_CONSERVE No The DOTNET_GCConserveMemory level, 0-9, the Roslyn child runs with. 0 sets nothing. An explicit DOTNET_GCConserveMemory or COMPlus_GCConserveMemory in the environment wins. Default: 7
CLAUDE_ROSLYN_LSP_IDLE_RECYCLE_MINUTES No How long a session has to be idle before a Roslyn child that has grown past its threshold is shut down to give its memory back; the next request relaunches it. Range 0-10080; 0 is off. Default: 20
CLAUDE_ROSLYN_LSP_RECYCLE_GROWTH_FACTOR No How far past its post-load baseline the child must have grown: the threshold is the larger of baseline x factor and baseline + 512 MB. A decimal with a dot, 1.2-20. Default: 2
CLAUDE_ROSLYN_LSP_IDLE_SHUTDOWN_MINUTES No Shut the child down after this many idle minutes whatever its size; the next request relaunches it. Range 0-10080. 0 is off. Default: 0
CLAUDE_ROSLYN_LSP_LOG_LEVEL No This adapter's own stderr logger: Trace, Debug, Information, Warning, Error, Critical, None. Default: Information
CLAUDE_ROSLYN_LSP_ROSLYN_LOG_LEVEL No The level handed to Roslyn. Its Information is about twenty lines of narration per start. Default: Warning
CLAUDE_ROSLYN_LSP_OPTIONS No A JSON object merged into the answers given to Roslyn's workspace/configuration requests. A syntax error is a logged warning, never a startup failure.
CLAUDE_ROSLYN_LSP_SERVER_PATH No Alias for CLAUDE_ROSLYN_LSP_ROSLYN_PATH. A directory holding Microsoft.CodeAnalysis.LanguageServer.dll, that assembly, or another executable to run instead. Its version is not checked.
CLAUDE_ROSLYN_LSP_SERVER_VERSION No Alias for CLAUDE_ROSLYN_LSP_ROSLYN_VERSION. Fetch a different roslyn-language-server version. There is no hash for it, so doctor reports it as unverified.

Similar servers