AIGuiders.DotnetDebugMCP.Core 0.1.0

dotnet add package AIGuiders.DotnetDebugMCP.Core --version 0.1.0
                    
NuGet\Install-Package AIGuiders.DotnetDebugMCP.Core -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AIGuiders.DotnetDebugMCP.Core" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AIGuiders.DotnetDebugMCP.Core" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AIGuiders.DotnetDebugMCP.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AIGuiders.DotnetDebugMCP.Core --version 0.1.0
                    
#r "nuget: AIGuiders.DotnetDebugMCP.Core, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AIGuiders.DotnetDebugMCP.Core@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AIGuiders.DotnetDebugMCP.Core&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AIGuiders.DotnetDebugMCP.Core&version=0.1.0
                    
Install as a Cake Tool

DotnetDebug.Core

Библиотека AIGuiders.DotnetDebugMCP.Core на .NET 10: общий слой для dotnet-debug-mcp и IDE (Cascade IDE) — обмен с отладчиком по протоколу DAP (stdio, Content-Length + JSON-RPC), утилиты для дерева переменных и хранение брейкпоинтов на диске.

Лицензия: MIT (см. LICENSE).
Авторство пакета: LonelySoul / бренд AIGuiders.


Зачем этот пакет

  • Запуск netcoredbg (или другого адаптера с DAP по stdio) и минимальный клиент запросов/ответов без зависимости от конкретного UI.
  • Один код для MCP-сервера отладки и для настольного приложения, чтобы не дублировать DAP и файл брейкпоинтов.

Состав (публичный API)

Тип Назначение
DapClient Клиент DAP: процесс адаптера, stdio, Content-Length, JSON-RPC, колбэки событий и обрыва связи.
DapShared Общие константы/хелперы для DAP.
DapVariableExpansion Раскрытие переменных DAP в структуру для UI/дерева.
DapVariableDescriptor Дескриптор узла переменной (readonly record struct).
DapVariableTreeNode Узел дерева переменных.
BreakpointsStorage Сериализация брейкпоинтов в JSON рядом с решением (в т.ч. файл .dotnet-debug-mcp-breakpoints.json).

Исходники небольшие; для деталей смотри XML-комментарии в .cs файлах.


Установка (NuGet)

dotnet add package AIGuiders.DotnetDebugMCP.Core --version 0.1.0

Актуальную версию смотри на nuget.org.


Сборка и тест локально

dotnet build DotnetDebug.Core.csproj -c Release
dotnet pack DotnetDebug.Core.csproj -c Release -o ./out

Публикация на nuget.org (Trusted Publishing)

Долгоживущий API key не нужен: используется Trusted Publishing и GitHub OIDC.

1. Политика на nuget.org

  1. Войти на nuget.org под учётной записью, которая владеет пакетом AIGuiders.DotnetDebugMCP.Core (после первого push или ручной регистрации).
  2. Профиль → Trusted Publishing → добавить политику для GitHub:
    • Repository owner: KarataevDmitry
    • Repository: dotnet-debug-core
    • Workflow file: publish-nuget.yml (только имя файла, без пути .github/workflows/)
    • Environment: пусто (workflow не использует environment:). Если позже добавишь environment: release, укажи здесь то же имя.

Имя профиля, с которым выполняется вход в NuGet в CI: LonelySoul (шаг NuGet/login@v1 в workflow). Оно должно совпадать с учётной записью, у которой настроена политика и права на пакет.

2. Запуск workflow

  • Тег: отправь тег вида v0.2.0 — в пакет попадёт версия 0.2.0.
  • Вручную: Actions → Publish NuGetRun workflow → поле версии, например 0.2.0 (без префикса v).

После успешной публикации политика для приватного репозитория может закрепиться «навсегда» (см. документацию NuGet про привязку к ID репозитория).


Репозиторий

https://github.com/KarataevDmitry/dotnet-debug-core

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 92 5/10/2026