@vibetasks/mcp-server 0.5.6 → 0.6.0
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 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -790,7 +790,7 @@ Generated by TaskFlow MCP Server`;
|
|
|
790
790
|
// update_subtask
|
|
791
791
|
{
|
|
792
792
|
name: "update_subtask",
|
|
793
|
-
description: "
|
|
793
|
+
description: "\u26A1 CRITICAL: Mark subtasks done IMMEDIATELY after completing each one. This tool updates a subtask - use it to mark done=true RIGHT AFTER you finish each step (not all at once!). Also for adding progress notes or updating titles.",
|
|
794
794
|
inputSchema: z.object({
|
|
795
795
|
task_id: z.string().describe("Parent task ID"),
|
|
796
796
|
subtask_id: z.string().describe("Subtask ID to update"),
|
|
@@ -816,6 +816,12 @@ Generated by TaskFlow MCP Server`;
|
|
|
816
816
|
if (args.title !== void 0) subtasks[subtaskIndex].title = args.title;
|
|
817
817
|
if (args.notes !== void 0) subtasks[subtaskIndex].notes = args.notes;
|
|
818
818
|
const updated = await taskOps2.updateTask(args.task_id, { subtasks_json: subtasks });
|
|
819
|
+
const doneCount = subtasks.filter((s) => s.done).length;
|
|
820
|
+
const totalCount = subtasks.length;
|
|
821
|
+
const percentage = Math.round(doneCount / totalCount * 100);
|
|
822
|
+
const barLength = 20;
|
|
823
|
+
const filled = Math.round(doneCount / totalCount * barLength);
|
|
824
|
+
const progressBar = "\u2588".repeat(filled) + "\u2591".repeat(barLength - filled);
|
|
819
825
|
return {
|
|
820
826
|
content: [
|
|
821
827
|
{
|
|
@@ -824,9 +830,10 @@ Generated by TaskFlow MCP Server`;
|
|
|
824
830
|
{
|
|
825
831
|
success: true,
|
|
826
832
|
task_id: args.task_id,
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
833
|
+
subtask_updated: subtasks[subtaskIndex],
|
|
834
|
+
progress: `${doneCount}/${totalCount} subtasks completed (${percentage}%)`,
|
|
835
|
+
progress_bar: `[${progressBar}] ${percentage}%`,
|
|
836
|
+
message: args.done ? `\u2713 Subtask marked done! ${doneCount}/${totalCount} complete.${doneCount === totalCount ? " \u{1F389} All subtasks complete!" : ""}` : `Subtask updated. ${doneCount}/${totalCount} complete.`
|
|
830
837
|
},
|
|
831
838
|
null,
|
|
832
839
|
2
|
package/package.json
CHANGED