KS

kooshi/sharptoolsmcp

Developer tools

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

229 stars 37 forks 品質 62 トレンド 22MIT

Kooshi/SharptoolsMCPは、https://github.com/kooshi/sharptoolsmcp.からインポートされたMCPサーバー候補です。

概要

Kooshi/SharptoolsMCPは、https://github.com/kooshi/sharptoolsmcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

SharpToolsは、AIエージェントがC#コードベースの理解、分析、修正を進んだ高度な能力を持つことを目的とした堅牢なサービスです。.NETコンパイラプラットフォーム(Roslyn)を活用し、単純なテキストベースの操作をはるかに超えた深い静的分析と正確なコード操作を提供します。

SharpToolsは、人間開発者が依存するのと同じ洞察やツールをAIに提供し、より知的で信頼性の高いコード支援を実現するために設計されています。これは実質的にAIユーザー向けに作られたシンプルなIDEです。

このスイートは包括的な性質を持つため、既存のC#ソリューションの編集にはほぼ完全にスタンドアロンで使えます。SSEサーバーを使い、ルーターをポートフォワードすれば、ClaudeのウェブチャットUIを接続して完全なコーディングアシスタントとして機能させることも可能だと思います。

プロンプト

付属のIdentity Promptは私の個人用C#コーディングアシスタントで、このスイートと組み合わせるととても使いやすいです。そのまま使っても構いませんし、好みに合わせて修正しても構いませんし、完全に省略しても構いません。

VS Codeでは、copilot-instructions.mdに設定して、すべてのやり取りに含めてください。

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

README

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

SharpTools: Roslyn Powered C# Analysis & Modification MCP Server

SharpTools is a robust service designed to empower AI agents with advanced capabilities for understanding, analyzing, and modifying C# codebases. It leverages the .NET Compiler Platform (Roslyn) to provide deep static analysis and precise code manipulation, going far beyond simple text-based operations.

SharpTools is designed to give AI the same insights and tools a human developer relies on, leading to more intelligent and reliable code assistance. It is effectively a simple IDE, made for an AI user.

Due to the comprehensive nature of the suite, it can almost be used completely standalone for editing existing C# solutions. If you use the SSE server and port forward your router, I think it’s even possible to have Claude’s web chat ui connect to this and have it act as a full coding assistant.

Prompts

The included Identity Prompt is my personal C# coding assistant prompt, and it works well in combination with this suite. You’re welcome to use it as is, modify it to match your preferences, or omit it entirely.

In VS Code, set it as your copilot-instructions.md to have it included in every interaction.

The Tool Use Prompt is fomulated specifically for Github Copilot’s Agent mode. It overrides specific sections within the Copilot Agent System Prompt so that it avoids the built in tools.

It is available as an MCP prompt as well, so within Copilot, you just need to type /mcp, and it should show up as an option.

Something similar will be necessary for other coding assistants to prevent them from using their own default editing tools.

I recommend crafting custom tool use prompts for each agent you use this with, based on their individual system prompts.

Note

This is a personal project, slapped together over a few weeks, and built in no small part by its own tools. It generally works well as it is, but the code is still fairly ugly, and some of the features are still quirky (like removing newlines before and after overwritten members).

I intend to maintain and improve it for as long as I am using it, and I welcome feedback and contributions as a part of that.

Features

  • Dynamic Project Structure Mapping: Generates a “map” of the solution, detailing namespaces and types, with complexity-adjusted resolution.
  • Contextual Navigation Aids: Provides simplified call graphs and dependency trees for local code understanding.
  • Token Efficient Operation Designed to provide only the highest signal context at every step to keep your agent on track longer without being overwhelmed or requiring summarization.
    • All indentation is omitted in returned code, saving roughly 10% of tokens without affecting performance on the smartest models.
GitHub で README 全文を見る

インストール

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

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