Skip to content

a lsp mcp server especially created for c# and unity development

Notifications You must be signed in to change notification settings

yindf/CSharpMCP

Repository files navigation

CSharp MCP Server

A Roslyn-based Model Context Protocol Server providing powerful C# code analysis and navigation capabilities

.NET License

Documentation / 文档

Please select your language / 请选择语言:

Quick Links / 快速链接

English 中文
API Reference API 参考

Overview

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.

Key Features

  • 🎯 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

Quick Start

# Clone the repository
git clone https://github.com/yindf/CSharpLSP.git
cd CSharpLSP

# Build
dotnet build

# Run
dotnet run --project src/CSharpMcp.Server

License

MIT License - See LICENSE file for details.

About

a lsp mcp server especially created for c# and unity development

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors