forgejo-mcp/operation/pull
Christoph Görn 2f932dd2e7 feat: ✨ add write-side PR review tools
Implements 6 new MCP tools for full PR review lifecycle:
- create_pull_review: Create reviews with optional inline comments
- submit_pull_review: Submit pending reviews
- dismiss_pull_review: Dismiss reviews with reason
- delete_pull_review: Delete pending reviews
- create_review_requests: Request reviews from users/teams
- delete_review_requests: Cancel review requests

Addresses #59 by enabling MCP clients to approve, request changes,
and leave per-line comments on pull requests. All tools follow
existing patterns (tool definition → handler → registration).

Implementation details:
- Added operation/pull/review.go with RegisterReviewTools
- Extended operation/params with review-specific constants
- Inline comments accepted as JSON string (MCP flat param constraint)
- Wired into operation.go registration flow

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 10:26:25 +01:00
..
pull.go fix: 🐛 adapt to mcp-go v0.43.2 breaking change in CallToolParams.Arguments 2026-01-30 09:06:32 +01:00
review.go feat: ✨ add write-side PR review tools 2026-01-30 10:26:25 +01:00