dnd-mcp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ClrDebug.dll +0 -0
- package/bin/DnD.Core.dll +0 -0
- package/bin/DnD.Core.pdb +0 -0
- package/bin/DnD.Host.deps.json +440 -0
- package/bin/DnD.Host.dll +0 -0
- package/bin/DnD.Host.exe +0 -0
- package/bin/DnD.Host.pdb +0 -0
- package/bin/DnD.Host.runtimeconfig.json +13 -0
- package/bin/DnD.Protocol.dll +0 -0
- package/bin/DnD.Protocol.pdb +0 -0
- package/bin/MessagePack.Annotations.dll +0 -0
- package/bin/MessagePack.dll +0 -0
- package/bin/Microsoft.NET.StringTools.dll +0 -0
- package/bin/Microsoft.VisualStudio.Threading.dll +0 -0
- package/bin/Microsoft.VisualStudio.Validation.dll +0 -0
- package/bin/Nerdbank.MessagePack.dll +0 -0
- package/bin/Nerdbank.Streams.dll +0 -0
- package/bin/Newtonsoft.Json.dll +0 -0
- package/bin/PolyType.dll +0 -0
- package/bin/StreamJsonRpc.dll +0 -0
- package/bin/System.Collections.Immutable.dll +0 -0
- package/bin/System.IO.Pipelines.dll +0 -0
- package/bin/System.Reflection.Metadata.dll +0 -0
- package/bin/cs/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/cs/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/cs/StreamJsonRpc.resources.dll +0 -0
- package/bin/de/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/de/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/de/StreamJsonRpc.resources.dll +0 -0
- package/bin/es/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/es/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/es/StreamJsonRpc.resources.dll +0 -0
- package/bin/fr/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/fr/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/fr/StreamJsonRpc.resources.dll +0 -0
- package/bin/it/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/it/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/it/StreamJsonRpc.resources.dll +0 -0
- package/bin/ja/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/ja/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/ja/StreamJsonRpc.resources.dll +0 -0
- package/bin/ko/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/ko/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/ko/StreamJsonRpc.resources.dll +0 -0
- package/bin/pl/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/pl/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/pl/StreamJsonRpc.resources.dll +0 -0
- package/bin/pt-BR/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/pt-BR/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/pt-BR/StreamJsonRpc.resources.dll +0 -0
- package/bin/ru/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/ru/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/ru/StreamJsonRpc.resources.dll +0 -0
- package/bin/runtimes/win-x64/native/dbgshim.dll +0 -0
- package/bin/tr/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/tr/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/tr/StreamJsonRpc.resources.dll +0 -0
- package/bin/zh-Hans/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/zh-Hans/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/zh-Hans/StreamJsonRpc.resources.dll +0 -0
- package/bin/zh-Hant/Microsoft.VisualStudio.Threading.resources.dll +0 -0
- package/bin/zh-Hant/Microsoft.VisualStudio.Validation.resources.dll +0 -0
- package/bin/zh-Hant/StreamJsonRpc.resources.dll +0 -0
- package/dist/client-manager.d.ts +39 -0
- package/dist/client-manager.d.ts.map +1 -0
- package/dist/client-manager.js +150 -0
- package/dist/client-manager.js.map +1 -0
- package/dist/debugger-client.d.ts +39 -0
- package/dist/debugger-client.d.ts.map +1 -0
- package/dist/debugger-client.js +135 -0
- package/dist/debugger-client.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/breakpoints.d.ts +4 -0
- package/dist/tools/breakpoints.d.ts.map +1 -0
- package/dist/tools/breakpoints.js +108 -0
- package/dist/tools/breakpoints.js.map +1 -0
- package/dist/tools/execution.d.ts +18 -0
- package/dist/tools/execution.d.ts.map +1 -0
- package/dist/tools/execution.js +215 -0
- package/dist/tools/execution.js.map +1 -0
- package/dist/tools/inspection.d.ts +4 -0
- package/dist/tools/inspection.d.ts.map +1 -0
- package/dist/tools/inspection.js +123 -0
- package/dist/tools/inspection.js.map +1 -0
- package/dist/tools/process.d.ts +4 -0
- package/dist/tools/process.d.ts.map +1 -0
- package/dist/tools/process.js +114 -0
- package/dist/tools/process.js.map +1 -0
- package/dist/types/protocol.d.ts +133 -0
- package/dist/types/protocol.d.ts.map +1 -0
- package/dist/types/protocol.js +3 -0
- package/dist/types/protocol.js.map +1 -0
- package/dist/types/rpc-methods.d.ts +24 -0
- package/dist/types/rpc-methods.d.ts.map +1 -0
- package/dist/types/rpc-methods.js +25 -0
- package/dist/types/rpc-methods.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as rpc from "vscode-jsonrpc/node.js";
|
|
2
|
+
import type { LaunchParams, LaunchResult, AttachParams, AttachResult, ContinueParams, StepInParams, StepOverParams, StepOutParams, SetBreakpointParams, SetBreakpointResult, RemoveBreakpointParams, GetBreakpointsResult, SetExceptionBreakpointsParams, SetExceptionBreakpointsResult, GetStackTraceParams, GetStackTraceResult, GetVariablesParams, GetVariablesResult, EvaluateParams, EvaluateResult, GetThreadsResult, GetExceptionParams, GetExceptionResult, StoppedParams, ExitedParams, OutputParams } from "./protocol.js";
|
|
3
|
+
export declare const LaunchRequest: rpc.RequestType<LaunchParams, LaunchResult, void>;
|
|
4
|
+
export declare const AttachRequest: rpc.RequestType<AttachParams, AttachResult, void>;
|
|
5
|
+
export declare const DetachRequest: rpc.RequestType0<void, void>;
|
|
6
|
+
export declare const TerminateRequest: rpc.RequestType0<void, void>;
|
|
7
|
+
export declare const ContinueRequest: rpc.RequestType<ContinueParams, void, void>;
|
|
8
|
+
export declare const PauseRequest: rpc.RequestType0<void, void>;
|
|
9
|
+
export declare const StepInRequest: rpc.RequestType<StepInParams, void, void>;
|
|
10
|
+
export declare const StepOverRequest: rpc.RequestType<StepOverParams, void, void>;
|
|
11
|
+
export declare const StepOutRequest: rpc.RequestType<StepOutParams, void, void>;
|
|
12
|
+
export declare const SetBreakpointRequest: rpc.RequestType<SetBreakpointParams, SetBreakpointResult, void>;
|
|
13
|
+
export declare const RemoveBreakpointRequest: rpc.RequestType<RemoveBreakpointParams, void, void>;
|
|
14
|
+
export declare const GetBreakpointsRequest: rpc.RequestType0<GetBreakpointsResult, void>;
|
|
15
|
+
export declare const SetExceptionBreakpointsRequest: rpc.RequestType<SetExceptionBreakpointsParams, SetExceptionBreakpointsResult, void>;
|
|
16
|
+
export declare const GetStackTraceRequest: rpc.RequestType<GetStackTraceParams, GetStackTraceResult, void>;
|
|
17
|
+
export declare const GetVariablesRequest: rpc.RequestType<GetVariablesParams, GetVariablesResult, void>;
|
|
18
|
+
export declare const EvaluateRequest: rpc.RequestType<EvaluateParams, EvaluateResult, void>;
|
|
19
|
+
export declare const GetThreadsRequest: rpc.RequestType0<GetThreadsResult, void>;
|
|
20
|
+
export declare const GetExceptionRequest: rpc.RequestType<GetExceptionParams, GetExceptionResult, void>;
|
|
21
|
+
export declare const StoppedNotification: rpc.NotificationType<StoppedParams>;
|
|
22
|
+
export declare const ExitedNotification: rpc.NotificationType<ExitedParams>;
|
|
23
|
+
export declare const OutputNotification: rpc.NotificationType<OutputParams>;
|
|
24
|
+
//# sourceMappingURL=rpc-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc-methods.d.ts","sourceRoot":"","sources":["../../src/types/rpc-methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC;AAC9C,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,6BAA6B,EAC7B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAC;AAIvB,eAAO,MAAM,aAAa,mDAIf,CAAC;AACZ,eAAO,MAAM,aAAa,mDAIf,CAAC;AACZ,eAAO,MAAM,aAAa,8BAA6C,CAAC;AACxE,eAAO,MAAM,gBAAgB,8BAAgD,CAAC;AAE9E,eAAO,MAAM,eAAe,6CAE3B,CAAC;AACF,eAAO,MAAM,YAAY,8BAA4C,CAAC;AACtE,eAAO,MAAM,aAAa,2CAEzB,CAAC;AACF,eAAO,MAAM,eAAe,6CAE3B,CAAC;AACF,eAAO,MAAM,cAAc,4CAE1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iEAIf,CAAC;AACnB,eAAO,MAAM,uBAAuB,qDAIf,CAAC;AACtB,eAAO,MAAM,qBAAqB,8CAGf,CAAC;AACpB,eAAO,MAAM,8BAA8B,qFAIf,CAAC;AAE7B,eAAO,MAAM,oBAAoB,iEAIf,CAAC;AACnB,eAAO,MAAM,mBAAmB,+DAIf,CAAC;AAClB,eAAO,MAAM,eAAe,uDAIf,CAAC;AACd,eAAO,MAAM,iBAAiB,0CAE7B,CAAC;AACF,eAAO,MAAM,mBAAmB,+DAIf,CAAC;AAIlB,eAAO,MAAM,mBAAmB,qCAE/B,CAAC;AACF,eAAO,MAAM,kBAAkB,oCAE9B,CAAC;AACF,eAAO,MAAM,kBAAkB,oCAE9B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as rpc from "vscode-jsonrpc/node.js";
|
|
2
|
+
// === Requests ===
|
|
3
|
+
export const LaunchRequest = new rpc.RequestType("launch");
|
|
4
|
+
export const AttachRequest = new rpc.RequestType("attach");
|
|
5
|
+
export const DetachRequest = new rpc.RequestType0("detach");
|
|
6
|
+
export const TerminateRequest = new rpc.RequestType0("terminate");
|
|
7
|
+
export const ContinueRequest = new rpc.RequestType("continue");
|
|
8
|
+
export const PauseRequest = new rpc.RequestType0("pause");
|
|
9
|
+
export const StepInRequest = new rpc.RequestType("stepIn");
|
|
10
|
+
export const StepOverRequest = new rpc.RequestType("stepOver");
|
|
11
|
+
export const StepOutRequest = new rpc.RequestType("stepOut");
|
|
12
|
+
export const SetBreakpointRequest = new rpc.RequestType("setBreakpoint");
|
|
13
|
+
export const RemoveBreakpointRequest = new rpc.RequestType("removeBreakpoint");
|
|
14
|
+
export const GetBreakpointsRequest = new rpc.RequestType0("getBreakpoints");
|
|
15
|
+
export const SetExceptionBreakpointsRequest = new rpc.RequestType("setExceptionBreakpoints");
|
|
16
|
+
export const GetStackTraceRequest = new rpc.RequestType("getStackTrace");
|
|
17
|
+
export const GetVariablesRequest = new rpc.RequestType("getVariables");
|
|
18
|
+
export const EvaluateRequest = new rpc.RequestType("evaluate");
|
|
19
|
+
export const GetThreadsRequest = new rpc.RequestType0("getThreads");
|
|
20
|
+
export const GetExceptionRequest = new rpc.RequestType("getException");
|
|
21
|
+
// === Notifications (server -> client) ===
|
|
22
|
+
export const StoppedNotification = new rpc.NotificationType("stopped");
|
|
23
|
+
export const ExitedNotification = new rpc.NotificationType("exited");
|
|
24
|
+
export const OutputNotification = new rpc.NotificationType("output");
|
|
25
|
+
//# sourceMappingURL=rpc-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc-methods.js","sourceRoot":"","sources":["../../src/types/rpc-methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC;AA8B9C,mBAAmB;AAEnB,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,WAAW,CAI9C,QAAQ,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,WAAW,CAI9C,QAAQ,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,YAAY,CAAa,QAAQ,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,YAAY,CAAa,WAAW,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,WAAW,CAChD,UAAU,CACX,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,YAAY,CAAa,OAAO,CAAC,CAAC;AACtE,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,WAAW,CAC9C,QAAQ,CACT,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,WAAW,CAChD,UAAU,CACX,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,WAAW,CAC/C,SAAS,CACV,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,WAAW,CAIrD,eAAe,CAAC,CAAC;AACnB,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,WAAW,CAIxD,kBAAkB,CAAC,CAAC;AACtB,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,YAAY,CAGvD,gBAAgB,CAAC,CAAC;AACpB,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,GAAG,CAAC,WAAW,CAI/D,yBAAyB,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,WAAW,CAIrD,eAAe,CAAC,CAAC;AACnB,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,WAAW,CAIpD,cAAc,CAAC,CAAC;AAClB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,WAAW,CAIhD,UAAU,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,YAAY,CACnD,YAAY,CACb,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,WAAW,CAIpD,cAAc,CAAC,CAAC;AAElB,2CAA2C;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,gBAAgB,CACzD,SAAS,CACV,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,gBAAgB,CACxD,QAAQ,CACT,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,gBAAgB,CACxD,QAAQ,CACT,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dnd-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for DnD .NET debugger — debug C# programs via MCP",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"dnd-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/",
|
|
12
|
+
"bin/"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=18.0.0"
|
|
16
|
+
},
|
|
17
|
+
"os": [
|
|
18
|
+
"win32"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"mcp",
|
|
22
|
+
"debugger",
|
|
23
|
+
"dotnet",
|
|
24
|
+
"csharp",
|
|
25
|
+
"model-context-protocol"
|
|
26
|
+
],
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc",
|
|
30
|
+
"build:host": "dotnet publish ../debugger/src/DnD.Host/DnD.Host.csproj -c Release -o ./bin",
|
|
31
|
+
"build:all": "npm run build:host && npm run build",
|
|
32
|
+
"prepublishOnly": "npm run build:all",
|
|
33
|
+
"start": "node dist/index.js",
|
|
34
|
+
"dev": "tsc --watch",
|
|
35
|
+
"test": "vitest run"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
39
|
+
"vscode-jsonrpc": "^8.2.1",
|
|
40
|
+
"zod": "^4.3.6"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^25.3.3",
|
|
44
|
+
"typescript": "^5.9.3",
|
|
45
|
+
"vitest": "^3.1.1"
|
|
46
|
+
}
|
|
47
|
+
}
|