delete_note
Permanently delete a note from a MantisBT issue. This irreversible action removes specified notes by providing issue and note IDs.
Instructions
Permanently delete a note from a MantisBT issue. This action is irreversible.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes | Numeric issue ID that owns the note | |
| note_id | Yes | Numeric note ID to delete |
Implementation Reference
- src/tools/notes.ts:104-115 (handler)The handler for the delete_note tool, which performs a DELETE request to the MantisBT API for a specific note.
async ({ issue_id, note_id }) => { try { await client.delete<unknown>(`issues/${issue_id}/notes/${note_id}`); return { content: [{ type: 'text', text: `Note #${note_id} deleted from issue #${issue_id}.` }], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: 'text', text: errorText(msg) }], isError: true }; } } ); - src/tools/notes.ts:94-97 (schema)Input validation schema for delete_note tool requiring issue_id and note_id.
inputSchema: z.object({ issue_id: z.coerce.number().int().positive().describe('Numeric issue ID that owns the note'), note_id: z.coerce.number().int().positive().describe('Numeric note ID to delete'), }), - src/tools/notes.ts:89-90 (registration)Registration of the delete_note tool in the MCP server.
server.registerTool( 'delete_note',