list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start by locating the list_issues and search_issues field schemas and the validation error that reports the accepted fields. Compare their allow-lists, then inspect the existing tests for each tool and add a check that their field sets stay in sync. Done when both accept the shared fields, including html_url, and the tests cover the matching schemas.
Written by the indexing model from the issue text.
Description
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"
- Dominant language
- Go
- Stars
- 34.8k
- Forks
- 5.4k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 31
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/github-mcp-server
-
Scope-challenge middleware fails open when the token-scope fetch returns an errorPossibly taken @Shanmukh-l33t claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
github/github-mcp-server#3929 ·
Maintainers usually reply within 3 days
-
ListLabelsOutput drops every label id from the typed responsePossibly taken @Shanmukh-l33t claimed this 3 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
github/github-mcp-server#3923 · 1 reaction ·
Maintainers usually reply within 3 days
-
create_or_update_file rejects explicitly empty file contentPossibly taken @Elon-Jiang claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
github/github-mcp-server#3883 ·
Maintainers usually reply within 3 days
-
csv_output silently overwrites distinct fields when flattened keys collidePossibly taken @Mystery01092000 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/github-mcp-server#3865 ·
Maintainers usually reply within 3 days
-
update_issue_labels is annotated destructiveHint: false but replaces (removes) existing labelsPossibly taken @shhhhhhjokerist claimed this 16 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
github/github-mcp-server#3760 · 2 comments ·
Maintainers usually reply within 3 days
All issues in github/github-mcp-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
JuliusBrussee/caveman#1594 ·
Maintainers usually reply within 1 day
-
C-bug O-community X-blathers-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
cockroachdb/cockroach#176264 · 1 comment ·
-
security trivy
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
kubefleet-dev/kubefleet#1068 ·
Maintainers usually reply within 3 days