fix(update/update-task/update-subtask): Updates the parameter descriptions for update, update-task and update-subtask to ensure the MCP server correctly reaches for the right update command based on what is being updated -- all tasks, one task, or a subtask.
This commit is contained in:
5
.changeset/chubby-moose-stay.md
Normal file
5
.changeset/chubby-moose-stay.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'task-master-ai': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Updates the parameter descriptions for update, update-task and update-subtask to ensure the MCP server correctly reaches for the right update command based on what is being updated -- all tasks, one task, or a subtask.
|
||||||
@@ -20,12 +20,12 @@ export function registerUpdateSubtaskTool(server) {
|
|||||||
server.addTool({
|
server.addTool({
|
||||||
name: 'update_subtask',
|
name: 'update_subtask',
|
||||||
description:
|
description:
|
||||||
'Appends additional information to a specific subtask without replacing existing content',
|
'Appends timestamped information to a specific subtask without replacing existing content',
|
||||||
parameters: z.object({
|
parameters: z.object({
|
||||||
id: z
|
id: z
|
||||||
.string()
|
.string()
|
||||||
.describe(
|
.describe(
|
||||||
'ID of the subtask to update in format "parentId.subtaskId" (e.g., "5.2")'
|
'ID of the subtask to update in format "parentId.subtaskId" (e.g., "5.2"). Parent ID is the ID of the task that contains the subtask.'
|
||||||
),
|
),
|
||||||
prompt: z.string().describe('Information to add to the subtask'),
|
prompt: z.string().describe('Information to add to the subtask'),
|
||||||
research: z
|
research: z
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ export function registerUpdateTaskTool(server) {
|
|||||||
parameters: z.object({
|
parameters: z.object({
|
||||||
id: z
|
id: z
|
||||||
.string()
|
.string()
|
||||||
.describe("ID of the task or subtask (e.g., '15', '15.2') to update"),
|
.describe(
|
||||||
|
"ID of the task (e.g., '15') to update. Subtasks are supported using the update-subtask tool."
|
||||||
|
),
|
||||||
prompt: z
|
prompt: z
|
||||||
.string()
|
.string()
|
||||||
.describe('New information or context to incorporate into the task'),
|
.describe('New information or context to incorporate into the task'),
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export function registerUpdateTool(server) {
|
|||||||
server.addTool({
|
server.addTool({
|
||||||
name: 'update',
|
name: 'update',
|
||||||
description:
|
description:
|
||||||
"Update multiple upcoming tasks (with ID >= 'from' ID) based on new context or changes provided in the prompt. Use 'update_task' instead for a single specific task.",
|
"Update multiple upcoming tasks (with ID >= 'from' ID) based on new context or changes provided in the prompt. Use 'update_task' instead for a single specific task or 'update_subtask' for subtasks.",
|
||||||
parameters: z.object({
|
parameters: z.object({
|
||||||
from: z
|
from: z
|
||||||
.string()
|
.string()
|
||||||
|
|||||||
Reference in New Issue
Block a user