Add MCP tools for review feedback resolution#741
Merged
Conversation
Adds dispatch_resolve_review_feedback and dispatch_add_review_message MCP tools so agents can resolve human review feedback items and reply to review threads. Wired through the full MCP plumbing: callback types, handlers, tool registrations, and route/server wiring. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Tests resolveReviewFeedback and addReviewThreadMessage: success paths, not-found errors, default values, and SSE event publishing. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Job agents already have persona review tools but were missing the new dispatch_resolve_review_feedback and dispatch_add_review_message tools. Added to JOB_TOOLS and extended the integration test assertion. Co-Authored-By: Claude Opus 4.6 <[email protected]>
When a human review is submitted, the tmux injection now tells the agent how to work through feedback: reply with questions, resolve items with the MCP tools, and include notes when dismissing. Co-Authored-By: Claude Opus 4.6 <[email protected]>
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
dispatch_resolve_review_feedbackMCP tool — agents can resolve human review feedback items as fixed, ignored, or wont_fix, with optional note. Parent review status auto-recomputes.dispatch_add_review_messageMCP tool — agents can reply to review feedback threads (e.g. ask clarifying questions before resolving).McpRequestContext, handler implementations inmcp-review-handlers.ts, zod-schema tool registrations inpersona-interaction-tools.ts, wiring inmcp.tsandserver.ts.Test plan
pnpm --filter @dispatch/server check)pnpm run check)pnpm run test)react-diff-viewinstall issue in worktrees — passes oncepnpm installruns)🤖 Generated with Claude Code