remove_logpoint
Remove a debugging logpoint from PHP applications to clean up debug output and maintain code clarity during development.
Instructions
Remove a logpoint
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logpoint_id | Yes | Logpoint ID |
Implementation Reference
- src/tools/advanced.ts:189-194 (handler)MCP tool handler function for 'remove_logpoint' that invokes the LogpointManager's removeLogpoint method and returns JSON success response.async ({ logpoint_id }) => { const success = ctx.logpointManager.removeLogpoint(logpoint_id); return { content: [{ type: 'text', text: JSON.stringify({ success, logpoint_id }) }], }; }
- src/tools/advanced.ts:186-188 (schema)Zod input schema defining the required 'logpoint_id' parameter as a string.{ logpoint_id: z.string().describe('Logpoint ID'), },
- src/tools/advanced.ts:183-195 (registration)Registration of the 'remove_logpoint' MCP tool using server.tool(), including description, schema, and handler.server.tool( 'remove_logpoint', 'Remove a logpoint', { logpoint_id: z.string().describe('Logpoint ID'), }, async ({ logpoint_id }) => { const success = ctx.logpointManager.removeLogpoint(logpoint_id); return { content: [{ type: 'text', text: JSON.stringify({ success, logpoint_id }) }], }; } );
- Helper method in LogpointManager class that removes a logpoint by ID from the internal Map and logs the action.removeLogpoint(id: string): boolean { const removed = this.logpoints.delete(id); if (removed) { logger.debug(`Logpoint removed: ${id}`); } return removed; }