Add MCP GetSavedViewTool for fetching saved views
What does this MR do and why?
Introduces GetSavedViewTool, a new MCP GraphQL tool that queries namespace.savedViews to retrieve a saved view's metadata (name, description, filters, and sort configuration).
This is the first of three MRs that break down !226663 (closed):
-
This MR -
GetSavedViewTool(fetch saved view metadata) -
GetSavedViewWorkItemsTool(fetch work items with filters) - Orchestrator service + tool registration
Key changes
- New
Mcp::Tools::WorkItems::GetSavedViewToolclass that builds and executes aGetNamespaceSavedViewGraphQL query - Extracts the first saved view node from the response and returns it as structured content
- Returns an error if the saved view is not found or the user lacks access
- Comprehensive unit and integration tests
How to set up and validate locally
Unit tests have been added. UI tests will be shared in the third MR.
References
- Part of #592440
- Split from !226663 (closed)
- Implementation follows the MCP GraphQL Integration design document
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Naman Jagdish Gala