Repository navigation
Add next-work dismiss, restore and list tools to kcap mcp workitems - #1148
Conversation
…1150) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
PR Summary by QodoAdd next-work dismissal tools to the workitems MCP server
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
It removes a recorded dismissal, so an approval layer reading the hints must treat it as a removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
954d617 to
a2503f8
Compare
…ai-3184-next-work-dismiss-tools # Conflicts: # README.md # src/Capacitor.Cli.Core/Resources/help-mcp.txt # src/Capacitor.Cli/Commands/McpWorkItemsServer.cs
|
The two open Qodo rule items are stale: the PR description's reference line is 🤖 Addressed by Claude Code |
Assigning a string straight into a JsonObject trips NativeAOT's reflection guard at runtime, invisible to managed unit tests — the dismiss/restore body is built via JsonNode.Parse instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #1150 — AI-3184
What & why
Adds
dismiss_next_work,restore_next_workandlist_dismissed_next_worktokcap mcp workitems, so an agent presenting next work can record that the user turned a suggestion down and offer the next one. They call the server's/api/next-work/dismissalsroutes; the dismiss and restore responses carry the refreshed page one to offer next.Where to look
A
not_presentedrefusal (409) surfaces as a tool error carrying the code, meaning the item is no longer a current suggestion. The server routes ship in kurrent-io/kcap-server#2055; against an older server the tools get a 404.Verification
Tool-list schemas, each tool's route and body (with
repo_hashincluded or omitted), the 409 relay and the missing-target_keyshort-circuit are covered byMcpWorkItemsServerTests; an AOT publish showed no trim or AOT warnings.🤖 Generated with Claude Code