@damper/mcp 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +24 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -644,6 +644,30 @@ server.registerTool('abandon_task', {
|
|
|
644
644
|
structuredContent: result,
|
|
645
645
|
};
|
|
646
646
|
});
|
|
647
|
+
// Tool: Delete task
|
|
648
|
+
server.registerTool('delete_task', {
|
|
649
|
+
title: 'Delete Task',
|
|
650
|
+
description: 'Permanently delete a task. Only works on tasks in planned status with no commits.',
|
|
651
|
+
inputSchema: z.object({
|
|
652
|
+
taskId: z.string(),
|
|
653
|
+
}),
|
|
654
|
+
outputSchema: z.object({
|
|
655
|
+
id: z.string(),
|
|
656
|
+
deleted: z.boolean(),
|
|
657
|
+
}),
|
|
658
|
+
annotations: {
|
|
659
|
+
readOnlyHint: false,
|
|
660
|
+
destructiveHint: true,
|
|
661
|
+
idempotentHint: true,
|
|
662
|
+
openWorldHint: false,
|
|
663
|
+
},
|
|
664
|
+
}, async ({ taskId }) => {
|
|
665
|
+
const result = await api('DELETE', `/api/agent/tasks/${taskId}`);
|
|
666
|
+
return {
|
|
667
|
+
content: [{ type: 'text', text: `✓ Task ${taskId} deleted` }],
|
|
668
|
+
structuredContent: result,
|
|
669
|
+
};
|
|
670
|
+
});
|
|
647
671
|
// ==================== Agent Instructions ====================
|
|
648
672
|
// Tool: Get agent instructions
|
|
649
673
|
server.registerTool('get_agent_instructions', {
|