DnSpy MCPserver Extension

Developer tools

AgentSmithers DnSpyEx MCPServer extension.

Your AI app calls the DnSpy MCPserver Extension MCP server, which does the developer tools work and sends the result back to the chat.

About DnSpy MCPserver Extension

DnSpy MCPserver Extension is a community MCP server from AgentSmithers, filed in our directory under developer tools. AgentSmithers DnSpyEx MCPServer extension.

At a glance

Publisher
AgentSmithers (community)
Runs
See the README for setup
Written in
C#
License
GPL-3.0
GitHub stars
241

How to set up DnSpy MCPserver Extension

  1. Follow the install steps in the DnSpy MCPserver Extension README; it is written in C#, so have that toolchain ready.
  2. Check the DnSpy MCPserver Extension README for keys or settings; the registry lists none that DnSpy MCPserver Extension requires.
  3. Add DnSpy MCPserver Extension to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the DnSpy MCPserver Extension tools to confirm the connection.
  5. Run one read-only task with DnSpy MCPserver Extension first, and keep your app asking before each tool call until the results look right.

DnSpy MCPserver Extension compared with similar servers

  • Sloppy by Heyosseus has fewer GitHub stars than DnSpy MCPserver Extension (241 against 241); both are community servers, and both run locally.
  • Lightroom by Automaat has more GitHub stars than DnSpy MCPserver Extension (243 against 241); both are community servers, and both run locally.
  • Code Runner by formulahendry has fewer GitHub stars than DnSpy MCPserver Extension (240 against 241); both are community servers, and both run locally.

Before you connect DnSpy MCPserver Extension

  • Give DnSpy MCPserver Extension its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each DnSpy MCPserver Extension tool call until you trust what it does with them.
  • Treat text that DnSpy MCPserver Extension fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for DnSpy MCPserver Extension on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for DnSpy MCPserver Extension

How marketing and sales teams put DnSpy MCPserver Extension to work, by company size. Pick the size closest to yours and start DnSpy MCPserver Extension on one use case.

Small business

  • A small business with a developer can use DnSpy MCPserver Extension to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask DnSpy MCPserver Extension to explain and fix a marketing site issue without context switching between tools.
  • DnSpy MCPserver Extension runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use DnSpy MCPserver Extension to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect DnSpy MCPserver Extension to keep scripts and automations documented and versioned as they change.
  • Start DnSpy MCPserver Extension on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out DnSpy MCPserver Extension with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on DnSpy MCPserver Extension so web and marketing engineering share one reviewed way of working with AI.
  • DnSpy MCPserver Extension is a community server, so have security review the code and pin a version before DnSpy MCPserver Extension touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

DnSpy MCPserver Extension README

From AgentSmithers/DnSpy-MCPserver-Extension on GitHub, shared under its GPL-3.0 license. Images are left out; the original has them.

README.md

AgentSmithers dnSpyEx MCPServer Extension

This is a dnSpy MCPServer Extension for the use of automated AI .NET reverse engineering The \dnSpy\Extensions\Examples\AgentSmithers dnSpy MCPServer.Extension has been updated to include the MCPServer logic with a few starting function to feed the decompiled code back to the LLM. This is an ongoing project and I plan to continue to add commands as time persist.

To execute the server, run as Administrator so the the Http server may Listen on +:3001 (release is currently set to 3003) and *:50301 for the streamable MCP Server.

The following command will suffice:

Recommended debug workflow:

Step 1: Ensure dnSpy is set as Startup Project

Step 2: Open Launch Settings In Solution Explorer, right-click on your project Select Properties In the left sidebar, click on Debug (or Debugging) Then go to "Open debug launch profiles UI"

Step 3: Add Command Line Arguments In the Command line arguments text box, enter: --extension-directory "$(SolutionDir)Extensions\Examples\Example1.Extension\bin\Debug\net48"

Step 4: Save Click Save or press Ctrl+S Close the properties window

Step 5: Test Press F5 or click the green play button Your dnSpy should now launch with your extension loaded!

OR

cd {dnspy directory}

dnspy.exe --extension-directory {Path to extension} Example 1: dnspy.exe --extension-directory "C:\repos\dnSpy\Extensions\Examples\Example1.Extension\bin\Debug\net48"

Example 2 in CMD: C:\Users\user>"C:\Users\user\source\repos\DnSpy-MCPserver-Extension\dnSpy\dnSpy\bin\Debug\net48\dnspy.exe" --extension-directory "C:\Users\user\source\repos\DnSpy-MCPserver-Extension\dnSpy\dnSpy\bin\Debug\net48\Extensions"

OR

In alternative you may copy the release into the Extension folder within the dnSpy\Extensions\AgentSmithersMCPServer path.

Modifying the project

Ensure to compile the primary DnSpy Soultion (Clean and rebuild) so that the dependancies for "AgentSmithers DnSpyEx MCPServer" can use them for its own build. (Note: When compiling DnSpyEx you may have approx. ~20 errors, this will not prevent the 45 Projects from compiling)

Once dnSpy is fully cleaned and compiled, navigate to the Example1 Extension Project. In there is the modified code. Make your adjustments, compile then use the --extension-directory argument when executing DnSpy.exe to point to your projects extension path.

In alternative you may pull down the latest dnSpyEx then rename the Extension sample folder to another name and bring the modified extension folder over to recompile.

Compiling

Clean and rebuild (I used visual Studio 2026, I think you'll need .NET Framework 4.8 and Core 10 Installed to compile the full solution)

#Clearing the errors above upon inital IDE load - Not executing these steps may result in the error below. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem Find the value LongPathsEnabled. Double-click it and change the value to 1. Restart your computer (or at least restart Visual Studio).

Argument 1: cannot convert from 'System.ReadOnlySpan' to 'string' Cannot implicitly convert type 'System.ReadOnlySpan' to 'string' Argument 1: cannot convert from 'System.ReadOnlySpan' to 'string' Argument 1: cannot convert from 'System.ReadOnlySpan' to 'string' foreach statement cannot operate on variables of type 'void' because 'void' does not contain a public instance or extension definition for 'GetEnumerator' Metadata file 'C:\Users\User\source\repos\DnSpy-MCPserver-Extension\dnSpy\dnSpy\obj\Debug\net48\ref\dnSpy.exe' could not be found Metadata file 'C:\Users\User\source\repos\DnSpy-MCPserver-Extension\dnSpy\dnSpy\obj\Debug\net8.0-windows\ref\dnSpy.dll' could not be found

Supported commands

Currently readonly commands are supported to enumerate active namespaces, classes and functions by the AI. Plans are in the works to allow the AI to make interactive adjustments to the decompiled assemblies.

Get_Selected_Node - Gets the currently selected node within dnSpyEx
Get_Loaded_Assemblies - Gets all Assemblys currently loaded within dnSpyEx
Namespaces_From_Assembly - Dumps all unique namespaces under a given Assembly
Classes_From_Namespace - List all Classes under a given Namespace
Get_Class_Sourcecode - Dumps a target Class sourcecode
Get_Method_Prototypes - List all Method prototypes from a given Class within a given Namespace
Get_Method_SourceCode - Dumps a target Method's sourcecode
Update_Method_SourceCode - Update a target Method's sourcecode
Get_Function_Opcodes - Returns the IL opcodes of the specified method (with source line numbers)
Set_Function_Opcodes - Modifies the IL of the specified method at a given IL line index
Update_Tabs_View - Update all active tabs to reflect any changes or adjustments
Rename_Namespace - Renames exactly one distinct namespace across all types
Rename_Class - Renames a specific class within a given Namespace
Rename_Method - Renames a specific Methods by Class within a given Namespace
These commands allow you to inspect and modify .NET assemblies loaded in dnSpyEx, including viewing and editing source code, IL code, and performing various renaming operations.

Once the extension is loaded

A messagebox will appear allowing you a chance to attach your debugger if nessessary

Click "OK" and the MCPServer will load on :3001

Connect via SSE or if your application only supports STDIO (Claude Desktop / Windsurf) grab a copy of the STDIO<->SSE bridge https://github.com/AgentSmithers/MCPProxy-STDIO-to-SSE

Attach the Bridge AFTER hitting "OK" and your good to go.

Questions about DnSpy MCPserver Extension

What is the DnSpy MCPserver Extension MCP server?

AgentSmithers DnSpyEx MCPServer extension. DnSpy MCPserver Extension is maintained by AgentSmithers on GitHub at AgentSmithers/DnSpy-MCPserver-Extension, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the DnSpy MCPserver Extension MCP server?

DnSpy MCPserver Extension doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (AgentSmithers/DnSpy-MCPserver-Extension). Like most servers, DnSpy MCPserver Extension ends with a command or URL you paste into your AI app's MCP config.

Does DnSpy MCPserver Extension need an API key?

The registry lists no required keys for DnSpy MCPserver Extension. Check the DnSpy MCPserver Extension README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is DnSpy MCPserver Extension an official MCP server?

No. DnSpy MCPserver Extension is a community server maintained by AgentSmithers. Community servers can be excellent; read the code and the open issues before you give DnSpy MCPserver Extension access to company data.

What license is DnSpy MCPserver Extension under?

DnSpy MCPserver Extension is released under the GPL-3.0 license, according to its GitHub repository. The license covers the code of DnSpy MCPserver Extension; the service it connects to has its own terms.