finalize_project
Mark a project as complete in the taskqueue-mcp server when all tasks are done and approved, finalizing the workflow in one step.
Instructions
Mark a project as complete. Can only be called when all tasks are both done and approved. This is typically the last step in a project workflow.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The ID of the project to finalize (e.g., proj-1). |
Implementation Reference
- src/server/toolExecutors.ts:375-387 (handler)The tool executor that implements the core logic for the 'finalize_project' tool. It validates the projectId argument and calls taskManager.approveProjectCompletion(projectId) to mark the project as complete.const finalizeProjectToolExecutor: ToolExecutor = { name: "finalize_project", async execute(taskManager, args) { // 1. Argument Validation const projectId = validateProjectId(args.projectId); // 2. Core Logic Execution const resultData = await taskManager.approveProjectCompletion(projectId); // 3. Return raw success data return resultData; }, };
- src/server/tools.ts:176-189 (schema)Defines the Tool object for 'finalize_project' including its name, description, and inputSchema that requires a 'projectId' string.const finalizeProjectTool: Tool = { name: "finalize_project", description: "Mark a project as complete. Can only be called when all tasks are both done and approved. This is typically the last step in a project workflow.", inputSchema: { type: "object", properties: { projectId: { type: "string", description: "The ID of the project to finalize (e.g., proj-1).", }, }, required: ["projectId"], }, };
- src/server/toolExecutors.ts:388-388 (registration)Registers the finalizeProjectToolExecutor in the toolExecutorMap used by the executeToolAndHandleErrors function.toolExecutorMap.set(finalizeProjectToolExecutor.name, finalizeProjectToolExecutor);
- src/server/tools.ts:438-438 (registration)Includes the finalizeProjectTool in the exported ALL_TOOLS array for MCP tool registration.finalizeProjectTool,