GraphQL-based MCP mutation tool for creating notes (comments) on work items
Summary
Implement a GraphQL-based MCP (Model Context Protocol) mutation for creating notes (comments) on work items. This enables users to add comments to issues, epics, tasks, and other work item types through the MCP server.
Proposed Solution
Add a create_workitem_note 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
Security and validation:
- Prevents quick actions (commands starting with
/) in note bodies
Related
- Design document
- Issue: #577212
- Base implementation: !211553 (merged)