mcp: response projection and summaries in list_resources

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
api, backend

Línea de trabajo

Start by locating the existing list_resources and get_resource entry points and examining how label and field selectors are passed through to kcp. Define the behavior for fields, limit/continue pagination, and conditionSummary, then validate projections, pagination, and condition reduction against the live-deployment scenarios described in the issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Motivation

list_resources returns full objects. For agent use this is the biggest cost driver: a question like "which of my resources aren't ready" pulls every manifest into the model context when one line per resource would do.

Proposal

Additions to list_resources (and get_resource where it applies):

  • fields: a list of JSONPath-like projections, for example metadata.name, spec.kubernetes.version. The response contains only those fields per item.
  • limit and continue: standard list pagination passed through to kcp.
  • conditionSummary: opt-in flag that reduces each item to name, namespace and its failing or unknown conditions (type, reason, message). Ready resources are returned as a count.

Server-side projection keeps responses compact regardless of the model or client. Label and field selectors already exist, this completes the story for read-heavy agent workloads.

Validation notes

Verified against a live deployment: the data needed for fleet-wide checks (status conditions, spec fields) is all present in responses today, but only as full manifests.
Typical agent questions ("do all my X run multi-zone", "which resources aren't ready", "what versions are my X on") need only two or three fields per item.

Lenguaje dominante
Go
Estrellas
1
Forks
2
Merge medio
8 h 16 min
PR fusionados (30 d)
3

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kcp-dev/contrib-virtual-workspaces

Todos los issues de kcp-dev/contrib-virtual-workspaces

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.