list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định các lược đồ trường của list_issues và search_issues, cùng lỗi xác thực cho biết các trường được chấp nhận. So sánh danh sách trường được phép của chúng, rồi kiểm tra các bài kiểm thử hiện có cho từng công cụ. Thêm một bước kiểm tra để bảo đảm các tập trường luôn đồng bộ. Hoàn tất khi cả hai chấp nhận các trường dùng chung, bao gồm html_url, và các bài kiểm thử bao quát những lược đồ tương ứng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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"
- Ngôn ngữ chính
- Go
- Star
- 34.8k
- Fork
- 5.4k
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/github-mcp-server
-
Scope-challenge middleware fails open when the token-scope fetch returns an errorCó thể đã có người làm @Shanmukh-l33t đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/github-mcp-server#3929 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
ListLabelsOutput drops every label id from the typed responseCó thể đã có người làm @Shanmukh-l33t đã nhận 3 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
github/github-mcp-server#3923 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
create_or_update_file rejects explicitly empty file contentCó thể đã có người làm @Elon-Jiang đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/github-mcp-server#3883 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
csv_output silently overwrites distinct fields when flattened keys collideCó thể đã có người làm @Mystery01092000 đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
github/github-mcp-server#3865 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
update_issue_labels is annotated destructiveHint: false but replaces (removes) existing labelsCó thể đã có người làm @shhhhhhjokerist đã nhận 16 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
github/github-mcp-server#3760 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của github/github-mcp-server
Issue tương tự
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
JuliusBrussee/caveman#1594 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
C-bug O-community X-blathers-triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
cockroachdb/cockroach#176264 · 1 bình luận ·
-
security trivy
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
kubefleet-dev/kubefleet#1068 ·
Maintainer thường phản hồi trong vòng 3 ngày