@damper/mcp 0.3.16 → 0.3.17
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 +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -240,10 +240,12 @@ server.registerTool('get_task', {
|
|
|
240
240
|
// Tool: Update task
|
|
241
241
|
server.registerTool('update_task', {
|
|
242
242
|
title: 'Update Task',
|
|
243
|
-
description: 'Update task fields like description, implementation plan, priority, effort, quarter, labels, or visibility. ' +
|
|
244
|
-
'Useful for refining task details as you learn more about the work.'
|
|
243
|
+
description: 'Update task fields like title, description, implementation plan, priority, effort, quarter, labels, or visibility. ' +
|
|
244
|
+
'Useful for refining task details as you learn more about the work. ' +
|
|
245
|
+
'Use title to set a concise task name after planning (especially for CLI-created tasks with placeholder titles).',
|
|
245
246
|
inputSchema: z.object({
|
|
246
247
|
taskId: z.string().describe('Task ID'),
|
|
248
|
+
title: z.string().optional().describe('Concise task title (e.g., "Fix SSO redirect login flow")'),
|
|
247
249
|
description: z.string().optional().describe('Task description'),
|
|
248
250
|
implementationPlan: z.string().optional().describe('Implementation plan (markdown)'),
|
|
249
251
|
priority: z.enum(['high', 'medium', 'low']).nullable().optional().describe('Task priority'),
|
|
@@ -269,8 +271,10 @@ server.registerTool('update_task', {
|
|
|
269
271
|
idempotentHint: true,
|
|
270
272
|
openWorldHint: false,
|
|
271
273
|
},
|
|
272
|
-
}, async ({ taskId, description, implementationPlan, priority, effort, quarter, labels, isPublic }) => {
|
|
274
|
+
}, async ({ taskId, title, description, implementationPlan, priority, effort, quarter, labels, isPublic }) => {
|
|
273
275
|
const body = {};
|
|
276
|
+
if (title !== undefined)
|
|
277
|
+
body.title = title;
|
|
274
278
|
if (description !== undefined)
|
|
275
279
|
body.description = description;
|
|
276
280
|
if (implementationPlan !== undefined)
|
|
@@ -287,6 +291,8 @@ server.registerTool('update_task', {
|
|
|
287
291
|
body.isPublic = isPublic;
|
|
288
292
|
const result = await api('PATCH', `/api/agent/tasks/${taskId}`, body);
|
|
289
293
|
const updates = [];
|
|
294
|
+
if (title !== undefined)
|
|
295
|
+
updates.push(`title="${title}"`);
|
|
290
296
|
if (description !== undefined)
|
|
291
297
|
updates.push('description');
|
|
292
298
|
if (implementationPlan !== undefined)
|