This MCP server acts as a robust bridge, enabling agents to communicate with the `csharp-ls` (C# Language Server) through a curated tool surface. It initiates and manages dedicated `csharp-ls` sessions per workspace, offering a comprehensive suite of tools for C# code interaction. Agents can leverage its capabilities for both read-oriented tasks like hover information, definition lookups, and diagnostics, as well as edit-oriented operations such as code actions, renaming, and formatting. The server also supports flexible preview and direct-apply workflows for edits, alongside a raw LSP escape hatch for advanced use cases.
主要功能
01Provides edit-oriented tools including code actions, symbol renaming, and document formatting
02Manages long-lived `csharp-ls` sessions on a per-workspace basis
03Includes a raw LSP escape hatch for direct invocation of unsupported or experimental LSP requests
040 GitHub stars
05Exposes extensive read and navigation tools for C# code (e.g., hover, definition, references)
06Supports both preview and direct application workflows for all code modifications
使用案例
01Automating complex C# code analysis, refactoring, and code generation tasks
02Integrating C# language services into AI agents or automated scripts via MCP clients
03Enabling interactive C# development and tooling within an MCP client environment