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):

  1. This MR - GetSavedViewTool (fetch saved view metadata)
  2. GetSavedViewWorkItemsTool (fetch work items with filters)
  3. Orchestrator service + tool registration

Key changes

  • New Mcp::Tools::WorkItems::GetSavedViewTool class that builds and executes a GetNamespaceSavedView GraphQL 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

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

Merge request reports

Loading