A Roslyn-based Model Context Protocol Server providing powerful C# code analysis and navigation capabilities
Please select your language / 请选择语言:
- English Documentation - English version of the documentation
- 中文文档 - 中文版文档
| English | 中文 |
|---|---|
| API Reference | API 参考 |
CSharp MCP Server is a Model Context Protocol (MCP) Server built with Roslyn API, providing powerful C# code analysis capabilities for AI assistants. Unlike LSP-based implementations, this server accesses complete semantic information for more accurate and in-depth code analysis.
- 🎯 Complete Semantic Analysis - Direct Roslyn API access for full symbol information
- 🌲 Inheritance Hierarchy - View complete type inheritance chains
- 📊 Call Graph Analysis - Analyze method callers and callees
- ⚡ Token Optimization - Tiered responses and smart truncation
- 🔍 Advanced Navigation - Fuzzy matching and batch operations
# Clone the repository
git clone https://github.com/yindf/CSharpLSP.git
cd CSharpLSP
# Build
dotnet build
# Run
dotnet run --project src/CSharpMcp.ServerMIT License - See LICENSE file for details.