feat: add percentDone support to task update - #59
Open
nahugomez wants to merge 1 commit into
Open
Conversation
Add percentDone parameter to the task update subcommand, allowing AI assistants to set task progress percentages (0.0 to 1.0) via the MCP. Changes: - Add percentDone to Zod schema in tasks tool registration - Add percentDone to UpdateTaskArgs interface, analyzeUpdateState, and buildUpdateData in TaskUpdateService - Add test coverage for percentDone in update with all optional fields
This was referenced Jul 16, 2026
netadvanced
referenced
this pull request
in netadvanced/vikunja-mcp-ng
Jul 17, 2026
Resolve trivial additive conflict in TaskUpdateService.ts analyzeUpdateState: keep both #59's percent_done and #65's project_id previousState tracking. Claude-Session: https://claude.ai/code/session_016D2e7m4RD4YLiVN9Dvp2Vf
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.
Summary
Add
percentDoneparameter to the task update subcommand, allowing AI assistants to set task progress percentages (0.0 to 1.0) via the MCP.The Vikunja API already supports
percent_donebut the MCP server did not expose it.Changes
src/tools/tasks/index.ts: AddpercentDone: z.number().min(0).max(1).optional()to the Zod schemasrc/tools/tasks/crud/TaskUpdateService.ts: AddpercentDonetoUpdateTaskArgsinterface,analyzeUpdateStatetracking,affectedFields, andbuildUpdateDatamapping topercent_donetests/tools/tasks.test.ts: AddpercentDone: 0.5to the "update with all optional fields" test caseWhy
Without this, there is no way to set a task's progress percentage via the MCP. Users (and AI assistants) can only mark tasks as done (boolean), missing the granularity of partial progress (0-100%). This is especially useful for tracking work-in-progress tasks.