SD

s78910/dnspy.mcp.server

Developer tools

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

5 stars 4 forks 品質 61 トレンド 13MIT

dnSpy MCP Server is a production-ready Model Context Protocol server integrating dnSpy's .NET analysis for AI assistants.

概要

A Model Context Protocol (MCP) server embedded in dnSpy that exposes full .NET assembly analysis, editing, debugging, memory-dump, and deobfuscation capabilities to any MCP-compatible AI assistant. : 1.6.0 | : 95 | : ✅ 0 errors, 0 warnings | : .NET 4.8 + .NET 10.0-windows — de4dot libraries are bundled in libs/de4dot/ (net48) and libs/de4dot-net8/ (net8/net10). No external dependencies required; all deobfuscation tools are available in both build targets. The MCP Server DLL is output directly into dnSpy's bin directory so it loads automatically when you start dnSpy. 1. Start dnSpy — the MCP server starts automatically on http://localhost:3100 2. Verify it is running: 3. Configure your MCP client (see next section) The server implements the (spec version 2024-11-05). On connect the server sends an event: endpoint with the per-session POST URL; responses are pushed back over the SSE stream. : GET /sse (or /events, /) opens the event stream.

README

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

dnSpy MCP Server

A Model Context Protocol (MCP) server embedded in dnSpy that exposes full .NET assembly analysis, editing, debugging, memory-dump, and deobfuscation capabilities to any MCP-compatible AI assistant.

Version: 1.6.0 | Tools: 95 | Status: ✅ 0 errors, 0 warnings | Targets: .NET 4.8 + .NET 10.0-windows


Table of Contents

  1. Features
  2. Build & Install
  3. Client Configuration
  4. Tool Reference
  5. Pattern Syntax
  6. Pagination
  7. Usage Examples
  8. Architecture
  9. Project Structure
  10. Configuration
  11. Troubleshooting

Features

Category Capabilities
Assembly List loaded assemblies, namespaces, type counts, P/Invoke imports
Types Inspect types, fields, properties, events, nested types, attributes, inheritance
Decompilation Decompile entire types or individual methods to C#
IL View IL instructions, raw bytes, local variables, exception handlers
Analysis Find callers/users, trace field reads/writes, call graphs, dead code, cross-assembly dependencies
Edit Rename members, change access modifiers, edit metadata, patch methods, inject types, save to disk
Resources List, read, add, remove embedded resources (ManifestResource table); extract Costura.Fody-embedded assemblies
Debug Manage breakpoints (with conditions), launch/attach processes, pause/resume/stop sessions, single-step (over/into/out), inspect call stacks, read locals, evaluate expressions
Memory Dump List runtime modules, dump .NET or native modules from memory, read/write process memory, extract PE sections
Static PE Analysis Scan raw PE bytes for strings; all-in-one ConfuserEx unpacker
Deobfuscation de4dot integration: detect obfuscator, rename mangled symbols, decrypt strings. Both in-process (deobfuscate_assembly) and external process (run_de4dot) modes available in all builds
Window / Dialog List active dialog/message-box windows (Win32 #32770 + WPF) in the dnSpy process; dismiss them by clicking any button by name (supports EN and ES)
GitHub で README 全文を見る

インストール

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

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

設定

{ "mcpServers": { "dnspy": { "type": "sse", "url": "http://localhost:3100/sse" } } }