@damper/mcp 0.3.1 ā 0.3.2
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 +11 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -331,7 +331,8 @@ server.registerTool('start_task', {
|
|
|
331
331
|
title: 'Start Task',
|
|
332
332
|
description: 'Lock and start a task. Fails if locked by another agent unless force=true. ' +
|
|
333
333
|
'Use force=true to take over a task from another agent (e.g., if they abandoned it). ' +
|
|
334
|
-
'Returns project context index with relevant sections for the task.'
|
|
334
|
+
'Returns project context index with relevant sections for the task. ' +
|
|
335
|
+
'Use add_note for session start/end and commits.',
|
|
335
336
|
inputSchema: z.object({
|
|
336
337
|
taskId: z.string(),
|
|
337
338
|
force: z.boolean().optional().describe('Take over lock from another agent'),
|
|
@@ -371,6 +372,7 @@ server.registerTool('start_task', {
|
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
374
|
}
|
|
375
|
+
lines.push('\nš” Use add_note to log session start, commits, and session end with next steps.');
|
|
374
376
|
return {
|
|
375
377
|
content: [{ type: 'text', text: lines.join('\n') }],
|
|
376
378
|
structuredContent: result,
|
|
@@ -404,7 +406,8 @@ server.registerTool('start_task', {
|
|
|
404
406
|
// Tool: Add note
|
|
405
407
|
server.registerTool('add_note', {
|
|
406
408
|
title: 'Add Note',
|
|
407
|
-
description: 'Add progress note to task.'
|
|
409
|
+
description: 'Add progress note to task. Log session start, commits (with hashes), decisions, ' +
|
|
410
|
+
'and session end with next steps. Notes help future agents continue your work.',
|
|
408
411
|
inputSchema: z.object({
|
|
409
412
|
taskId: z.string(),
|
|
410
413
|
note: z.string(),
|
|
@@ -506,7 +509,8 @@ const DocumentationSchema = z.object({
|
|
|
506
509
|
// Tool: Complete task
|
|
507
510
|
server.registerTool('complete_task', {
|
|
508
511
|
title: 'Complete Task',
|
|
509
|
-
description: 'Mark task done with summary.
|
|
512
|
+
description: 'Mark task done with summary. Include commit hashes and any follow-up work. ' +
|
|
513
|
+
'Returns documentation update suggestions.',
|
|
510
514
|
inputSchema: z.object({
|
|
511
515
|
taskId: z.string(),
|
|
512
516
|
summary: z.string().describe('What was implemented'),
|
|
@@ -537,9 +541,10 @@ server.registerTool('complete_task', {
|
|
|
537
541
|
server.registerTool('abandon_task', {
|
|
538
542
|
title: 'Abandon Task',
|
|
539
543
|
description: 'Release lock and return task to planned status. Use when you cannot complete the task ' +
|
|
540
|
-
'or need to stop working on it.',
|
|
544
|
+
'or need to stop working on it. Optionally provide summary (what done, what remains, blockers) for handoff.',
|
|
541
545
|
inputSchema: z.object({
|
|
542
546
|
taskId: z.string(),
|
|
547
|
+
summary: z.string().optional().describe('Handoff summary: what was done, what remains, any blockers'),
|
|
543
548
|
}),
|
|
544
549
|
outputSchema: z.object({
|
|
545
550
|
id: z.string(),
|
|
@@ -552,8 +557,8 @@ server.registerTool('abandon_task', {
|
|
|
552
557
|
idempotentHint: true,
|
|
553
558
|
openWorldHint: false,
|
|
554
559
|
},
|
|
555
|
-
}, async ({ taskId }) => {
|
|
556
|
-
const result = await api('POST', `/api/agent/tasks/${taskId}/abandon
|
|
560
|
+
}, async ({ taskId, summary }) => {
|
|
561
|
+
const result = await api('POST', `/api/agent/tasks/${taskId}/abandon`, summary ? { summary } : undefined);
|
|
557
562
|
return {
|
|
558
563
|
content: [{ type: 'text', text: `Abandoned ${result.id}: ${result.message}` }],
|
|
559
564
|
structuredContent: result,
|