JR

joshuaramirez/roslynmcpserver

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

31 stars 12 forks 品質 73 トレンド 31MIT

Roslyn 機能を搭載したモデルコンテキストプロトコルサーバー C#リファクタリング操作

概要

ClaudeのようなAIアシスタントは、Visual Studioを出力する同じRoslynコンパイラプラットフォームを使用して、C#コードベースを安全に再構築します。 Roslyn MCP Server は、AI アシスタントや他の MCP クライアントに公開するモデルコンテキストプロトコル (MCP) サーバーです。 37のリファクタリング操作、5つのコードナビゲーションツール、6つの分析とメトリクスツール、5つのコード生成ツール、13コード変換ツールを組み合わせ、AIのディープコードインテリジェンス、包括的なリファクタリング、および最新のC#の構文変換を、完全なソリューション全体リファレンストラッキングとプレビューサポートで提供します。 - -- 再構築、ナビゲーション、解析、生成、および変換ツール、利用可能な最も包括的なRoslyn MCPサーバー - - - - - - - - - 任意のファイル書き込みが失敗した場合、すべての変更が再変換されます - - - - - - - - - - - - ドットネットツールインストール - g RoslynMcp。 サーバ、repo クローン不要 - -- Windows、Linux、macOS で動作します。 .mcp を作成します.

概要(AI 翻訳)

ClaudeのようなAIアシスタントは、Visual Studioを出力する同じRoslynコンパイラプラットフォームを使用して、C#コードベースを安全に再構築します。

Roslyn MCP Server は、AI アシスタントや他の MCP クライアントに 66 Roslyn のツール を公開するモデルコンテキストプロトコル (MCP) サーバーです。 37のリファクタリング操作、5つのコードナビゲーションツール、6つの分析とメトリクスツール、5つのコード生成ツール、13コード変換ツールを組み合わせ、AIのディープコードインテリジェンス、包括的なリファクタリング、および最新のC#の構文変換を、完全なソリューション全体リファレンストラッキングとプレビューサポートで提供します。

お問い合わせ

コンテンツの表

  • なぜ RoslynMcpServer?
  • 前提条件
  • クイックスタート
  • スタンドアローンCL
  • 構成
  • 利用可能なツール
  • プレビューモード
  • トラブルシューティング
  • NuGetライブラリ
  • 貢献
  • ライセンス

お問い合わせ

#RoslynMcpServerの理由

-66ツール – 再構築、ナビゲーション、分析、生成、および変換ツール、利用可能な最も包括的なRoslyn MCPサーバー -すべての操作のプレビューモード – 申請前に変更されるものを正確に見る -Atomic ファイルが rollback で書き込みます – どのファイルでも書き込みが失敗した場合は、すべての変更が再変換されます

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Roslyn MCP Server

Let AI assistants like Claude safely refactor your C# codebase using the same Roslyn compiler platform that powers Visual Studio.

Roslyn MCP Server is a Model Context Protocol (MCP) server that exposes 66 Roslyn-powered tools to AI assistants and other MCP clients. It combines 37 refactoring operations, 5 code navigation tools, 6 analysis and metrics tools, 5 code generation tools, and 13 code conversion tools – giving your AI deep code intelligence, comprehensive refactoring, and modern C# syntax transformations with full solution-wide reference tracking and preview support.


Table of Contents


Why RoslynMcpServer?

  • 66 tools – refactoring, navigation, analysis, generation, and conversion tools, the most comprehensive Roslyn MCP server available
  • Preview mode on every operation – see exactly what will change before applying
  • Atomic file writes with rollback – if any file write fails, all changes are reverted
  • Solution-wide reference updates – renames and moves propagate across your entire solution
  • Single command install – dotnet tool install -g RoslynMcp.Server, no repo cloning needed
  • Cross-platform – works on Windows, Linux, and macOS

Prerequisites

Before installing, make sure you have:

  1. .NET 9.0 SDK or later – Download here
  2. A C# solution (.sln or .slnx) or project (.csproj) to work with

Verify your .NET SDK version:

dotnet --version

The output should be 9.0.x or higher.


Quick Start

1. Install

dotnet tool install -g RoslynMcp.Server

2. Configure

Create a .mcp.json file in your project root (for Claude Code):

{
  "mcpServers": {
    "roslyn-refactor": {
      "type": "stdio",
      "command": "roslyn-mcp",
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "roslyn-refactor": { "type": "stdio", "command": "roslyn-mcp", "args": [] } } }