Logo Dnspy MCP

Dnspy MCP

Cộng đồng
tuna1999

MCP extension for dnSpy

Nhà phát hànhtuna1999
Kho mãdnspy-mcp
Ngôn ngữC#
Bản fork
17
Sao
72
Công cụ có sẵn
0
Phương thức truyền tảistdio
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Dnspy MCP cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    72 sao và 17 bản fork từ kho mã được liên kết.

dnSpy MCP Server

Build License: GPL v3

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.Decompiler pipeline 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

ToolDescription
decompile_methodDecompile a method to C#. Accepts full name (Namespace.Class::Method), metadata token (0x06000001), or partial name
decompile_typeDecompile an entire type (all members) to C#
decompile_assemblyDecompile all types in the assembly (limited to 10 for brevity)

Search

ToolDescription
search_typesSearch types by name pattern. Use regex: prefix for regex matching
search_methodsSearch methods by name, optionally scoped to a specific type
search_stringsSearch string literals in method bodies
grepMulti-scope search across types, methods, and strings

Analysis

ToolDescription
get_method_ilRaw IL instructions with exception handlers
get_method_signaturesMethod metadata: parameters, return type, flags, generic params
get_type_hierarchyInheritance chain, interfaces, member counts
get_method_bodyIL bytes with MaxStack/InitLocals info
get_il_opcodes_formattedFormatted IL opcodes with offsets and line indices
update_method_bodyPatch a method body using C# statements (dry-run supported)

Cross-References

ToolDescription
get_xrefs_toFind all references to a method or field
get_calleesMethods and fields called by a method

Assembly

ToolDescription
load_assemblyLoad a .NET DLL/EXE into dnSpy by absolute path
close_assemblyUnload an assembly by simple name (case-insensitive)
list_loaded_assembliesList all loaded binaries: name, MVID, type count, path
assembly_overviewModule info, version, entry point, type count, references
assembly_list_namespacesAll namespaces in the loaded assembly
assembly_list_typesType listing with optional regex filter
assembly_get_referencesAssembly references (DLLs, NuGet packages)

Resources & Metadata

ToolDescription
get_resourcesList embedded resources
get_resource_dataRaw bytes of a specific resource
get_metadataPE headers, MVID, runtime version, sections

Type Inspection

ToolDescription
get_type_membersList all members of a type with optional filter
get_fieldsDetailed field info: type, access, static/const, values
get_propertiesProperty details: getter/setter, type, access

Custom Attributes

ToolDescription
get_attributesAttributes on assembly/type/method/field with filter
get_method_attributesShortcut: attributes on a specific method

Constants & Enums

ToolDescription
get_enum_valuesEnum members with name + value (hex + decimal)
search_constantsSearch const/literal fields across assemblies
get_global_namespacesList all types in the global namespace

UI & Navigation (Extension only)

ToolDescription
get_selected_nodeGet the currently selected node in dnSpy tree view
refresh_uiRefresh tree view UI after metadata changes

Rename

ToolDescription
rename_namespaceRename a namespace across matching types (dry-run supported)
rename_classRename one class in an assembly+namespace (dry-run supported)
rename_methodRename methods by exact or partial match (dry-run supported)

Debugger (Extension only — needs the dnSpy host; not in headless)

ToolDescription
debug_get_stateSession state: debugging/running, processes, current thread, last break
debug_list_processesAttachable .NET processes (pid, name, runtime, arch, filename)
debug_startStart an EXE or managed DLL (runtime: auto/netfx/dotnet); omitted/empty working_dir uses the target folder; break-at-entry by default
debug_attachAttach to a running .NET process by pid
debug_stopStop the session — stop (default) / detach / terminate (terminate is dry-run by default)
debug_continueRun all debuggee processes
debug_break_allRequest a break in all debuggees
debug_stepStep the current thread (into/over/out)
debug_wait_pausedBlock until paused (timeout_ms), then return the state
debug_set_breakpointBreakpoint on Namespace.Type::Method — binds on module load, no PDB needed
debug_delete_breakpointDelete an MCP breakpoint by id
debug_list_breakpointsList MCP breakpoints
debug_get_callstackActual runtime stack; optional pid/thread_id, no GUI selection change
debug_list_threadsPaused threads with process, OS/managed IDs and current-thread marker
debug_get_localsBounded runtime locals, arguments and this for an exact paused frame
debug_get_valueSafe instance-field/array page from a pause-scoped value ID
debug_dismiss_dialogDismiss dnSpy modal error dialogs after a failed launch

For modern .NET, managed images run through dotnet.exe; native apphost EXEs launch directly. For an apphost, load its companion managed DLL before setting method breakpoints. debug_start checks the actual process state, not just whether dnSpy accepted the asynchronous launch request.

Runtime inspection requires a fully paused managed frame. thread_id requires pid; omitted selectors use the current thread without changing GUI selection. frame_index=0 is the top frame. Pages use start_index >= 0, count=1..256 (default 64), with at most 4,096 retained values and 4,096 UTF-16 units per formatted field. Strings retain the engine's preview limit.

A successful debug_get_locals replaces the single snapshot and invalidates previous value_ids. Resume, step, stop and detach invalidate them even after another pause. debug_get_value does not evaluate expressions, getters, ToString, debugger displays/proxies or enumerators. Static/Results/Dynamic groups are blocked; static reads can trigger type initialization in this engine. Unavailable/optimized-out values retain provider errors rather than fake nulls.

Tips

  • Multiple assemblies? Call list_loaded_assemblies first; search tools accept an optional assembly parameter to scope results.
  • Method identifiers — all method-accepting tools resolve hex tokens, plain tokens, full names, then short names via one shared resolver. Prefer full names (Namespace.Class::Method) to avoid ambiguity.
  • Mutating tools (rename_*, update_method_body) are dry-run by default — pass dryRun: false to apply.

Getting Started

Prerequisites

  • dnSpy (.NET 10 build, e.g. dnSpyEx v6.6.0+)
  • .NET 10.0 SDK
  • deps/ folder with these DLLs synced from a dnSpy install (run pwsh scripts/sync-deps.ps1 -DnSpyBin <dnSpy>\bin):
    • dnSpy.Contracts.DnSpy.dll, dnSpy.Contracts.Logic.dll
    • ICSharpCode.Decompiler.dll, dnlib.dll
    • Headless-only: dnSpy.Decompiler.dll, dnSpy.Decompiler.ILSpy.Core.dll, ICSharpCode.NRefactory.dll, ICSharpCode.NRefactory.CSharp.dll, ICSharpCode.NRefactory.VB.dll

Configure DnSpyBin path

The project resolves dnSpy contract DLLs via the <DnSpyBin> MSBuild property in dnSpy.MCP.csproj:

xml
<DnSpyBin>..\..\deps</DnSpyBin>

Default path resolves to <repo>/deps/. To change it, edit this property or pass it at the command line:

powershell
dotnet build -p:DnSpyBin="D:\path\to\dnSpy\bin"

Build & Deploy

powershell
# 1) Build only (Release default)
pwsh scripts/build.ps1 -DnSpyPath "D:\tools\dnSpy"

# 2) Clean + build
pwsh scripts/build.ps1 -DnSpyPath "D:\tools\dnSpy" -Clean

# 3) Build + deploy into <DnSpyPath>\bin\Extensions
pwsh scripts/build.ps1 -DnSpyPath "D:\tools\dnSpy" -Deploy

# 4) Build + deploy to a custom folder
pwsh scripts/build.ps1 -DnSpyPath "D:\tools\dnSpy" -Deploy -DeployDir "D:\tools\dnSpy\bin\Extensions"

# 5) Debug build + deploy
pwsh scripts/build.ps1 -DnSpyPath "D:\tools\dnSpy" -Configuration Debug -Deploy

The script syncs deps/ from the dnSpy install, builds the solution, and deploys the extension. dnSpy must be closed before -Deploy.

OptionEffect
-DnSpyPath "<path>"Required: dnSpy folder (DLLs synced from its bin\)
-CleanClean before build
-DeployDeploy after build
-DeployDir "<path>"Custom deploy target (used with -Deploy)
-Configuration DebugBuild Debug instead of Release
-PublishHeadlessPublish the headless exe bundle

Build output paths

  • Build output (Release default): src/dnSpy.MCP/bin/Release/net10.0-windows/dnSpy.MCP.x.dll
  • Build output (Debug override): src/dnSpy.MCP/bin/Debug/net10.0-windows/dnSpy.MCP.x.dll
  • Runtime deploy (default): <DnSpyPath>/bin/Extensions/dnSpy.MCP.x.dll
  • Runtime deploy (custom -DeployDir): <DeployDir>/dnSpy.MCP.x.dll

Only these files should be copied to dnSpy's Extensions folder:

  • dnSpy.MCP.x.dll
  • dnSpy.MCP.Core.dll (required — hard dependency of dnSpy.MCP.x.dll; without it dnSpy silently fails to load the extension)
  • dnSpy.MCP.x.deps.json
  • dnSpy.MCP.x.pdb (optional for debugging)
  • dnSpy.MCP.Core.pdb (optional for debugging)

Do not copy the whole build/Extensions folder recursively into dnSpy (avoid nested Extensions/Extensions/ and stale dependency files).

Troubleshooting: if the extension loaded before but breaks after swapping DLL versions, delete dnSpy's cached MEF composition at %LOCALAPPDATA%\dnSpy\Startup64\net\dnSpy-mef-info.bin and restart dnSpy. The cache is keyed by extension DLL identity (path + timestamp + size + MVID); replacing a dependency (e.g. dnSpy.MCP.Core.dll) does not invalidate it.

Usage (Extension)

  1. Start dnSpy.exe
  2. Open a .NET assembly (.exe/.dll)
  3. Menu → MCP Server → Start
  4. Open View → Output (Alt+2) → select MCP Server to see logs
  5. Connect from an AI agent via http://127.0.0.1:5150/
Menu ItemAction
StartStart the MCP HTTP server
StopStop the MCP HTTP server
StatusShow running/stopped state and port
Show LogDisplay recent log entries
Clear LogClear log file and output window

Project Structure

dnspy_mcp/
├── src/
│   ├── dnSpy.MCP.Core/        # Shared library: 36 tools, McpContext, decompiler bridge
│   │   ├── Abstractions/      # IAssemblyLoader, ISourceDecompiler, IUIThreadScheduler,
│   │   │                      # ILogSink, ITreeRefreshNotifier
│   │   ├── Adapters/          # DnSpyDecompilerSourceProvider (shared by both hosts)
│   │   ├── Mcp/               # McpContext, ToolRegistry, McpServerHost (HTTP), JsonRpc
│   │   ├── Helpers/           # MethodResolver
│   │   └── Tools/             # 13 instance tool classes ([Description] methods)
│   ├── dnSpy.MCP/             # Extension (net10.0-windows, WPF, MEF) — HTTP transport
│   │   ├── Adapters/          # dnSpy-backed adapter implementations
│   │   ├── Tools/TreeViewTools.cs  # 2 UI-only tools (get_selected_node, refresh_ui)
│   │   └── TheExtension.cs    # MEF entry, composes McpContext
│   ├── dnSpy.MCP.Headless/    # Standalone exe (stdio MCP transport via MCP SDK)
│   │   ├── Program.cs         # Host + fail-fast startup + stdio server
│   │   ├── CliOptions.cs      # --load (globs) / --config / --help
│   │   └── Adapters/          # dnlib loader, reflection decompiler loader,
│   │                          # stderr log sink, mutation-lock filter
│   └── dnSpy.MCP.Tests/       # Unit + headless E2E tests (spawn real server process)
│       └── TestData/SampleLibrary/  # E2E fixture assembly
├── deps/                      # Vendored dnSpy DLLs (sync via scripts/sync-deps.ps1)
├── scripts/                   # build.ps1, sync-deps.ps1, verify-tool-count.ps1, mcp-probe.js
└── skills/                    # AI agent workflow guides

Headless Mode

For batch analysis without dnSpy running: same 36 tools, decompiler output byte-identical to dnSpy.exe, stdio transport (Claude Desktop / Cursor / VS Code can auto-spawn it).

powershell
# Build & publish
pwsh scripts/build.ps1 -DnSpyPath "D:\tools\dnSpy" -PublishHeadless

# Run directly from build output
dotnet src/dnSpy.MCP.Headless/bin/Release/net10.0-windows/dnspy-mcp-headless.dll --load path\to\target.dll

# Or from the published bundle
dotnet publish\headless\dnspy-mcp-headless.dll --load "path\to\*.dll"
  • --load, -l <path> — pre-load assemblies (repeatable, supports */? globs)
  • --config, -c <json> — reserved, currently unused
  • Logging goes to stderr only (stdout carries the MCP JSON-RPC frames)
  • Parallel mutation calls (rename_*, update_method_body) are serialized via a shared lock, mirroring the Extension transport

Client config (stdio):

json
{
  "mcpServers": {
    "dnspy-headless": {
      "command": "dotnet",
      "args": [
        "D:\\path\\to\\publish\\headless\\dnspy-mcp-headless.dll",
        "--load", "D:\\path\\to\\target.dll"
      ]
    }
  }
}

Configuration

Defaults live in src/dnSpy.MCP/Settings/McpSettings.cs and are editable in dnSpy via Options → MCP Server:

SettingDefaultDescription
Host127.0.0.1Loopback only by default; 0.0.0.0 binds all interfaces
Port5150TCP port for the HTTP transport
AutoStartoffStart the server when dnSpy launches
RequireAuth / ApiTokenoffRequire Authorization: Bearer <token> on every request
AllowedOriginsemptyCORS origins allowed to call the server (empty = CORS disabled)
MaxConcurrency4Max simultaneous in-flight requests
MaxRequestSizeMB1Request body cap
ToolTimeoutSeconds30Per-tool-call timeout (in-flight work is cancelled on expiry)

Security

  • Loopback by default — the server binds 127.0.0.1; binding 0.0.0.0 exposes it to the network, so pair it with RequireAuth.
  • Auth fail-closed — if RequireAuth is on but the token is empty, the server refuses to start. Tokens are compared in constant time (CryptographicOperations.FixedTimeEquals).
  • Mutation serialization — destructive tools (rename_*, update_method_body) run under an exclusive lock so parallel batch requests can't race on dnlib metadata.
  • Roslyn sandbox — IL patch compilation references only 5 core BCL assemblies plus the target assembly.
  • Cancellation — per-tool timeouts cancel the actual decompilation work, not just the HTTP response.

Logging

Logs are written to three destinations:

  • File: mcp-server.log in the dnSpy bin folder (rotates at 5 MB, keeps 3 backups)
  • In-memory: Viewable via MCP Server → Show Log
  • Output Window: View → Output → MCP Server (in dnSpy)

Connecting AI Agents

This MCP server exposes dnSpy's decompilation and analysis tools via the standard MCP protocol over HTTP at http://127.0.0.1:5150/. Most modern AI agents support HTTP MCP servers natively — no bridge package needed.

Claude Code (recommended)

Use the claude mcp add command to add the server. Choose a scope:

bash
# Local scope (default) — only this project, stored in ~/.claude.json
claude mcp add --transport http dnspy http://127.0.0.1:5150

# Project scope — shared with team via .mcp.json (check into git)
claude mcp add --transport http dnspy --scope project http://127.0.0.1:5150

# User scope — all your projects
claude mcp add --transport http dnspy --scope user http://127.0.0.1:5150

Project scope generates a .mcp.json at the project root:

json
{
  "mcpServers": {
    "dnspy": {
      "type": "http",
      "url": "http://127.0.0.1:5150"
    }
  }
}

Local/User scope writes to ~/.claude.json under the project path:

json
{
  "projects": {
    "/path/to/your/project": {
      "mcpServers": {
        "dnspy": {
          "type": "http",
          "url": "http://127.0.0.1:5150"
        }
      }
    }
  }
}

Other useful commands:

bash
claude mcp list          # list all configured servers
claude mcp get dnspy     # show config for a server
claude mcp remove dnspy  # remove a server

Other AI Editors

EditorConfig fileFormat
Cursor~/.cursor/mcp.json{ "mcpServers": { "dnspy": { "url": "http://127.0.0.1:5150/" } } }
VS Code (Cline/Roo).vscode/mcp.jsonSame as above

Verification

  1. Start dnSpy and open an assembly
  2. Menu → MCP Server → Start
  3. Check GET http://127.0.0.1:5150/health returns status and tool count, or list tools from your agent — you should see 38 MCP tools (decompile_method, search_types, grep, get_xrefs_to, assembly_overview, …)

If the agent does not auto-discover the tools, tell it: "Use the dnSpy MCP server at http://127.0.0.1:5150/ to access decompilation and analysis tools."

Adding New Tools

Tools are discovered at runtime via reflection. To add a new tool:

  1. Create a public sealed class in src/dnSpy.MCP.Core/Tools/ under the dnSpy.MCP.Core.Tools namespace, with a constructor taking McpContext
  2. Add instance methods public string MyTool(...) with a [Description("...")] attribute
  3. Parameters use [Description("...")] for documentation
  4. Run pwsh scripts/verify-tool-count.ps1 to keep docs and code in sync
csharp
using System.ComponentModel;
using dnSpy.MCP.Core.Mcp;

namespace dnSpy.MCP.Core.Tools {
    public sealed class MyTools(McpContext ctx) {
        [Description("Describe what this tool does")]
        public string MyTool(
            [Description("Parameter description")] string param1) {
            // Access loaded modules via the abstraction — works in both
            // Extension (dnSpy) and Headless (dnlib) hosts
            var docs = ctx.AssemblyLoader.GetDocuments();
            return $"Result: {param1} ({docs.Count} assemblies loaded)";
        }
    }
}

Method names are automatically converted to snake_case for the MCP protocol (e.g., MyTool → my_tool).

Architecture Notes

Why a custom TcpListener transport instead of MCP SDK?

The official MCP SDK (ModelContextProtocol 1.4.0) pulls Microsoft.Extensions.* 10.x dependencies that conflict with the versions dnSpy ships on its .NET runtime. This is a hard version conflict that cannot be resolved with binding redirects. The solution is a minimal custom HTTP transport over System.Net.Sockets.TcpListener. The headless exe runs in its own process, so it uses the MCP SDK's stdio transport without conflict.

Standalone build

The project references pre-built DLLs from deps/, enabling fast iteration without cloning the full dnSpy source. For integrated builds as part of dnSpy.sln, clone dnSpyEx and copy src/dnSpy.MCP/ into Extensions/.

Thread safety

MCP tools run on background threads. All WPF TreeView/UI access marshals to the UI thread via the IUIThreadScheduler abstraction (Dispatcher.Invoke in the Extension). Metadata mutation tools auto-refresh the tree view after changes.

Skills

The skills/ directory contains reusable workflow guides for AI agents working with this MCP server. These skills teach the AI how to think about common analysis tasks — it dynamically picks tools based on what it discovers, rather than following rigid steps.

Available Skills

SkillDescription
deobfuscate-dotnetDeobfuscate .NET binaries: string decryption, symbol renaming, control flow analysis, proxy call resolution, anti-tamper removal

Skill Structure

Each skill is a folder containing a SKILL.md file:

skills/
└── deobfuscate-dotnet/
    └── SKILL.md          # Skill definition (YAML frontmatter + instructions)

Installing Skills for Claude Code

Claude Code auto-discovers skills from .claude/skills/. To install:

bash
# Install a specific skill
cp -r skills/deobfuscate-dotnet .claude/skills/

# Or install all skills
cp -r skills/* .claude/skills/

After installing, the skill activates automatically when you describe a matching task — for example:

# These will trigger the deobfuscation skill:
"Giúp tôi decrypt các string trong binary này"
"Rename lại các class/method bị obfuscate"
"Binary này bị protect bằng gì? Phân tích giúp tôi"

No restart needed — Claude Code picks up new skills on the next message.

For Other AI Editors

If your AI editor supports custom instructions or system prompts, paste the content of SKILL.md directly into your configuration. The skill content is self-contained and editor-agnostic.

License

This project is licensed under GPLv3, consistent with dnSpy's license.

Dùng MCP Dnspy MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Dnspy MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Dnspy MCP làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Dnspy MCP.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "dnspy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Dnspy MCP, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Dnspy MCP.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Dnspy MCP giúp tôi làm việc này không?
Dnspy MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Dnspy MCP.

Câu hỏi thường gặp

Máy chủ MCP Dnspy MCP dùng để làm gì?

Dnspy MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Dnspy MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Dnspy MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Dnspy MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Dnspy MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Dnspy MCP với TypingMind?

Dnspy MCP hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Dnspy MCP cung cấp những công cụ nào trong TypingMind?

Dnspy MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Dnspy MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Dnspy MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇