UNPKG

nodejs-debug-mcp

Version:

Model Context Protocol server exposing a debug-script tool for Node.js inspector sessions.

85 lines 2.15 kB
import { z } from 'zod'; export declare const breakpointLocationSchema: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; }, "strip", z.ZodTypeAny, { file: string; line: number; }, { file: string; line: number; }>; export type BreakpointLocation = z.infer<typeof breakpointLocationSchema>; export declare const debugScriptInputSchema: z.ZodObject<{ command: z.ZodString; breakpoint: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; }, "strip", z.ZodTypeAny, { file: string; line: number; }, { file: string; line: number; }>; expression: z.ZodString; timeout: z.ZodNumber; includeStack: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { command: string; breakpoint: { file: string; line: number; }; expression: string; timeout: number; includeStack?: boolean | undefined; }, { command: string; breakpoint: { file: string; line: number; }; expression: string; timeout: number; includeStack?: boolean | undefined; }>; export type DebugScriptArguments = z.infer<typeof debugScriptInputSchema>; export interface EvaluationResult { type: string; value: unknown; stack?: StackFrame[]; } export interface StackFrame { function?: string; file?: string; line?: number; column?: number; } export interface ToolContent { type: 'text'; text: string; [key: string]: unknown; } export interface DebugScriptStructuredSuccess { results: EvaluationResult[]; [key: string]: unknown; } export interface DebugScriptStructuredError { error: string; [key: string]: unknown; } export interface DebugScriptSuccess { content: ToolContent[]; structuredContent: DebugScriptStructuredSuccess; isError?: false; [key: string]: unknown; } export interface DebugScriptError { content: ToolContent[]; structuredContent: DebugScriptStructuredError; isError: true; [key: string]: unknown; } export type DebugScriptResponse = DebugScriptSuccess | DebugScriptError; //# sourceMappingURL=types.d.ts.map