Repository navigation
Read an issue thread and your inbox over MCP - #244
Conversation
An agent could post a comment but never read the one it was replying to. get_issue does not return comments and there was no list tool, so the docs equivalent list_doc_comments had no issue twin.
list_issue_comments had no coverage for an issue with zero comments or for a comment whose author row is gone. Add both, including the trigger disable needed to get past the restrict foreign key and actually orphan a comment the way the fallback expects.
Mentions already landed in the notification table and nothing exposed them, so an assistant could be named on an issue and never know. Resolves the issue on each row, because a mention entity is the comment and the identifier was only recoverable by parsing the url.
Without a cursor an assistant polling its inbox reprocesses the same mention on every pass. markRead already scopes to the caller, so one account cannot clear another inbox.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 38 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Three tools so an assistant can work a board rather than only write to it.
list_issue_comments: an assistant could post a comment but never read thethread it was replying to.
get_issuedoes not return comments and the docsequivalent
list_doc_commentshad no issue twin.list_notifications: mentions already landed in thenotificationtable andnothing exposed them, so an assistant could be named on an issue and never
know. Each row resolves its issue, because a mention entity is the comment and
the identifier was otherwise recoverable only by parsing the url.
mark_notification_read: the cursor.markReadalready scopes to the caller,so one account cannot clear another inbox.
All three are thin wrappers over
listComments,listInboxandmarkRead,which already existed. No new tables and no schema change.
Greptile Summary
The PR adds MCP tools for reading issue discussions, listing the authenticated user's notifications, and marking notifications as read.
Confidence Score: 5/5
The PR appears safe to merge with no actionable defects identified in the changed paths.
The new tools delegate authorization and mutation to existing scoped services, preserve their pagination contracts, and add focused integration coverage for the exposed behavior.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR A[MCP client] --> B{Tool} B -->|list_issue_comments| C[Resolve authorized issue] C --> D[List paginated comments] D --> E[Resolve author names] E --> F[Return comment thread] B -->|list_notifications| G[List caller-scoped inbox] G --> H[Resolve comment-to-issue links] H --> I[Load issue summaries] I --> J[Return enriched notifications] B -->|mark_notification_read| K[Mark caller-owned rows read] K --> L[Return marked IDs]Reviews (1): Last reviewed commit: "feat(mcp): mark your notifications read" | Re-trigger Greptile