
tuna1999/dnspy-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
tuna1999/dnspy-mcp は https://github.com/tuna1999/dnspy-mcp. からインポートされた MCP サーバーの候補です
概要
tuna1999/dnspy-mcp は https://github.com/tuna1999/dnspy-mcp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
DnSpy 用のモデルコンテキストプロトコル(MCP)サーバー — .NET デバッガとアセンブリエディタ — AI エージェントが dnSpy のエンジンを直接分解、解析、検索、パッチ .NET アセンブリを有効にします。
##ハイライト
-55 MCP ツール — 静的解析、IL のパッチ作成、および統合デバッガ制御 (36 ツールのヘッドレス)
-Byte-identical decompiler output — 同じ[[ICSharpCode.Decompiler]パイプラインdnSpy.exeが使用する
-2つのホスト、1つのコア - dnSpy拡張子(HTTP)またはスタンドアロンヘッドレスexe(stdio)として実行します。 同じツールと出力
- ゼロドラッグトランスポート — 拡張子は、バージョンがdnSpyのランタイムと競合しないように、最小限の[
TcpListenerベースのHTTPトランスポートを使用します -デフォルトで隠される — ループバックバインド、定数トークンauth、通貨キャップ、リクエストサイズの制限、ツールごとのタイムアウト、シリアル化されたミューテーション - Batch-ready — JSON-RPC バッチリクエスト (配列を送信します。, 注文結果を取得します。) リクエストは接続ごとに順次実行されるので、スループットに複数の接続を使用する
使い方
2つのホストは1つのツールコア(dnSpy.MCP.Core)を共有します。
-Extension — dnSpy 内でフルUI統合(ツリービュー、タブ、出力ペイン)を実行します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
dnSpy MCP Server
A Model Context Protocol (MCP) server for dnSpy — the .NET debugger and assembly editor — enabling AI agents to decompile, analyze, search, and patch .NET assemblies directly through dnSpy’s engine.
Highlights
- 55 MCP tools — static analysis, IL patching, and integrated debugger control (36 tools in headless)
- Byte-identical decompiler output — powered by the same
ICSharpCode.Decompilerpipeline dnSpy.exe uses - Two hosts, one core — run as a dnSpy extension (HTTP) or a standalone headless exe (stdio); identical tools and output
- Zero-drag transport — the extension uses a minimal
TcpListener-based HTTP transport, avoiding version conflicts with dnSpy’s runtime - Hardened by default — loopback bind, constant-time token auth, concurrency caps, request-size limits, per-tool timeouts, serialized mutations
- Batch-ready — JSON-RPC batch requests (send an array, get ordered results); requests run sequentially per connection, so use several connections for throughput
How It Works
Two hosts share one tool core (dnSpy.MCP.Core):
┌─ Extension (in dnSpy) ─────────────────┐ ┌─ Headless (standalone exe) ─────────┐
│ dnSpy loads extension → MCP Server │ │ dotnet dnspy-mcp-headless.dll │
│ menu → Start → TcpListener on :5150 │ │ --load foo.dll (repeatable, globs) │
│ ↕ │ │ ↕ │
│ AI agent — HTTP POST (JSON-RPC 2.0) │ │ AI agent — stdio (MCP SDK) │
└────────────┬───────────────────────────┘ └──────────────┬──────────────────────┘
└──────────► dnSpy.MCP.Core ◄──────────────────┘
(36 tools + decompiler bridge,
output identical to dnSpy.exe)
- Extension — runs inside dnSpy with full UI integration (tree view, tabs, Output pane). Started manually from the MCP Server menu so WPF is fully initialized before any tool call touches the UI thread.
- Headless — standalone stdio MCP server for batch analysis: same tools, same decompiled output, no UI, no dnSpy install required at analysis time (only the vendored decompiler DLLs in
deps/).
Tools (55 total · 36 in headless)
Decompiler
| Tool | Description |
|---|---|
decompile_method |
Decompile a method to C#. Accepts full name (Namespace.Class::Method), metadata token (0x06000001), or partial name |
decompile_type |
Decompile an entire type (all members) to C# |
decompile_assembly |
Decompile all types in the assembly (limited to 10 for brevity) |
Search
| Tool | Description |
|---|
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"dnspy-headless": {
"command": "dotnet",
"args": [
"D:\\path\\to\\publish\\headless\\dnspy-mcp-headless.dll",
"--load", "D:\\path\\to\\target.dll"
]
}
}
}