Delete Issue
delete_issuePermanently remove a MantisBT issue by its numeric ID. This irreversible action deletes bug reports from the tracker system.
Instructions
Permanently delete a MantisBT issue. This action is irreversible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric issue ID to delete |
Implementation Reference
- src/tools/issues.ts:482-507 (handler)Implementation of the 'delete_issue' tool handler, which calls the MantisBT API to delete an issue.
server.registerTool( 'delete_issue', { title: 'Delete Issue', description: 'Permanently delete a MantisBT issue. This action is irreversible.', inputSchema: z.object({ id: z.coerce.number().int().positive().describe('Numeric issue ID to delete'), }), annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, }, }, async ({ id }) => { try { await client.delete<unknown>(`issues/${id}`); return { content: [{ type: 'text', text: `Issue #${id} deleted successfully.` }], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: 'text', text: errorText(msg) }], isError: true }; } } );