Add list_milestones MCP tool

What does this MR do and why?

Adds the read-only list_milestones MCP tool, wrapping the existing ProjectMilestonesResolver/GroupMilestonesResolver behind the GraphQL MCP tool layer. Placed in the core toolset alongside search_labels, since milestones are cross-cutting (used by both work items and merge requests) rather than scoped to one resource toolset.

save_milestone is intentionally left out of this MR: it is blocked on the mutations proposed in #638404.

Related to #638405 (parent: &24467).

Screenshots or screen recordings

Not applicable (no UI changes).

How to set up and validate locally

  1. Follow the MCP server setup in doc/development/duo_agent_platform/mcp/_index.md.
  2. Call list_milestones with full_path and is_project for a project or group you have access to, for example:
    { "full_path": "gitlab-org/gitlab", "is_project": true, "state": "active" }
  3. Confirm milestones are returned with pagination via first/after.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading
Loading