feat: add 18 task MCP tools (scheduling, lifecycle, project mgmt, sta…#618
Open
bmestrallet wants to merge 2 commits into
Open
feat: add 18 task MCP tools (scheduling, lifecycle, project mgmt, sta…#618bmestrallet wants to merge 2 commits into
bmestrallet wants to merge 2 commits into
Conversation
…ts, favorites) Extends io.meeds.task.mcp.TaskMcpTool (+ ai-tool-definitions.json) with tools the AI/EVA assistant was missing. All writes are require_approval=true, all reuse the existing services + ACL checks (edit/access/view permission helpers). Scheduling & lifecycle: - set_task_dates (reschedule an existing task; create already took dates, this sets them on an existing one), complete_task / reopen_task (the `completed` flag, which is distinct from the status column), set_task_priority, list_unscheduled_tasks (uncompleted tasks with neither a start nor a due date — the Plan-view bucket). Project management: - update_project (name/description/colour), add_project_member / remove_project_member (participators), set_project_manager / remove_project_manager, create_project_status / rename_project_status. Reporting & favorites & comments: - get_project_statistics (uncompleted task counts per status + total; new ProjectStatisticsModel), favorite_project / unfavorite_project / favorite_task / unfavorite_task (via the social FavoriteService, now injected), delete_task_comment. Note: task-comment editing is intentionally omitted — CommentService exposes only addComment/removeComment, no update. 41 tools total. 12 new unit tests in TaskMcpToolTest (49 passing). Services build green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…t label) Adds list_task_labels (read), update_project_label (rename) and delete_project_label to complete label management; catalog 41 -> 44. Reuses LabelService + project-edit ACL via a new getEditableLabel helper. +4 unit tests (53 passing). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What & why
Expands the Task add-on's MCP tool surface so EVA can act on tasks and projects, not just read them. Adds 18 new tools entirely within this repo (
io.meeds.task.mcp.TaskMcpTool+services/src/main/resources/ai-tool-definitions.json), taking the catalog from 23 → 41. Backend-only; no AI/MCP-repo change.Each tool runs as the calling user (platform ACLs apply); write tools are flagged
require_approval.Tools added
⏱️ Scheduling & lifecycle
set_task_dates— set/clear start, end and/or due datescomplete_task/reopen_task— toggle thecompletedflag (distinct from the status column)set_task_priority— NONE/LOW/NORMAL/HIGH/URGENTlist_unscheduled_tasks(read) — tasks with no due date, optionally per project🗂️ Project management
update_project— name / description / colour (only provided fields change)add_project_member/remove_project_memberset_project_manager/remove_project_managercreate_project_status/rename_project_status📊 Reporting
get_project_statistics(read) — uncompleted-task counts, total + per status (newProjectStatisticsModel)⭐ Favorites
favorite_project/unfavorite_project,favorite_task/unfavorite_task(socialFavoriteService)delete_task_comment— author or task-editor onlyImplementation notes
getEditableTask/getEditableProject/getViewableProject/getAccessibleTask.FavoriteServiceinjected intoTaskMcpTool; favorites use object typesproject/taskwithparentObjectId = null(same as the favorites REST).-parametersjavac flag so snake_case schema args bind to the method params.Testing
TaskMcpToolTest(happy paths + a permission-denied case) → 49 passing, 0 failures;mvn install -pl services→ BUILD SUCCESS.Registered tools: 77 → 95; an OAuth-authenticatedtools/listshowed all 18 new tools;get_project_statisticsreturned real data ({total_uncompleted_tasks: 105, uncompleted_by_status: {ToDo: 102, …}}); and thefavorite_project/unfavorite_projectwrite path executed as the user and self-reversed.Not included
CommentServiceexposes only add/remove (no update), so onlydelete_task_commentships.Links