GitLab MCP: workItem query fails, workItems works
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- gitlab, graphql, typescript
調査の方向性
まず、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:
- First call fails with a schema error.
- Agent reads the "Did you mean" hint from the error and adjusts.
- 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 meansuggestion, substituting the suggested field. - A schema-aware helper (e.g.,
gitlab_get_type_fieldsresults 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AltimateAI/altimate-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AltimateAI/altimate-code#1323 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
AltimateAI/altimate-code#1288 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
AltimateAI/altimate-code#1284 ·
-
難易度 2/5 1時間未満 初心者へのやさしさ 72/100
AltimateAI/altimate-code#1283 ·
AltimateAI/altimate-code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/inspector#2458 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
carbon-design-system/ibm-products#9907 ·