AD

agentsmithers/dnspy-mcpserver-extension

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

238 stars 35 forks Качество 58 Тренд 22GPL-3.0

agentsmithers/dnspy-mcpserver-extension — это кандидат на MCP-сервер, импортированный из https://github.com/agentsmithers/dnspy-mcpserver-extension.

Обзор

agentsmithers/dnspy-mcpserver-extension — это кандидат на MCP-сервер, импортированный из https://github.com/agentsmithers/dnspy-mcpserver-extension.

Обзор (машинный перевод)

Это расширение dnSpy MCPServer для использования автоматизированного обратного инжиниринга AI .NET Расширение \dnSpy\Extensions\Examples\AgentSmithers dnSpy MCPServer.Extension обновлено с добавлением логики MCPServer с несколькими начальными функциями для возврата декомпилированного кода обратно в LLM. Это продолжающийся проект, и я планирую продолжать добавлять команды по мере прохождения времени.

Для запуска сервера запускайте от режима Administrator, чтобы HTTP-сервер мог слушать на +:3001 (релиз сейчас установлен на 3003) и *:50301 для потокового MCP сервера.

Достаточно будет выполнить следующую команду:

Рекомендуемый рабочий процесс отладки:

Шаг 1:
Убедитесь, что dnSpy установлен как Startup Project

Шаг 2: Откройте настройки запуска В Solution Explorer кликните правой кнопкой мыши по проекту Избранные свойства В левой боковой панели нажмите на Debug (или Debugging) Затем перейдите в «Open debug launch profiles UI»

Шаг 3: Добавить аргументы командной строки В текстовом поле аргументов командной строки введите: –extension-directory “$(SolutionDir)Extensions\Examples\Example1.Extension\bin\Debug\net48”

Шаг 4: Сохранить Нажмите Сохранить или нажмите Ctrl+S Закрыть окно свойств

Шаг 5: Тест Нажмите F5 или зелёную кнопку воспроизведения Ваш dnSpy теперь должен запускаться с загруженным расширением!

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

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)

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →