Skip to content

INV-02: An agent reads cmapi through MCP tools #438

Open

Description

@ephico2real2

Part of #436

Story

As an AI agent working for a team, I want read-only MCP tools for clusters, namespaces, requests, quotas, capacity, policies and expirations, so that I can answer questions and prepare changes without hand-written HTTP calls.

Business value

Agents can explain the state of a team's namespaces and requests in seconds, with the same answers the portal shows.

Context

The read operations exist and are documented in /openapi.json and docs/04 (for example GET /api/v1/clusters/{id}/namespaces, GET /api/v1/requests, GET /api/v1/capacity, GET /api/v1/policies/results). Scoping is by the caller's roles (docs/14).

Acceptance criteria

  • Each tool is marked read-only and returns what the API returns for the same identity, shown by a test against the service.
  • Paged answers follow the API's cursors; an unknown or null figure stays null, never 0 (the portal's rule), shown by a test.
  • A caller without the permission gets the API's 403 problem, unchanged, shown by a test.

Tasks

  • Tool list from INV-01; schemas generated from /openapi.json.

Out of scope

  • Writes (INV-03, INV-04).

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Documented where a reader looks for it
  • Review ruled
  • Merged with its proof
  • Released on the default branch

Class

INV

Activity

  1. added
    story
    class:INV
    status:open
    Backlog
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backlogclass:INVstatus:openstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions