deleteBreakpoint
Remove a debugging breakpoint by its ID in the VICE C64 Emulator MCP Server. Use listBreakpoints to identify breakpoints before deletion.
Instructions
Delete a breakpoint by its ID.
Use listBreakpoints to see current breakpoint IDs.
Related tools: setBreakpoint, listBreakpoints
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| breakpointId | Yes | Breakpoint ID from setBreakpoint |
Implementation Reference
- src/index.ts:607-619 (handler)MCP tool handler for "deleteBreakpoint". Extracts breakpointId from args, calls ViceClient.deleteBreakpoint(checkpointId), and returns formatted success/error response.async (args) => { try { await client.deleteBreakpoint(args.breakpointId); return formatResponse({ success: true, deletedId: args.breakpointId, message: `Breakpoint ${args.breakpointId} deleted`, }); } catch (error) { return formatError(error as ViceError); } } );
- src/index.ts:603-605 (schema)Zod input schema defining the required 'breakpointId' parameter as a number.inputSchema: z.object({ breakpointId: z.number().describe("Breakpoint ID from setBreakpoint"), }),
- src/index.ts:595-619 (registration)Registers the "deleteBreakpoint" tool with the MCP server using server.registerTool, providing description, input schema, and handler function.server.registerTool( "deleteBreakpoint", { description: `Delete a breakpoint by its ID. Use listBreakpoints to see current breakpoint IDs. Related tools: setBreakpoint, listBreakpoints`, inputSchema: z.object({ breakpointId: z.number().describe("Breakpoint ID from setBreakpoint"), }), }, async (args) => { try { await client.deleteBreakpoint(args.breakpointId); return formatResponse({ success: true, deletedId: args.breakpointId, message: `Breakpoint ${args.breakpointId} deleted`, }); } catch (error) { return formatError(error as ViceError); } } );
- src/protocol/client.ts:631-638 (helper)ViceClient helper method implementing the low-level VICE binary monitor protocol command for deleting a checkpoint/breakpoint by ID.async deleteBreakpoint(checkpointId: number): Promise<void> { const body = Buffer.alloc(4); body.writeUInt32LE(checkpointId, 0); await this.sendCommand(Command.CheckpointDelete, body); // Remove from local tracking this.checkpoints.delete(checkpointId); }