GraphQL-based MCP query tool for retrieving notes (comments) from work items
Summary
Implement a GraphQL-based MCP (Model Context Protocol) query tool for retrieving notes (comments) from work items. This complements the existing create_workitem_note tool by enabling users to read and paginate through comments on issues, epics, tasks, and other work item types.
Proposed Solution
Add a get_workitem_notes tool that:
Flexible work item identification - Supports multiple identification methods:
- Direct URL (e.g.,
https://gitlab.com/namespace/project/-/work_items/42) - Project/group ID with work item IID
- Handles both project and group work items
Cursor-based pagination:
- Forward pagination:
first(1-100) andaftercursor - Backward pagination:
last(1-100) andbeforecursor
Related
- Issue: #577212
- Companion MR: !213398 (merged) (
create_workitem_note)