remove_monitor
Remove a user from monitoring a MantisBT issue to stop email notifications about updates.
Instructions
Remove a user from the monitor list of a MantisBT issue. The user will no longer receive email notifications for updates to this issue.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes | Numeric issue ID | |
| username | Yes | Username of the monitor to remove |
Implementation Reference
- src/tools/monitors.ts:52-78 (handler)The registration and implementation handler for the 'remove_monitor' tool.
server.registerTool( 'remove_monitor', { title: 'Remove Issue Monitor', description: 'Remove a user from the monitor list of a MantisBT issue. The user will no longer receive email notifications for updates to this issue.', inputSchema: z.object({ issue_id: z.coerce.number().int().positive().describe('Numeric issue ID'), username: z.string().min(1).describe('Username of the monitor to remove'), }), annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, }, }, async ({ issue_id, username }) => { try { await client.delete<unknown>(`issues/${issue_id}/monitors/${username}`); return { content: [{ type: 'text', text: JSON.stringify({ success: true }, null, 2) }], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: 'text', text: errorText(msg) }], isError: true }; } } );