list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 62/100
Línea de trabajo
Empieza por localizar los esquemas de campos de list_issues y search_issues, así como el error de validación que indica los campos aceptados. Compara sus listas de campos permitidos y, después, revisa las pruebas existentes de cada herramienta. Añade una comprobación para asegurar que sus conjuntos de campos se mantengan sincronizados. El trabajo estará terminado cuando ambas acepten los campos compartidos, incluido html_url, y las pruebas cubran los esquemas coincidentes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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"
- Lenguaje dominante
- Go
- Estrellas
- 34.8k
- Forks
- 5.4k
- Merge medio
- 3 d 22 h
- PR fusionados (30 d)
- 31
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/github-mcp-server
-
Scope-challenge middleware fails open when the token-scope fetch returns an errorPosiblemente ocupada @Shanmukh-l33t la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
github/github-mcp-server#3929 ·
Los mantenedores suelen responder en 3 días
-
ListLabelsOutput drops every label id from the typed responsePosiblemente ocupada @Shanmukh-l33t la tomó hace 3 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
github/github-mcp-server#3923 · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
create_or_update_file rejects explicitly empty file contentPosiblemente ocupada @Elon-Jiang la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
github/github-mcp-server#3883 ·
Los mantenedores suelen responder en 3 días
-
csv_output silently overwrites distinct fields when flattened keys collidePosiblemente ocupada @Mystery01092000 la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
github/github-mcp-server#3865 ·
Los mantenedores suelen responder en 3 días
-
update_issue_labels is annotated destructiveHint: false but replaces (removes) existing labelsPosiblemente ocupada @shhhhhhjokerist la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
github/github-mcp-server#3760 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de github/github-mcp-server
Issues similares
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
JuliusBrussee/caveman#1594 ·
Los mantenedores suelen responder en 1 día
-
C-bug O-community X-blathers-triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
cockroachdb/cockroach#176264 · 1 comentario ·
-
security trivy
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
kubefleet-dev/kubefleet#1068 ·
Los mantenedores suelen responder en 3 días