TD 

tuna1999/dnspy-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
85 stars 16 forks 품질 70 트렌드 9
tuna1999/dnspy-mcp는 https://github.com/tuna1999/dnspy-mcp.]에서 수입된 MCP 서버 후보입니다
개요
tuna1999/dnspy-mcp는 https://github.com/tuna1999/dnspy-mcp.]에서 수입된 MCP 서버 후보입니다
개요(AI 번역)
DnSpy의 모델 콘텍스 프로토콜 (MCP) 서버 - .NET 디버거 및 어셈블리 편집기 - DnSpy의 엔진을 통해 디머클, 분석, 검색 및 패치 .NET 어셈블리를 직접 가능하게합니다.
하이라이트
- 55 MCP 도구 - 정적 분석, IL 패치 및 통합 디버거 컨트롤 (헤드리스의 36 도구)
- Byte-identical decompiler output - 동일한
ICSharpCode.Decompiler파이프라인 dnSpy.exe 사용 - ** 두 호스트, 하나의 코어 ** - dnSpy 확장 (HTTP) 또는 독립 헤드리스 exe (stdio); 동일한 도구 및 출력으로 실행
- Zero-drag transport - 확장은 최소한의
TcpListener-기반된 HTTP 수송을 사용하여 dnSpy의 런타임으로 버전 충돌 방지 - **기본적으로 처리 ** — 루프백 바인딩, 일정 기간 토큰 오, 통화 캡, 요청 크기 제한, per-tool timeouts, serialized mutations -Batch-ready — JSON-RPC 일괄 처리 요청 ( 배열을 종료, 주문한 결과를 얻을); 요청은 연결 당 순차적으로 실행되므로 처리에 대한 몇 가지 연결을 사용하십시오.
그것이 작동하는 방법
두 호스트는 하나의 도구 코어를 공유 (dnSpy.MCP.Core):
- Extension - 전체 UI 통합 (tree view, tab, Output pane)을 사용하여 dnSpy 내부를 실행합니다.
이 페이지는 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"
]
}
}
}