clear_task
Removes existing task data to reset the task management system, enabling a fresh start on the Divide and Conquer MCP Server for streamlined task breakdown and progress tracking.
Instructions
Clears the current task data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1089-1114 (handler)The handler function that clears the current task by overwriting the config file with the default empty task data and returns a success message.private async clearTask(): Promise<any> { try { // Write the default task data to the file await this.writeTaskData({ ...DEFAULT_TASK_DATA }); return { content: [ { type: 'text', text: 'Task cleared successfully.', }, ], }; } catch (error) { console.error('Error clearing task:', error); return { content: [ { type: 'text', text: `Error clearing task: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
- src/index.ts:385-393 (schema)The input schema and metadata for the 'clear_task' tool, which takes no parameters.{ name: 'clear_task', description: 'Clears the current task data.', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/index.ts:448-449 (registration)The switch case in the CallToolRequestHandler that registers and dispatches 'clear_task' calls to the handler method.case 'clear_task': return await this.clearTask();