HC

hymma/csharp-lsp-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

23 stars 8 forks 품질 63 트렌드 0MIT

MCP 서버는 Claude와 같은 AI 조수에 대한 C# 및 XAML 언어 인텔리전스를 제공합니다

개요

MCP (Model Context Protocol) 서버는 Claude와 같은 AI 조수에 대한 C# 및 XAML 언어 인텔리전스를 제공합니다. 그것은 표준화 된 MCP 프로토콜을 통해 IntelliSense, 진단 및 코드 분석에 의해 LLM 및 .NET 개발 사이의 간격을 교량. - - 실시간 컴파일러 오류 및 경고를 가져옵니다 - - 유형 정보 및 문서 보기 - context-aware 코드 제안 받기 - 기호 정의에 Navigate - - - 기호의 모든 사용을 찾습니다 - 파일에 모든 기호를 나열 - - 빠른 수정 및 복원 - - - 작업 공간 전반에 걸쳐 미리보기 기호 이름 - - 재건하기 전에 파일 잠금을 해제하기 위해 LSP 서버를 중지 - 오류 및 문제점에 대한 XAML 확인 - - 데이터 바인딩을 추출하고 분석 - - 목록 및 리소스 참조 - - 모든 x 찾기 : 이름 선언 - - 요소 트리 hierarchy - - 바인딩 문제를 식별 - - 바인딩에서 ViewModels 생성 Claude 데스크탑 구성에 추가: 일단 구성되면 MCP 서버는 ...

개요(AI 번역)

MCP (Model Context Protocol) 서버는 Claude와 같은 AI 조수에 대한 C# 및 XAML 언어 인텔리전스를 제공합니다. 그것은 표준화 된 MCP 프로토콜을 통해 IntelliSense, 진단 및 코드 분석에 의해 LLM 및 .NET 개발 사이의 간격을 교량.

특징

C# 언어 정보 (csharp-ls를 통해)

-Diagnostics - 실시간 컴파일러 오류 및 경고 -Hover Information - 유형 정보 및 문서 보기

  • IntelliSense Completions - context-aware 코드 제안 받기
  • ** 정의로 이동 ** - 기호 정의에 Navigate
  • Find References - 기호의 모든 사용 -Document Symbols - 파일 내 모든 기호 목록 -Code Actions - 빠른 수정 및 복원 -Rename Preview - 작업 영역의 미리보기 기호 이름이 표시됩니다.
  • ** Stop/Restart** - 재건하기 전에 LSP 서버를 해제

XAML 분석 (붙박이)

-Validation - 오류 및 문제점에 대한 XAML 확인 -Binding Analysis - 데이터 바인딩 추출 및 분석 -Resource Inspection - 리소스 참조 목록 및 확인 -Name Discovery - 모든 x 찾기: 이름 선언

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

csharp-lsp-mcp

An MCP (Model Context Protocol) server that provides C# and XAML language intelligence for AI assistants like Claude. It bridges the gap between LLMs and .NET development by exposing IntelliSense, diagnostics, and code analysis through the standardized MCP protocol.

Features

C# Language Intelligence (via csharp-ls)

  • Diagnostics - Get compiler errors and warnings in real-time
  • Hover Information - View type information and documentation
  • IntelliSense Completions - Get context-aware code suggestions
  • Go to Definition - Navigate to symbol definitions
  • Find References - Locate all usages of a symbol
  • Document Symbols - List all symbols in a file
  • Code Actions - Access quick fixes and refactorings
  • Rename Preview - Preview symbol renames across the workspace
  • Stop/Restart - Stop the LSP server to release file locks before rebuilding

XAML Analysis (built-in)

  • Validation - Check XAML for errors and issues
  • Binding Analysis - Extract and analyze data bindings
  • Resource Inspection - List and verify resource references
  • Name Discovery - Find all x:Name declarations
  • Structure Visualization - View element tree hierarchy
  • Binding Error Detection - Identify binding problems
  • ViewModel Generation - Generate ViewModels from bindings

Prerequisites

  1. .NET 8.0 SDK or later
  2. csharp-ls - The C# Language Server

Install csharp-ls globally:

dotnet tool install --global csharp-ls

Installation

From Source

git clone https://github.com/HYMMA/csharp-lsp-mcp.git
cd csharp-lsp-mcp/csharp-lsp-mcp/src/CSharpLspMcp
dotnet build -c Release

From NuGet (coming soon)

dotnet tool install --global CSharpLspMcp

Configuration

Claude Code

Add to your ~/.claude.json:

{
  "mcpServers": {
    "csharp": {
      "command": "path/to/csharp-lsp-mcp.exe"
    }
  }
}

Or if installed as a global tool:

{
  "mcpServers": {
    "csharp": {
      "command": "csharp-lsp-mcp"
    }
  }
}

Claude Desktop

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "csharp": { "command": "path/to/csharp-lsp-mcp.exe" } } }