Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

GitLab MCP: workItem query fails, workItems works

オープン
#985 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
gitlab, graphql, typescript
領域
cli, tooling

調査の方向性

まず、GitLab MCP tools、それらに組み込まれたガイダンスまたは例、および gitlab_execute_custom_query 周辺の処理を特定し、失敗している workItem フィールドと、動作している workItems(iid: ...) クエリを比較します。完了条件は、合意した改善のいずれか1つ(標準的なガイダンス、スキーマを考慮した検索、または提案されたフィールドを使った1回の再試行)を選択して実装し、work-item クエリの動作に対するカバレッジを追加することです。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
813
フォーク
134
平均マージ
2日 5時間
マージ済み PR(30日)
63

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AltimateAI/altimate-code のほかの issue

AltimateAI/altimate-code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。