feat(worker): MCP tools update_planning_task and finalize

This commit is contained in:
mika kuns
2026-04-23 23:03:42 +02:00
parent 0088d6e0e0
commit 99c6a71e4c
3 changed files with 59 additions and 0 deletions

View File

@@ -82,4 +82,19 @@ public sealed class PlanningMcpService
await _tasks.DeleteAsync(taskId, cancellationToken);
}
public async Task UpdatePlanningTask(
PlanningMcpContext ctx,
string? title,
string? description,
CancellationToken cancellationToken)
{
await _tasks.UpdatePlanningTaskAsync(ctx.ParentTaskId, title, description, cancellationToken);
}
public Task<int> Finalize(
PlanningMcpContext ctx,
bool queueAgentTasks,
CancellationToken cancellationToken)
=> _tasks.FinalizePlanningAsync(ctx.ParentTaskId, queueAgentTasks, cancellationToken);
}