debugger-mcp-server 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/CLAUDE.md +73 -0
- package/README.md +108 -0
- package/dist/bridge/bridgeClient.d.ts +5 -0
- package/dist/bridge/bridgeClient.js +33 -0
- package/dist/bridge/bridgeClient.js.map +1 -0
- package/dist/bridge/bridgeTypes.d.ts +61 -0
- package/dist/bridge/bridgeTypes.js +2 -0
- package/dist/bridge/bridgeTypes.js.map +1 -0
- package/dist/bridge/connectionManager.d.ts +2 -0
- package/dist/bridge/connectionManager.js +67 -0
- package/dist/bridge/connectionManager.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +124 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/analysis/analyzeCode.d.ts +4 -0
- package/dist/tools/analysis/analyzeCode.js +26 -0
- package/dist/tools/analysis/analyzeCode.js.map +1 -0
- package/dist/tools/breakpoints/listBreakpoints.d.ts +4 -0
- package/dist/tools/breakpoints/listBreakpoints.js +16 -0
- package/dist/tools/breakpoints/listBreakpoints.js.map +1 -0
- package/dist/tools/breakpoints/removeBreakpoints.d.ts +4 -0
- package/dist/tools/breakpoints/removeBreakpoints.js +22 -0
- package/dist/tools/breakpoints/removeBreakpoints.js.map +1 -0
- package/dist/tools/breakpoints/setBreakpoints.d.ts +4 -0
- package/dist/tools/breakpoints/setBreakpoints.js +29 -0
- package/dist/tools/breakpoints/setBreakpoints.js.map +1 -0
- package/dist/tools/debugSession/continueExecution.d.ts +4 -0
- package/dist/tools/debugSession/continueExecution.js +24 -0
- package/dist/tools/debugSession/continueExecution.js.map +1 -0
- package/dist/tools/debugSession/evaluateExpression.d.ts +4 -0
- package/dist/tools/debugSession/evaluateExpression.js +28 -0
- package/dist/tools/debugSession/evaluateExpression.js.map +1 -0
- package/dist/tools/debugSession/getCallStack.d.ts +4 -0
- package/dist/tools/debugSession/getCallStack.js +24 -0
- package/dist/tools/debugSession/getCallStack.js.map +1 -0
- package/dist/tools/debugSession/getVariables.d.ts +4 -0
- package/dist/tools/debugSession/getVariables.js +26 -0
- package/dist/tools/debugSession/getVariables.js.map +1 -0
- package/dist/tools/debugSession/startDebugSession.d.ts +4 -0
- package/dist/tools/debugSession/startDebugSession.js +34 -0
- package/dist/tools/debugSession/startDebugSession.js.map +1 -0
- package/dist/tools/debugSession/stepInto.d.ts +4 -0
- package/dist/tools/debugSession/stepInto.js +24 -0
- package/dist/tools/debugSession/stepInto.js.map +1 -0
- package/dist/tools/debugSession/stepOut.d.ts +4 -0
- package/dist/tools/debugSession/stepOut.js +24 -0
- package/dist/tools/debugSession/stepOut.js.map +1 -0
- package/dist/tools/debugSession/stepOver.d.ts +4 -0
- package/dist/tools/debugSession/stepOver.js +24 -0
- package/dist/tools/debugSession/stepOver.js.map +1 -0
- package/dist/tools/debugSession/stopDebugSession.d.ts +4 -0
- package/dist/tools/debugSession/stopDebugSession.js +22 -0
- package/dist/tools/debugSession/stopDebugSession.js.map +1 -0
- package/dist/tools/toolRegistry.d.ts +4 -0
- package/dist/tools/toolRegistry.js +29 -0
- package/dist/tools/toolRegistry.js.map +1 -0
- package/dist/tools/toolTypes.d.ts +6 -0
- package/dist/tools/toolTypes.js +8 -0
- package/dist/tools/toolTypes.js.map +1 -0
- package/package.json +23 -0
- package/src/bridge/bridgeClient.ts +40 -0
- package/src/bridge/bridgeTypes.ts +70 -0
- package/src/bridge/connectionManager.ts +82 -0
- package/src/index.ts +10 -0
- package/src/server.ts +143 -0
- package/src/tools/analysis/analyzeCode.ts +33 -0
- package/src/tools/breakpoints/listBreakpoints.ts +23 -0
- package/src/tools/breakpoints/removeBreakpoints.ts +28 -0
- package/src/tools/breakpoints/setBreakpoints.ts +37 -0
- package/src/tools/debugSession/continueExecution.ts +30 -0
- package/src/tools/debugSession/evaluateExpression.ts +34 -0
- package/src/tools/debugSession/getCallStack.ts +30 -0
- package/src/tools/debugSession/getVariables.ts +32 -0
- package/src/tools/debugSession/startDebugSession.ts +40 -0
- package/src/tools/debugSession/stepInto.ts +30 -0
- package/src/tools/debugSession/stepOut.ts +30 -0
- package/src/tools/debugSession/stepOver.ts +30 -0
- package/src/tools/debugSession/stopDebugSession.ts +28 -0
- package/src/tools/toolRegistry.ts +30 -0
- package/src/tools/toolTypes.ts +8 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { registerAnalyzeCodeTool } from "./analysis/analyzeCode.js";
|
|
3
|
+
import { registerSetBreakpointsTool } from "./breakpoints/setBreakpoints.js";
|
|
4
|
+
import { registerRemoveBreakpointsTool } from "./breakpoints/removeBreakpoints.js";
|
|
5
|
+
import { registerListBreakpointsTool } from "./breakpoints/listBreakpoints.js";
|
|
6
|
+
import { registerStartDebugSessionTool } from "./debugSession/startDebugSession.js";
|
|
7
|
+
import { registerStopDebugSessionTool } from "./debugSession/stopDebugSession.js";
|
|
8
|
+
import { registerStepOverTool } from "./debugSession/stepOver.js";
|
|
9
|
+
import { registerStepIntoTool } from "./debugSession/stepInto.js";
|
|
10
|
+
import { registerStepOutTool } from "./debugSession/stepOut.js";
|
|
11
|
+
import { registerContinueExecutionTool } from "./debugSession/continueExecution.js";
|
|
12
|
+
import { registerGetVariablesTool } from "./debugSession/getVariables.js";
|
|
13
|
+
import { registerGetCallStackTool } from "./debugSession/getCallStack.js";
|
|
14
|
+
import { registerEvaluateExpressionTool } from "./debugSession/evaluateExpression.js";
|
|
15
|
+
|
|
16
|
+
export const registerAllTools = (params: { server: McpServer }): void => {
|
|
17
|
+
registerAnalyzeCodeTool(params);
|
|
18
|
+
registerSetBreakpointsTool(params);
|
|
19
|
+
registerRemoveBreakpointsTool(params);
|
|
20
|
+
registerListBreakpointsTool(params);
|
|
21
|
+
registerStartDebugSessionTool(params);
|
|
22
|
+
registerStopDebugSessionTool(params);
|
|
23
|
+
registerStepOverTool(params);
|
|
24
|
+
registerStepIntoTool(params);
|
|
25
|
+
registerStepOutTool(params);
|
|
26
|
+
registerContinueExecutionTool(params);
|
|
27
|
+
registerGetVariablesTool(params);
|
|
28
|
+
registerGetCallStackTool(params);
|
|
29
|
+
registerEvaluateExpressionTool(params);
|
|
30
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const formatToolResult = (params: { data: unknown }): string => {
|
|
2
|
+
return JSON.stringify(params.data, null, 2);
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export const formatErrorResult = (params: { error: unknown }): string => {
|
|
6
|
+
const message = params.error instanceof Error ? params.error.message : String(params.error);
|
|
7
|
+
return `Error: ${message}`;
|
|
8
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "Node16",
|
|
5
|
+
"moduleResolution": "Node16",
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"rootDir": "src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"sourceMap": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/**/*"],
|
|
16
|
+
"exclude": ["node_modules", "dist"]
|
|
17
|
+
}
|