list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、list_issues と search_issues のフィールドスキーマ、および受け入れ可能なフィールドを報告する検証エラーを特定してください。それぞれの許可リストを比較し、各ツールの既存テストを確認してください。フィールドの集合が同期した状態に保たれることを確認するチェックを追加してください。両方が html_url を含む共通フィールドを受け入れ、テストが対応するスキーマをカバーしたら完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
list_issues and search_issues return the same kind of object but accept different fields allow-lists. In particular, html_url is accepted by search_issues and rejected by list_issues:
search_issues(fields: ["number","title","state","html_url"])succeeds.list_issues(fields: ["number","title","state","html_url"])fails with:
fields[3]: Expected "number" | "title" | "body" | "state" | "user" | "labels" | "assignees" | "comments" | "created_at" | "updated_at" | "field_values"
This forces callers to keep separate field lists for two tools that should be interchangeable, and it turns a simple "list or search, same projection" workflow into a retry. html_url is a standard, useful field (linking issues), so its absence from list_issues is surprising.
Steps to reproduce the behavior
- Call
search_issueswithfields: ["number","title","state","html_url"]. - Observe success and
html_urlin the results. - Call
list_issueswith the samefields. - Observe the invalid-arguments error above.
Expected vs actual behavior
Expected: both tools accept the same issue-field allow-list, including html_url, or share a single schema/type for issue projections.
Actual: the allow-lists diverge, and a field valid in one tool is invalid in the other.
Proposed solution
Define one shared issue-field schema used by list_issues, search_issues, and (with #3959) issue_read. Include at least:
number, title, state, state_reason, user.login, labels, assignees, milestone, comments, created_at, updated_at, closed_at, html_url, and opt-in body.
Return the allowed field list in validation errors, and add a test that the list/search field sets stay in sync.
Example prompts or workflows (for tools/toolsets only)
- "List the 30 newest issues with number, title, state, and URL; then run the same query as a search." — same
fieldsargument for both calls. - "Build a release-notes table with issue links from either a list or a search."
- "Switch from
search_issuestolist_issueswhen the search rate limit is hit, without rewriting the projection."
Additional context
Related: #3605 (inconsistent parameter names), #3286 (PR response field filtering), #3959 (issue_read field filtering), #2425 (schema descriptions), #2270 (closed: projects_list ignored fields).
Environment: OpenCode 2.4.1, hosted endpoint https://api.githubcopilot.com/mcp/, toolsets repos,issues,pull_requests,actions.
Logs
list_issues fields error:
fields[3]: Expected "number" | "title" | "body" | "state" | "user" | "labels" | "assignees" | "comments" | "created_at" | "updated_at" | "field_values"
- 主要言語
- Go
- スター
- 34.8k
- フォーク
- 5.4k
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 31
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/github-mcp-server のほかの issue
-
Scope-challenge middleware fails open when the token-scope fetch returns an error対応中かも @Shanmukh-l33t が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/github-mcp-server#3929 ·
メンテナーはふだん 3 日以内に返信
-
ListLabelsOutput drops every label id from the typed response対応中かも @Shanmukh-l33t が 3 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
github/github-mcp-server#3923 · リアクション 1 件 ·
メンテナーはふだん 3 日以内に返信
-
create_or_update_file rejects explicitly empty file content対応中かも @Elon-Jiang が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/github-mcp-server#3883 ·
メンテナーはふだん 3 日以内に返信
-
csv_output silently overwrites distinct fields when flattened keys collide対応中かも @Mystery01092000 が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/github-mcp-server#3865 ·
メンテナーはふだん 3 日以内に返信
-
update_issue_labels is annotated destructiveHint: false but replaces (removes) existing labels対応中かも @shhhhhhjokerist が 16 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
github/github-mcp-server#3760 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
github/github-mcp-server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
JuliusBrussee/caveman#1594 ·
メンテナーはふだん 1 日以内に返信
-
C-bug O-community X-blathers-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
cockroachdb/cockroach#176264 · コメント 1 件 ·
-
security trivy
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
kubefleet-dev/kubefleet#1068 ·
メンテナーはふだん 3 日以内に返信