feat: implement User Story 3 - Task & Property Management
Implemented task tracking and property management functionality, completing User Story 3 with 8 new MCP tools. Task Management Tools (5 tools): 1. obsidian_list_tasks - List all tasks in vault or specific file - Filter by status (done/todo/custom), file, path - Support verbose mode with line numbers - Output formats: json, tsv, csv, text - Flags: total, active, daily 2. obsidian_toggle_task - Toggle task between done/todo states - Specify by ref (path:line) or file/path + line - Support daily note flag 3. obsidian_mark_task_done - Mark task as completed - Same targeting options as toggle 4. obsidian_mark_task_todo - Mark task as incomplete - Same targeting options as toggle 5. obsidian_update_task_status - Set custom status character (-, >, !, ?, etc.) - Enables custom task workflows Property Management Tools (3 tools): 6. obsidian_get_property - Read single property value from file - Required: property name - Target by file name or path 7. obsidian_set_property - Set or update property on file - Required: name, value - Optional: type (text, list, number, checkbox, date, datetime) - Auto-infers type if not specified 8. obsidian_remove_property - Delete property from file - Required: property name - Target by file name or path Implementation Details: - Created src/tools/tasks.ts with 5 task management tools - Extended src/tools/properties.ts with 3 property tools - Added Zod schemas for validation (listTasksSchema, taskReferenceSchema, propertyReadSchema, propertySetSchema, propertyRemoveSchema) - All tools use formatParam() for proper parameter quoting - Complete inputSchema definitions for tools/list exposure - Command mapping verified via 'obsidian help' for each command Commands Used: - obsidian tasks (list) - obsidian task (manipulate) - obsidian property:read - obsidian property:set - obsidian property:remove Files Changed: - src/tools/tasks.ts (new): 5 task management tools - src/tools/properties.ts: Added registerPropertyManagementTools() - src/tools/index.ts: Register task and property management tools - manifest.json: Added 8 new tool descriptions - specs/001-obsidian-mcp-bundle/tasks.md: Marked T064-T075, T079 complete Task Progress: - Completed: 13 of 18 US3 tasks (72%) - Remaining: T076-T078 (convenience wrappers), T080-T081 (helpers) - Total project: 83/98 tasks (84.7%) Build: ✅ 0 errors Validation: ✅ Manifest passes Tool Count: 20 → 28 tools (+8) User Story 3 Status: Core implementation complete ✅ Next: T076-T078 convenience wrappers (optional), Polish phase Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -113,6 +113,38 @@
|
||||
{
|
||||
"name": "obsidian_get_property_count",
|
||||
"description": "Get the usage count for a specific property across the vault. Shows how many notes use this property."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_list_tasks",
|
||||
"description": "List all tasks in the vault or specific file. Filter by status (done/todo), show line numbers with verbose flag."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_toggle_task",
|
||||
"description": "Toggle a task status between done and todo. Specify task by ref (path:line) or by file/path + line number."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_mark_task_done",
|
||||
"description": "Mark a task as done (completed). Specify task by ref (path:line) or by file/path + line number."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_mark_task_todo",
|
||||
"description": "Mark a task as todo (incomplete). Specify task by ref (path:line) or by file/path + line number."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_update_task_status",
|
||||
"description": "Set a custom status character for a task (e.g., '-', '>', '!', '?'). Specify task by ref or file/path + line."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_get_property",
|
||||
"description": "Read a single property value from a file. Specify property name and file (by name or path)."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_set_property",
|
||||
"description": "Set or update a property on a file. Specify property name, value, optional type, and file."
|
||||
},
|
||||
{
|
||||
"name": "obsidian_remove_property",
|
||||
"description": "Remove a property from a file. Specify property name and file (by name or path)."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user