Λογότυπο DecompilerServer

DecompilerServer

Κοινότητα
pardeike

A powerful MCP (Model Context Protocol) server for decompiling and analyzing .NET assemblies, with specialized support for Unity's Assembly-CSharp.dll files. DecompilerServer provides comprehensive decompilation, search, and code analysis capabilities through a rich set of tools and APIs.

Εκδότηςpardeike
ΑποθετήριοDecompilerServer
ΓλώσσαC#
Forks
16
Αστέρια
96
Διαθέσιμα εργαλεία
0
Τύπος μεταφοράςstdio
Κατηγορίες
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το DecompilerServer παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 0 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    96 αστέρια και 16 διακλαδώσεις στο συνδεδεμένο αποθετήριο.

DecompilerServer

DecompilerServer is an MCP server that decompiles and analyzes .NET assemblies. You connect it to your AI coding tool (Claude Desktop, Cursor, VS Code, Codex, etc.) and it lets the AI read, search, and compare .NET code — even across different versions of an assembly.

This is a particularly strong LLM use case because so much real-world .NET behavior lives in binaries the model cannot inspect on its own: third-party libraries, game assemblies, internal builds, and older releases. By giving the model direct decompiler-backed access to those assemblies, you turn "I only see the source in this repo" into "I can inspect the actual code that runs", which makes reverse engineering, migration work, debugging, and version-to-version analysis much more effective.

Common use cases: general .NET assembly inspection, Unity Assembly-CSharp.dll workflows, and multi-version browsing such as RimWorld mod porting.

Already familiar with .NET and MCP? Skip to Advanced Guide for build-from-source instructions, full tool reference, and development details.


Quick Start

This section helps you install DecompilerServer and connect it to your MCP client in a few steps.

What You Need

.NET 10 runtime — the prebuilt release binaries depend on it. Download and install the runtime for your platform before continuing.

Step 1 — Download

Go to the latest release and download the archive for your platform:

PlatformFile
Windows (x64)decompilerserver-v…-win-x64.zip
macOS (Apple Silicon)decompilerserver-v…-osx-arm64.tar.gz
macOS (Intel)decompilerserver-v…-osx-x64.tar.gz
Linux (x64)decompilerserver-v…-linux-x64.tar.gz
Linux (ARM64)decompilerserver-v…-linux-arm64.tar.gz

Extract the archive to a folder you can remember (for example ~/tools/decompiler-server).

Windows (PowerShell):

powershell
Expand-Archive decompilerserver-v*-win-x64.zip -DestinationPath "$HOME\tools\decompiler-server"

macOS / Linux:

bash
mkdir -p ~/tools/decompiler-server
tar -xzf decompilerserver-v*-*.tar.gz -C ~/tools/decompiler-server --strip-components=1

Step 2 — Configure Your MCP Client

Add DecompilerServer to your MCP client configuration. Replace the path below with the actual location where you extracted the files.

Edit the Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{
  "mcpServers": {
    "decompiler": {
      "command": "/absolute/path/to/DecompilerServer"
    }
  }
}

On Windows, use the .exe extension and escaped backslashes:

json
{
  "mcpServers": {
    "decompiler": {
      "command": "C:\\tools\\decompiler-server\\DecompilerServer.exe"
    }
  }
}

Restart Claude Desktop after saving.

Open Cursor Settings → MCP and add a new server, or edit .cursor/mcp.json in your project root:

json
{
  "mcpServers": {
    "decompiler": {
      "command": "/absolute/path/to/DecompilerServer"
    }
  }
}

On Windows, use the .exe extension and escaped backslashes.

Add an entry to your .vscode/mcp.json (or workspace settings):

json
{
  "servers": {
    "decompiler": {
      "type": "stdio",
      "command": "/absolute/path/to/DecompilerServer"
    }
  }
}

On Windows, use the .exe extension and escaped backslashes.

Add an entry to ~/.codex/config.toml:

toml
[mcp_servers.decompiler]
command = "/absolute/path/to/DecompilerServer"

If you run a framework-dependent build instead of the native app host, configure Codex like this:

toml
[mcp_servers.decompiler]
command = "dotnet"
args = ["/absolute/path/to/DecompilerServer/bin/Release/net10.0/DecompilerServer.dll"]

On Windows, use the .exe extension and escaped backslashes.

Step 3 — Use It

Once connected, ask your AI assistant to load and explore assemblies. For example:

"Load the assembly at /path/to/MyLibrary.dll and search for types that contain Controller."

The assistant will use DecompilerServer tools automatically. It can load assemblies, search types, decompile source, compare versions, and more. See the Workflow Reference for the full list of operations.

Tool approvals and plan mode

Inspection tools advertise the standard MCP readOnlyHint annotation so clients can recognize read-only operations in plan mode and approval policies. Loading, unloading, selecting contexts, changing settings, and explicit cache operations remain state-changing tools. Update the server and reconnect or restart your MCP client to refresh its tool catalog. Claude Code, Codex, and other clients decide how to use these hints; annotations do not override their permission settings.

Troubleshooting

ProblemSolution
"command not found" or the server does not startVerify the path in your MCP config points to the correct executable. On macOS/Linux, ensure the file is executable: chmod +x DecompilerServer.
"You must install .NET to run this application"Install the .NET 10 runtime. The prebuilt binaries do not include the runtime.
macOS blocks the binary ("unidentified developer")Open System Settings → Privacy & Security and allow the application, or run: xattr -d com.apple.quarantine DecompilerServer.
Server starts but the AI does not use itCheck that the MCP client has the server enabled. In Claude Desktop, restart the app. In Cursor, check the MCP panel. In VS Code, reload the window.
Assembly fails to loadConfirm the .dll path is correct and that the assembly is a managed .NET assembly (not a native library).

Advanced Guide

This section covers building from source, the full set of MCP launch options, the complete tool workflow, and contributor information.

Highlights

  • Load assemblies directly with assemblyPath or use Unity-friendly gameDir loading.
  • Keep multiple assemblies loaded at once under aliases such as rw14, rw15, and rw16.
  • Use memberId follow-up tools without repeatedly resupplying the alias; routing uses the member ID's MVID.
  • Compare aliases structurally with compare_contexts, then drill into types or members with compare_symbols.
  • Diff individual method bodies with compare_symbols(..., compareMode: "body").
  • Decompiled non-type member source is returned as a member-scoped snippet rather than a whole containing type.

Requirements

  • .NET 10 runtime for release assets or built output
  • .NET 10 SDK if you want to build from source

Build from Source

bash
git clone https://github.com/pardeike/DecompilerServer.git
cd DecompilerServer
dotnet build DecompilerServer.sln -c Release
dotnet run --project DecompilerServer.csproj -c Release

MCP Client Launch Options

Framework-dependent build output (requires dotnet on PATH):

text
command: dotnet
args:
  - /absolute/path/to/DecompilerServer/bin/Release/net10.0/DecompilerServer.dll

Native app host from dotnet build:

  • macOS/Linux: /absolute/path/to/DecompilerServer/bin/Release/net10.0/DecompilerServer
  • Windows: C:\\absolute\\path\\to\\DecompilerServer\\bin\\Release\\net10.0\\DecompilerServer.exe

Native app host from dotnet publish:

  • macOS/Linux: /absolute/path/to/DecompilerServer/bin/Release/net10.0/publish/DecompilerServer
  • Windows: C:\\absolute\\path\\to\\DecompilerServer\\bin\\Release\\net10.0\\publish\\DecompilerServer.exe

Release assets are packaged as framework-dependent single-file executables and still require the .NET 10 runtime.

Trusted Local Codex Install

If Codex for Mac warns about the downloaded MCP executable, install the server from source instead of running a quarantined release artifact:

bash
./scripts/install-codex-mcp.sh

The installer publishes an osx-arm64 Release build to ~/.codex/mcp-servers/decompiler/DecompilerServer, removes quarantine metadata, signs the executable with the best local code-signing identity available, updates Codex's global decompiler MCP entry to launch that installed copy, installs the bundled decompiler-mcp skill into ~/.codex/skills/decompiler-mcp, and maintains a managed DecompilerServer pointer block in ~/.codex/AGENTS.md.

For local Codex stdio use, this avoids Safari/Gatekeeper quarantine state on downloaded binaries. For distributable Gatekeeper acceptance, sign with a Developer ID Application identity and notarize the archive before installation.

Workflow Reference

Load one or more assemblies:

text
load_assembly({
  "assemblyPath": "/path/to/rw14/Assembly-CSharp.dll",
  "contextAlias": "rw14"
})

load_assembly({
  "gameDir": "/path/to/rw16",
  "assemblyFile": "Assembly-CSharp.dll",
  "contextAlias": "rw16"
})

Inspect loaded and registered aliases:

text
list_contexts({})
status({})
get_server_stats({ "contextAlias": "rw16" })

Registered aliases are restored lazily when the server starts. list_contexts returns both the currently loaded context items and registeredAliases; selecting or explicitly addressing a registered alias loads it on demand. This keeps a large workspace history from consuming memory and file descriptors in every MCP client process.

At most four contexts are resident by default. When another context is needed, the least recently used context that is not serving a tool call is disposed while its lightweight registration remains available for transparent reload. Set DECOMPILER_MAX_LOADED_CONTEXTS to a positive integer in the MCP server environment to choose a different hard limit. A request returns context_capacity_busy rather than exceeding the limit when every resident context is actively in use.

Search and decompile:

text
search_symbols({
  "query": "Pawn.Kill",
  "limit": 10,
  "contextAlias": "rw16"
})

search_types({
  "query": "Pawn",
  "limit": 10,
  "contextAlias": "rw16"
})

list_members({
  "typeId": "<type-member-id-from-search>",
  "mode": "signatures"
})

get_decompiled_source({
  "memberId": "<member-id-from-search>"
})

Once you have a memberId, follow-up tools normally route to the correct loaded assembly automatically.

For foreign-code exploration, prefer this path before falling back to shell tools:

  1. Load the assembly with load_assembly, or activate a registered alias by passing contextAlias, then verify the active alias with list_contexts or status.
  2. Start broad with search_symbols when you have a fragment; use resolve_member_id first when you have a fully-qualified or XML-doc-like guess such as Namespace.Type.Member or M:Namespace.Type.Member.
  3. Use list_members or get_members_of_type on the resolved type before guessing method IDs.
  4. Fetch code with get_decompiled_source, get_source_slice, or plan_chunking.
  5. Move outward with find_callers, find_usages, find_callees, get_il, or compare tools. find_callees returns callee-focused targetMemberId, symbol, opcode, offset, and resolution fields; external calls are explicit instead of pretending to be canonical local IDs.
  6. Use get_server_stats when you need cache/index/performance diagnostics for one alias; status is the cheaper current-alias overview.

If a guessed member does not exist, member-based tools return structured error hints with likely candidates and concrete next tool calls. search_symbols also degrades gracefully for Type.MissingMember: if the type resolves but the member does not, it returns the type, its direct members, and a diagnostic instead of an empty success.

Compare aliases:

text
compare_contexts({
  "leftContextAlias": "rw14",
  "rightContextAlias": "rw16",
  "namespaceFilter": "Verse",
  "deep": true
})

compare_symbols({
  "leftContextAlias": "rw14",
  "rightContextAlias": "rw16",
  "symbol": "Verse.Root_Play",
  "symbolKind": "type"
})

compare_symbols({
  "leftContextAlias": "rw14",
  "rightContextAlias": "rw16",
  "symbol": "Verse.Pawn:Kill",
  "symbolKind": "method",
  "compareMode": "body"
})

Development

bash
./scripts/verify.py

The verification command runs formatting, Release tests, and a diff check. It prints ok only when all steps pass; full output is saved under ignored artifacts/logs/. On failure it reports the failed step, diagnostics, and log path.

Agent Skill

The repo includes a portable skill at skills/decompiler-mcp/SKILL.md. For Codex, ./scripts/install-codex-mcp.sh installs that skill and keeps the global AGENTS.md pointer up to date. For Claude or another skill-aware assistant, copy the skill folder manually to bias agents toward the intended DecompilerServer workflow and away from premature shell fallbacks.

Releasing

The GitHub Release workflow is triggered by pushing a tag that starts with v and matches the project version in DecompilerServer.csproj.

For example, if the project version is 1.3.7:

bash
git tag -a v1.3.7 -m "Release v1.3.7"
git push origin v1.3.7

Documentation

  • README.md: user-facing overview and quick start
  • ARCHITECTURE.md: durable technical reference (implementation details, routing, compare semantics, testing)
  • TODO.md: backlog and future work

If you are changing implementation details, tool-routing behavior, compare semantics, or test patterns, update ARCHITECTURE.md rather than creating a new standalone guide.

Εγκατάσταση

TypingMind
Προαπαιτούμενα:

Node.js 18+

{
  "mcpServers": {
    "pardeike-decompilerserver": {
      "command": "",
      "args": []
    }
  }
}

Χρησιμοποιήστε το MCP DecompilerServer με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το DecompilerServer, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το DecompilerServer ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP DecompilerServer.
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "pardeike-decompilerserver": {
      "command": "npx",
      "args": [
        "-y",
        "DecompilerServer"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του DecompilerServer και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του DecompilerServer.
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω DecompilerServer;
DecompilerServer
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του DecompilerServer.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP DecompilerServer;

Το DecompilerServer είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το DecompilerServer MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το DecompilerServer με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP DecompilerServer με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το DecompilerServer, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το DecompilerServer MCP στο TypingMind;

Το DecompilerServer λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το DecompilerServer MCP στο TypingMind;

Το DecompilerServer διαθέτει δυνατότητες MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το DecompilerServer MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το DecompilerServer απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇