Skip to main content
Glama
workbackai
by workbackai

delete_breakpoint

Remove a specific breakpoint in the MCP NodeJS Debugger by providing the breakpoint ID to streamline debugging and code inspection.

Instructions

Deletes a specified breakpoint

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
breakpointIdYesID of the breakpoint to remove

Implementation Reference

  • Handler function that removes the specified breakpoint by sending 'Debugger.removeBreakpoint' to the inspector WebSocket and deleting it from local tracking.
    async ({ breakpointId }) => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } await inspector.send('Debugger.removeBreakpoint', { breakpointId: breakpointId }); // Remove from our local tracking inspector.breakpoints.delete(breakpointId); return { content: [{ type: "text", text: `Breakpoint ${breakpointId} removed` }] }; } catch (err) { return { content: [{ type: "text", text: `Error removing breakpoint: ${err.message}` }] }; } }
  • Input schema defining the breakpointId parameter using Zod validation.
    { breakpointId: z.string().describe("ID of the breakpoint to remove") },
  • Registration of the delete_breakpoint tool using server.tool, including name, description, schema, and handler.
    server.tool( "delete_breakpoint", "Deletes a specified breakpoint", { breakpointId: z.string().describe("ID of the breakpoint to remove") }, async ({ breakpointId }) => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } await inspector.send('Debugger.removeBreakpoint', { breakpointId: breakpointId }); // Remove from our local tracking inspector.breakpoints.delete(breakpointId); return { content: [{ type: "text", text: `Breakpoint ${breakpointId} removed` }] }; } catch (err) { return { content: [{ type: "text", text: `Error removing breakpoint: ${err.message}` }] }; } } );

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/workbackai/mcp-nodejs-debugger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server