Logo vun dnSpy MCP Extension

dnSpy MCP Extension

Communautéit
KernelErr

MCP extension for dnSpy.

EditeurKernelErr
RepositorydnSpy.Extension.MCP
SproochC#
Forks
26
Stären
230
Disponibel Tools
0
Transporttypstreamable-http
Kategorien
LizenzGPL-3.0
Linken
  • Tools mat KI-Workflows verbannen

    dnSpy MCP Extension stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    230 Stären an 26 Forks aus dem verlinkte Repository.

dnSpy MCP Extension

A Model Context Protocol (MCP) extension for dnSpyEx that exposes .NET assembly analysis and IL-editing tools to AI assistants like Claude.

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

Quick Start

From zero to "ask Claude about your assembly" in a few minutes:

  1. Get it running. Download the all-in-one zip for your system from Releases (the MCP extension is already bundled inside), unzip anywhere, and run dnSpy.exe. Already have dnSpy installed? Use the plugin-only DLL instead.

  2. Enable the server. In dnSpy: View → Options → MCP Server → tick Enable Server → OK. Note the Port shown on that page — and check the Server Log pane for the port it actually bound to (it falls back to the next free port if yours is taken). Call that <port> below. Sanity check: open http://localhost:<port>/ in a browser (you'll see a status page) or run curl http://localhost:<port>/health.

  3. Load your target. Open the assembly you want to analyze (File → Open, or drag a DLL onto dnSpy) — e.g. a Unity game's Assembly-CSharp.dll. The tools operate on whatever is loaded in the tree. (Or skip this and let the AI load it for you once connected — see open_files.)

  4. Connect your AI client. For Claude Code (replace <port> with the one from step 2):

    bash
    claude mcp add --transport http dnspy http://localhost:<port>

    Other clients (Claude Desktop, codex, MCP Inspector) — see Client configuration.

  5. Ask. Just talk to it in natural language, e.g.:

    "In Assembly-CSharp, find every method that uses the string SAVEFILE, then show me the decompiled SaveGame method."

    Claude picks the right tools (search_string_literals → find_references → decompile_method) on its own. See Features for everything it can do.

Features

MCP Tools (32 total)

Loading

  1. open_files — load .NET assemblies/modules into dnSpy from disk (like File → Open, driven by the AI). paths accepts files and/or directories — open several DLLs at once, or every *.dll in a folder (e.g. a Unity game's Managed directory; recursive / pattern supported). Reads metadata only, never executes. Returns per-file loaded / already_loaded / failed

Analysis & navigation

  1. list_assemblies — list all loaded assemblies with metadata (name_filter substring/wildcard to cut through hundreds of Unity framework modules)
  2. get_assembly_info — detailed info about a specific assembly (paginated namespaces)
  3. list_types — all types in an assembly or namespace; paginated (page_size override, names_only compact mode). Metadata rows include the TypeDef token. Includes nested + compiler-generated state machines by default (is_nested / is_compiler_generated flags; include_nested=false for top-level only). base_type filters to (transitive) subclasses, e.g. base_type='MonoBehaviour'
  4. get_type_info — TypeDef token, type generic-parameter tokens, fields/properties/events with their metadata tokens, and paginated methods. Full method rows include MethodDef, Param, and method GenericParam tokens. compact drops detail; members_filter keeps matching names
  5. list_methods — methods with MethodDef tokens, parameter rows with Param tokens, method generic-parameter rows with GenericParam tokens, and parameter_types; pass renameable tokens to rename_symbol_by_token
  6. get_type_fields — filter fields by wildcard pattern (e.g. *Bonus*)
  7. get_type_property — detailed info about a property including getter/setter
  8. search_types — wildcard / substring type search; metadata rows include the TypeDef token; assembly_name scopes to one assembly, while names_only / page_size control output. Matches nested compiler-generated types too (e.g. *<Awake>d__*)
  9. search_members — wildcard / substring search for members (methods / fields / properties / events) by name across all assemblies (or one via assembly_name); kinds filters by member kind. The member-level counterpart of search_types (together they are dnSpy's Search Assemblies / Ctrl+Shift+K). Each hit carries declaring_type, member_kind, full signature, token (MDToken), is_static / is_public — feed renameable tokens to rename_symbol_by_token
  10. find_path_to_type — BFS over fields/properties to connect two types
  11. decompile_method — decompile a method to C# (accepts parameter_types / method_token to disambiguate overloads). Nested types are addressable (Outer/Inner, ./+// all accepted), so you can decompile a state machine's MoveNext directly. For async/iterator kickoffs, when the decompiler can't inline the state machine back into await/yield (common on Unity output) the raw MoveNext body is appended automatically (include_state_machine=false to opt out)
  12. decompile_type — decompile a whole type to C# (all members) by name — the "click the class and read its source" view, in one call. Nested types addressable. For very large types prefer get_type_info (compact) or decompile_method
  13. decompile_by_token — decompile a method (or type) by MDToken alone, no type name needed — ideal for tokens straight from xref / string-search / member-search results (assembly_name recommended; tokens are per-module). Same async/iterator rescue as decompile_method. Token inputs everywhere (token, method_token) accept a decimal uint or a 0x-prefixed hex string, so a token copied from dnSpy's UI works as-is

Cross-references (xref)

  1. find_callers — every method that calls a given method (call / callvirt / newobj / ldftn), across all assemblies. Each hit carries caller type/method, MDToken, opcode, IL index/offset
  2. find_callees — the inverse: what a single method uses (methods it calls, fields it reads/writes, types it touches), deduplicated per referenced member with opcodes + site count and a resolved MDToken (dnSpy Analyze's "Uses")
  3. find_references — every IL site referencing a method / field / type / string (target_kind selects), across all assemblies
  4. find_overrides — virtual / interface-method polymorphism (dnSpy Analyze's "Overridden By" / "Overrides"): direction='overridden_by' lists every type that overrides a class virtual or implements an interface method (implicit + explicit; is_interface_impl flags the latter) — the concrete bodies a callvirt can dispatch to, which find_callers can't surface; direction='overrides' walks the base chain for what a method overrides
  5. find_unity_messages — list the Unity lifecycle / message methods (Awake / Update / OnTriggerEnter / OnGUI / …) on a type, or across an assembly. Unity invokes these by name with no IL call site, so xref can't find them — yet they're the entry points you hook in a MonoBehaviour. Each hit carries parameter_types + MDToken
  6. find_by_attribute — find types/members carrying a given custom attribute ([SerializeField], [BepInPlugin], [CompilerGenerated], …) — "locate by convention". Suffix-tolerant name match; targets restricts kinds (type/method/field/property/event). Each hit carries target_kind, declaring_type, MDToken, and the attribute's FullName

Strings & constants

  1. search_string_literals — reverse-lookup a string across assemblies: "which method emits this ldstr?" (substring or * wildcard, optional single-assembly scope). Each hit carries declaring type, method, MDToken, signature, IL index/offset
  2. list_string_constants — list every ldstr in a type (incl. nested types) or a single method
  3. search_constants — find where a numeric constant is used (ldc.i4* / ldc.i8 / ldc.r4 / ldc.r8) — the number counterpart of search_string_literals (magic numbers, item IDs, thresholds). Integer query matches integer constants; a decimal-point query matches floats. Scope with assembly_name

IL & metadata viewing/editing

  1. get_method_il — instructions (index, offset, opcode, operand) + locals + exception handlers + body flags
  2. patch_method_il — ordered replace / insert / delete / set_init_locals edits; snapshot-on-first-patch
  3. force_return — replace a body with return <value> (true/false, a number, null, or default) without hand-writing IL — the common "make IsPremium() return true" patch. Void methods become a no-op
  4. nop_method — empty a method out (void → bare ret; value-returning → return default). For neutralizing a tick/telemetry/anti-cheat call
  5. revert_method_il — restore the pre-patch body shape (also undoes force_return / nop_method)
  6. rename_symbol_by_token — unified metadata rename entry point. target_kind selects type / class / enum / interface / struct / delegate, method, field, enum_member, enum_members, property, event, parameter, or generic_parameter. Singular targets use new_name; enum_members uses the complete value-mapped members array. Matching same-module references and open decompiler tabs are refreshed where applicable
  7. save_assembly — write the module to disk (timestamped backup on overwrite, NativeWrite preserves native stubs / Win32 resources / delay-loaded imports, GAC refused)

Codegen

  1. generate_bepinex_plugin — a full BepInEx plugin: the BaseUnityPlugin shell (Awake wiring Harmony.PatchAll, OnDestroy unpatch) plus a [HarmonyPatch] class per hook. Each hook is resolved against the target assembly so its patch is signature-aware (real __instance / ref __result / named params), not an empty stub; unresolved hooks degrade to a comment. Per-hook patch_type (postfix/prefix/transpiler)
  2. generate_harmony_patch — a compile-ready HarmonyX patch class for a real method, with the right injected params read from its actual signature: ref <ReturnType> __result for a postfix, __instance for instance methods, the original parameters by name, and a new Type[]{...} disambiguator when the name is overloaded. patch_type = postfix / prefix (returns bool to skip the original) / transpiler

MCP Resources (6 total)

Embedded BepInEx documentation served over resources/list / resources/read:

  1. plugin-structure
  2. harmony-patching (Prefix / Postfix / Transpiler)
  3. configuration
  4. common-scenarios
  5. il2cpp-guide
  6. mono-vs-il2cpp

All docs ship inside the DLL — no network required.

IL viewing and editing

See, patch, and save bytecode from an AI client. Mirrors the dnSpy Edit Method Body dialog.

Operand grammar

Each instruction's operand is a single tagged string; the same grammar is used by get_method_il (read) and patch_method_il (write), so operands round-trip unchanged.

TagExampleOpcodes
int: / int8: / uint8: / long:int:42ldc.i4, ldc.i4.s, ldc.i8
float: / double:double:3.14ldc.r4, ldc.r8
str: (JSON-quoted)str:"hello\n"ldstr
method: (dnlib FullName)method:System.Void Ns.T::M(System.Int32)call, callvirt, newobj, ldftn, ldvirtftn, jmp
field:field:System.Int32 Ns.T::Fldfld, stfld, ldsfld, stsfld, ldflda, ldsflda
type:type:System.Stringcastclass, isinst, box, unbox, newarr, initobj, ldelem*, stelem*, …
token:method:… / token:field:… / token:type:…token:type:System.Stringldtoken
label:<idx>label:7br, brtrue.s, blt, …
switch:[<i>,<i>,…]switch:[3,7,12]switch
local:<idx>local:0ldloc*, stloc*
arg:<idx>arg:1ldarg*, starg*
(empty)""no operand (ldarg.0, add, ret, …)

calli / InlineSig is not supported.

End-to-end: patch a constant and persist

Assume TestIL.dll contains public static int AddOne(int x) => x + 1;.

bash
# 1. Find the method (parameter_types disambiguates overloads).
curl -s -X POST http://localhost:3000/ -H "Content-Type: application/json" -d '{
  "jsonrpc":"2.0","id":1,"method":"tools/call","params":{
    "name":"list_methods",
    "arguments":{"assembly_name":"TestIL","type_full_name":"TestIL.Simple"}}}'

# 2. Read the IL.
curl -s -X POST http://localhost:3000/ -H "Content-Type: application/json" -d '{
  "jsonrpc":"2.0","id":1,"method":"tools/call","params":{
    "name":"get_method_il",
    "arguments":{"assembly_name":"TestIL","type_full_name":"TestIL.Simple","method_name":"AddOne"}}}'
# Instructions include: {"index":1,"opcode":"ldc.i4.1","operand":""}

# 3. Replace the +1 with +41.
curl -s -X POST http://localhost:3000/ -H "Content-Type: application/json" -d '{
  "jsonrpc":"2.0","id":1,"method":"tools/call","params":{
    "name":"patch_method_il",
    "arguments":{"assembly_name":"TestIL","type_full_name":"TestIL.Simple","method_name":"AddOne",
      "edits":[{"op":"replace","index":1,"opcode":"ldc.i4","operand":"int:41"}]}}}'

# 4. Save. Original file is backed up to <path>.<yyyyMMdd-HHmmss>.bak first.
curl -s -X POST http://localhost:3000/ -H "Content-Type: application/json" -d '{
  "jsonrpc":"2.0","id":1,"method":"tools/call","params":{
    "name":"save_assembly",
    "arguments":{"assembly_name":"TestIL"}}}'

Reload the saved DLL in a fresh process and AddOne(10) returns 51 instead of 11.

Caveats

  • No Ctrl+Z. patch_method_il does not route through dnSpy's undo stack. Use revert_method_il — the snapshot is taken the first time a given method is patched, and dropped after revert or after a successful save.
  • dnSpy's in-memory view is not refreshed after save. Reopen the assembly in dnSpy to see the saved state in the running instance.
  • GAC paths are refused. Saving mscorlib etc. returns a -32602 error.
  • Instruction-level only. Adding / removing locals or exception handlers is out of scope; get_method_il exposes them read-only.

Installation

Recommended: all-in-one zip

Head to Releases and download the bundle that matches your system — the extension is already placed inside, no paths to figure out:

FileContentsRuntime requirement
dnSpy-MCP-win-x64.zipdnSpy .NET 10 self-contained x64 + MCP extensionNone — runtime is bundled
dnSpy-MCP-win-x86.zipdnSpy .NET 10 self-contained x86 + MCP extensionNone — runtime is bundled
dnSpy-MCP-net48.zipdnSpy .NET Framework 4.8 build + MCP extension.NET Framework 4.8 (default on Windows 10+)
  1. Download and unzip anywhere.
  2. Double-click dnSpy.exe.
  3. Open View → Options → MCP Server, tick Enable Server, click OK.

That's it. If you already use dnSpy and just want the plugin, see "Plugin-only" below.

Plugin-only (for users who already have dnSpy installed)

  1. Download the DLL matching your dnSpy runtime:
    • dnSpy.Extension.MCP-net48.dll — .NET Framework 4.8 dnSpy
    • dnSpy.Extension.MCP-net10.0-windows.dll — .NET 10 dnSpy
  2. Rename to dnSpy.Extension.MCP.x.dll (the .x suffix is required by dnSpy's extension loader).
  3. Create the folder dnSpy.Extension.MCP under <dnSpy-Install>\bin\Extensions\ and put the DLL inside.
  4. Restart dnSpy.

The final path must look exactly like this — same folder name as the DLL stem, .x.dll suffix present, one level deep under Extensions\:

<dnSpy-Install>\
└── bin\
    └── Extensions\
        └── dnSpy.Extension.MCP\           ← folder (create if missing)
            └── dnSpy.Extension.MCP.x.dll  ← DLL with the .x suffix

Concrete example if dnSpy is installed at C:\Tools\dnSpy:

C:\Tools\dnSpy\bin\Extensions\dnSpy.Extension.MCP\dnSpy.Extension.MCP.x.dll

If the DLL ends up directly under bin\Extensions\ (no subfolder), or without the .x suffix, dnSpy silently skips it and the MCP Server settings page will not appear.

From source

bash
# Clone dnSpyEx (submodules are required)
git clone --recursive https://github.com/dnSpyEx/dnSpy.git
cd dnSpy

# Clone this extension into the Extensions directory
git clone https://github.com/KernelErr/dnSpy.Extension.MCP.git Extensions/dnSpy.Extension.MCP

# Build (both TFMs)
cd Extensions/dnSpy.Extension.MCP
dotnet build -c Release

# Deploy
cp bin/Release/net10.0-windows/dnSpy.Extension.MCP.x.dll \
   <dnSpy-Install>/bin/Extensions/dnSpy.Extension.MCP/

Configuration

Settings live under View → Options → MCP Server:

  • Enable Server — starts/stops the HTTP server immediately when toggled and applied.
  • Port — preferred TCP port (default 3000). If the port is already in use, the server automatically tries port + 1, up to 20 attempts, and logs which port it actually bound to. Check the Server Log pane for the resolved port.
  • Host — bind address (default localhost).

Transports

All three transports run on the same HttpListener on the same port. The server picks the right one by inspecting the path, HTTP method, and Accept header of each request.

Streamable HTTP (MCP 2025-03-26)

Single-endpoint transport used by codex and other modern MCP clients. The client POSTs JSON-RPC requests with Accept: application/json, text/event-stream; the server returns the JSON-RPC response inline as application/json and allocates a session on initialize via the Mcp-Session-Id response header. Subsequent POSTs must echo that header. The server also honours GET on the same endpoint for server-initiated SSE and DELETE for teardown.

Both / and /mcp are accepted as the endpoint path.

bash
# 1. Initialize — server returns the session ID in the Mcp-Session-Id header.
curl -i -X POST http://localhost:3000/ \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize"}'
# HTTP/1.1 200 OK
# Mcp-Session-Id: <sid>
# Content-Type: application/json
# {"jsonrpc":"2.0","id":1,"result":{...}}

# 2. Subsequent calls echo the session header.
curl -X POST http://localhost:3000/ \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -H "Mcp-Session-Id: <sid>" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

# 3. Tear down explicitly (optional — the server also drops the session on shutdown).
curl -X DELETE http://localhost:3000/ -H "Mcp-Session-Id: <sid>"

Codex ~/.codex/config.toml:

toml
[mcp_servers.dnspy-mcp]
type = "streamable-http"
url = "http://localhost:3000"

Plain HTTP JSON-RPC

One-shot request/response — POST JSON-RPC to / without text/event-stream in Accept and read the response from the same HTTP response body. Useful for quick curl testing and for MCP clients that only speak plain HTTP.

The server binds all loopback identities, so localhost, 127.0.0.1, and [::1] all work. Opening http://localhost:<port>/ in a browser shows a small status page (the root only speaks JSON-RPC/SSE, so a browser GET returns that page rather than a 404).

bash
curl -s http://localhost:3000/health
# {"status":"ok","service":"dnSpy MCP Server"}
curl -s http://127.0.0.1:3000/health   # also works (not just localhost)

curl -s -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize"}'

Server-Sent Events (MCP 2024-11-05)

Legacy two-endpoint transport kept for backwards compatibility with MCP Inspector and older clients: a long-lived SSE stream, plus a POST endpoint for client messages.

  1. GET /sse — opens text/event-stream. The first event (event: endpoint) carries the URL the client should POST to (/message?sessionId=<id>).
  2. POST /message?sessionId=<id> — accepts a JSON-RPC request, returns 202 Accepted, and writes the real JSON-RPC response onto the corresponding SSE stream as an event: message.
bash
# Terminal A: open the stream and keep it open
curl -N http://localhost:3000/sse
# event: endpoint
# data: /message?sessionId=<sessionId>
# ... (later, once POST arrives) ...
# event: message
# data: {"jsonrpc":"2.0","id":1,"result":...}

# Terminal B: send a request on that session
curl -X POST "http://localhost:3000/message?sessionId=<sessionId>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize"}'
# HTTP 202 Accepted — the response appears on Terminal A's SSE stream

Client configuration

Claude Code

Use the CLI to register the server once — it picks up the Streamable HTTP transport at /:

bash
claude mcp add --transport http dnspy http://localhost:3000
# verify:
claude mcp list

Or add it to a checked-in .mcp.json at your project root (scoped to the project):

json
{
  "mcpServers": {
    "dnspy": {
      "type": "http",
      "url": "http://localhost:3000"
    }
  }
}

Run /mcp inside Claude Code to confirm dnspy is connected and list its tools.

Claude Desktop

json
{
  "mcpServers": {
    "dnspy": {
      "command": "http",
      "args": ["http://localhost:3000"]
    }
  }
}

codex

See the Streamable HTTP section above for the ~/.codex/config.toml snippet.

Development

bash
# Single-TFM builds for fast iteration
dotnet build -c Debug -f net48
dotnet build -c Debug -f net10.0-windows

Project layout

dnSpy.Extension.MCP/
├── .github/workflows/      GitHub Actions (build, release)
├── McpServer.cs            HttpListener HTTP + SSE + Streamable HTTP + port fallback
├── McpProtocol.cs          JSON-RPC 2.0 / MCP DTOs
├── McpTools.cs             Analysis tools + MEF export + dispatch (sealed partial)
├── McpTools.IL.cs          IL view/patch/revert/save + operand renderer & parser
├── McpTools.Rename.cs      TypeDef-token class/enum rename + TypeRef/tree synchronization
├── McpSettings.cs          Settings view-model + persistence + log (disk log in Debug only)
├── McpSettingsPage.cs      IAppSettingsPageProvider for dnSpy settings dialog
├── BepInExResources.cs     Embedded BepInEx docs (6 resources)
├── TheExtension.cs         IExtension entry point; starts server on Loaded
├── tests/fixtures/         TestIL.cs + build-fixture.ps1 + run-tests.ps1 (E2E harness)
└── dnSpy.Extension.MCP.csproj

Architecture notes

  • Targets: net48 and net10.0-windows (inherited from DnSpyCommon.props).
  • Transport: a single HttpListener serves the plain HTTP JSON-RPC, 2024-11-05 SSE, and 2025-03-26 Streamable HTTP paths on one port. Kestrel is intentionally not used — dnSpy's self-contained .NET bundle does not ship ASP.NET Core, so any Microsoft.AspNetCore.* reference would cause a silent TypeLoadException during MEF composition and the extension's IExtension part would never instantiate.
  • MEF: services use [Export(typeof(T))] + [ImportingConstructor]. Don't new up McpServer / McpSettings / McpTools.
  • UI-thread marshalling: every tool handler in ExecuteTool runs on the WPF dispatcher. IDocumentTreeView nodes are DispatcherObjects and throw "calling thread cannot access this object" if read from an HTTP worker, so marshalling is mandatory; handlers that already take the dispatcher path (patch, revert, save) double-wrap harmlessly.
  • Error codes: ArgumentException inside a tool handler → JSON-RPC -32602 (invalid params); any other exception → -32603 (internal error).
  • Logging: McpSettings.Log(...) writes to the in-UI log pane always, and to D:\dnspy-mcp.log only in Debug builds. Release builds keep everything in-memory; no writable D: drive is required on end-user machines.

Protocol

Implements MCP version 2024-11-05 over JSON-RPC 2.0.

Supported methods: initialize, ping, tools/list, tools/call, resources/list, resources/read, and notifications/*.

CI / Release

  • .github/workflows/build.yml — builds both TFMs on every push/PR.
  • .github/workflows/release.yml — builds release DLLs and attaches them to the GitHub release on tag push (v*.*.*).
bash
git tag v1.0.0
git push origin v1.0.0

Technical details

  • Dependencies: dnSpy.Contracts.DnSpy, dnSpy.Contracts.Logic, dnlib, System.Text.Json (package on net48, in-box on net10.0-windows).
  • BFS path finding: find_path_to_type does breadth-first search over each type's fields and properties.
  • Decompilation: uses dnSpy's default decompiler (usually C#) via IDecompilerService.
  • IL writing: save_assembly calls ((ModuleDefMD)module).NativeWrite(path, NativeModuleWriterOptions) for modules loaded from disk (preserves native stubs, Win32 resources, delay-loaded imports, mixed-mode code) and module.Write(path, ModuleWriterOptions) for freshly constructed modules. Memory-mapped I/O is disabled via peImage as dnlib.PE.IInternalPEImage before the write — the internal IMmapDisabler in dnSpy.AsmEditor is inlined to avoid depending on AsmEditor.
  • Cross-method references in patch_method_il operands (method:, field:, type:) are resolved by walking every loaded module for a FullName match and then imported into the destination module via new Importer(module, ImporterOptions.TryToUseDefs).

Troubleshooting

Settings page shows but the server never starts

Most commonly a MEF composition failure for the IExtension part while IAppSettingsPageProvider (the settings page) composes fine. Symptoms: the MCP Server page exists and lets you toggle Enable Server, but nothing happens on click and no log ever appears. Root cause is usually a missing runtime dependency — check the on-disk fallback log first, and make sure you deployed the DLL matching your dnSpy TFM.

Port already in use

The server automatically falls back to port + 1 (up to 20 tries). Look for Port N is in use; falling back to M in the log — clients should connect to the fallback port.

Build errors

  • Ensure you cloned dnSpyEx with --recursive (submodules must be initialized).
  • Run dotnet restore in the dnSpyEx repo root.
  • Requires .NET 10 SDK (DnSpyCommon.props is the source of truth).

License

Same as dnSpyEx — see the dnSpyEx repository.

Acknowledgments

dnSpy MCP Extension MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal dnSpy MCP Extension verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun verbënnt sech an TypingMind iwwer d'URL vun engem gehoste MCP-Server.

Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann dnSpy MCP Extension scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat dnSpy MCP Extension an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat dnSpy MCP Extension als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu dnSpy MCP Extension ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu dnSpy MCP Extension ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat dnSpy MCP Extension?
dnSpy MCP Extension
Jo. Ech hunn et gelies.
Dat hunn ech mat dnSpy MCP Extension fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server dnSpy MCP Extension benotzt?

dnSpy MCP Extension ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech dnSpy MCP Extension MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir dnSpy MCP Extension mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat dnSpy MCP Extension MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann dnSpy MCP Extension verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech dnSpy MCP Extension MCP mat TypingMind?

Dir kënnt dnSpy MCP Extension mat TypingMind verbannen, andeems Dir d'URL vu sengem gehoste MCP-Server derbäisetzt. Dat ass nëtzlech, wann Dir eng Remote-MCP-Verbindung wëllt, déi aus Ärem TypingMind-Aarbechtsberäich disponibel ass.

Wéi eng Tools stellt dnSpy MCP Extension MCP an TypingMind zur Verfügung?

dnSpy MCP Extension stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir dnSpy MCP Extension MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann dnSpy MCP Extension eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇