KD

kernelerr/dnspy.extension.mcp

Developer tools

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

266 stars 30 forks 品質 74 トレンド 27GPL-3.0

kernelerr/dnspy.extension.mcp は、https://github.com/kernelerr/dnspy.extension.mcp. からインポートされたMCPサーバー候補です。

概要

kernelerr/dnspy.extension.mcp は、https://github.com/kernelerr/dnspy.extension.mcp. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

ClaudeのようなAIアシスタントが、モデルコンテキストプロトコル(MCP)上でdnSpyExを通じて.NETアセンブリを扱うことができます。逆コンパイル、検索、クロスリファレンス追跡、ILのパッチ、シンボル名変更、BepInEx/Harmonyコード生成など、合計32のツールが含まれます。

中国語 / 中文说明:README.zh-CN.md を参照してください。

2つの方法で進める

ヘッドレス dnSpyの内部
実行するもの dnSpy.Extension.MCP.Headless.exe、ウィンドウなし 拡張機能、dnSpyウィンドウ内の
始まる方法 MCPクライアントが必要な時に起動し、その後停止する dnSpyを開いてサーバーを有効にする
トランスポート 標準 HTTP、http://localhost:3000
アセンブリ 独自のもの:AIは[open_filesでそれらを開きます。dnSpyで開いているもの(AIはさらに開くことができます)
パッチとリネーム save_assemblyが書き込むまでメモリに残る 同じもので、dnSpyのツリーとタブにリアルタイムで表示されています
入手先 オールインワンのzip オールインワンのzip、またはプラグイン専用のDLL

両者は同じツールやリソースを提供し、エンドツーエンドのテストスイートはそれぞれに対応して動作します。AIに作業を任せたいときはヘッドレスを使い、アセンブリを自分で見たいときはdnSpyを使いましょう。

クイックスタート

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

README

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

dnSpy MCP Extension

Lets AI assistants such as Claude work with .NET assemblies through dnSpyEx over the Model Context Protocol (MCP): decompile, search, follow cross-references, patch IL, rename symbols and generate BepInEx / Harmony code — 32 tools in all.

Chinese / 中文说明: see README.zh-CN.md.

Two ways to run it

Headless Inside dnSpy
What runs dnSpy.Extension.MCP.Headless.exe, no window The extension, inside the dnSpy window
How it starts Your MCP client launches it when needed and stops it afterwards You open dnSpy and turn on Enable Server
Transport stdio HTTP, http://localhost:3000
Assemblies Its own: the AI opens them with open_files Whatever is open in dnSpy (the AI can open more)
Patches and renames In memory until save_assembly writes them The same, and shown live in dnSpy’s tree and tabs
Where to get it The all-in-one zips The all-in-one zips, or the plugin-only DLL

Both serve the same tools and resources, and the end-to-end test suite runs against each. Use headless when you only want the AI to do the work; use dnSpy when you also want to look at the assemblies yourself.

Quick start

  1. Download the all-in-one zip for your system from Releases (which one?) and unzip it, e.g. to C:\Tools\dnSpy.

  2. Connect Claude. In Claude Code, either

    • register the headless host — Claude Code starts it when needed:
      claude mcp add --scope user dnspy -- "C:\Tools\dnSpy\dnSpy.Extension.MCP.Headless.exe"
      
    • or run dnSpy.exe, tick View → Options → MCP Server → Enable Server, and register its URL:
      claude mcp add --scope user --transport http dnspy http://localhost:3000
      

    For Claude Desktop and other clients, see Connecting a client.

  3. Ask, in plain language:

    “Open C:\Games\MyGame\MyGame_Data\Managed\Assembly-CSharp.dll, find every method that uses the string SAVEFILE, and show me the decompiled SaveGame method.”

    Claude picks the tools itself (open_files → search_string_literals → decompile_method).

Installation

Each zip on Releases is a complete dnSpy with the extension already installed and the headless host next to dnSpy.exe. Unzip it anywhere; there is nothing else to set up.

File dnSpy build Needs
dnSpy-MCP-win-x64.zip .NET 10, self-contained, x64 Nothing — the runtime is included
dnSpy-MCP-win-x86.zip .NET 10, self-contained, x86 Nothing — the runtime is included
dnSpy-MCP-net48.zip .NET Framework 4.8 .NET Framework 4.8 (part of Windows 10 and later)

Plugin-only (dnSpy already installed)

GitHub で README 全文を見る

インストール

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

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

設定

{ "mcpServers": { "dnspy": { "type": "stdio", "command": "C:\\Tools\\dnSpy\\dnSpy.Extension.MCP.Headless.exe", "args": [] } } }