@damper/mcp 0.3.20 → 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.
Files changed (2) hide show
  1. package/dist/index.js +26 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -111,6 +111,8 @@ server.registerTool('list_tasks', {
111
111
  title: 'List Tasks',
112
112
  description: 'Get roadmap tasks. Returns planned/in-progress by default. ' +
113
113
  'Filter by type, quarter, etc.\n\n' +
114
+ 'Returns up to 20 tasks by default. Response includes `total` count. ' +
115
+ 'If total > returned tasks, paginate with offset (e.g. offset=20 for page 2).\n\n' +
114
116
  '**Recommended:** Call `get_project_context` before starting work to understand codebase patterns.',
115
117
  inputSchema: z.object({
116
118
  status: z.enum(['planned', 'in_progress', 'done', 'all']).optional(),
@@ -642,6 +644,30 @@ server.registerTool('abandon_task', {
642
644
  structuredContent: result,
643
645
  };
644
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
+ });
645
671
  // ==================== Agent Instructions ====================
646
672
  // Tool: Get agent instructions
647
673
  server.registerTool('get_agent_instructions', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@damper/mcp",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "MCP server for Damper task management",
5
5
  "author": "Damper <hello@usedamper.com>",
6
6
  "repository": {