Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

GitLab MCP: workItem query fails, workItems works

Aperta
#985 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
gitlab, graphql, typescript
Ambito
cli, tooling

Direzione di ricerca

Inizia individuando gli strumenti MCP di GitLab, la relativa guida o gli esempi integrati e la gestione relativa a gitlab_execute_custom_query; confronta il campo workItem che non funziona con la query workItems(iid: ...) funzionante. Il lavoro è completato quando viene selezionato e implementato un miglioramento concordato—guida canonica, ricerca consapevole dello schema o un singolo nuovo tentativo con il campo suggerito—con una copertura del comportamento della query work-item.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Observed behavior

When querying a GitLab work item via gitlab_execute_custom_query, my first attempt used the field workItem on Project, which failed with:

GraphQL error: Field 'workItem' doesn't exist on type 'Project' (Did you mean `workItems`?)

Retrying with workItems(iid: "...") on Project succeeded and returned the expected work item.

Why this is worth improving

The GitLab GraphQL schema evidently drifted (either workItem was removed/renamed, or it never existed on Project and only workItems did). The agent-side pattern is:

  1. First call fails with a schema error.
  2. Agent reads the "Did you mean" hint from the error and adjusts.
  3. Second call succeeds.

This works, but it wastes a round-trip on every session that touches work items, and it depends on the agent noticing the hint. A more robust experience would be one of:

  • Auto-retry once when the error message contains a Did you mean suggestion, substituting the suggested field.
  • A schema-aware helper (e.g., gitlab_get_type_fields results cached and surfaced in the tool description) so the agent picks the right field on the first try.
  • Update any built-in guidance/examples in the GitLab MCP tools to reference workItems(iid: ...) { nodes { ... } } as the canonical way to fetch a single work item by IID on a Project.

Impact: minor per-call latency + agent context spent on the schema hint. Not blocking, but repeatable across sessions.


Metadata
Field Value
CLI Version 0.8.10
Platform darwin
Architecture arm64
OS Release 25.5.0
Category improvement
Working Directory feature-1173-parallel-ci-databases
Session ID ses_0c9a0177effeYuBnIpoLd52aQ1
Lingua principale
TypeScript
Stelle
813
Fork
134
Merge medio
2g 5h
PR unite (30g)
63

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AltimateAI/altimate-code

Tutte le issue di AltimateAI/altimate-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.