delete_issue
Permanently remove a MantisBT issue from the bug tracker. This irreversible action deletes the specified issue by its numeric ID.
Instructions
Permanently delete a MantisBT issue. This action is irreversible.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric issue ID to delete |
Implementation Reference
- src/tools/issues.ts:313-326 (registration)Registration of the delete_issue tool including its schema.
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, }, }, - src/tools/issues.ts:327-337 (handler)Handler function for the delete_issue tool that executes the delete operation.
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 }; } }