README: GITHUB_TOOLSETS doesn't take precedence over --toolsets (viper gives the flag priority)
Los mantenedores suelen responder en 2 días
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 90/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- documentation
Línea de trabajo
Lee README.md alrededor de la línea 468 y los bindings de viper en cmd/github-mcp-server/main.go (líneas 87-90, 280, 313-317) para confirmar la precedencia de flags. Edita la frase del README para indicar que --toolsets sobreescribe GITHUB_TOOLSETS. Hecho cuando los docs coincidan con el lookup order de viper.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The README says:
"The environment variable GITHUB_TOOLSETS takes precedence over the command line argument if both are provided."
https://github.com/github/github-mcp-server/blob/f38526264abb14961b32cea386e38ec6d3cf674f/README.md?plain=1#L468
--toolsets is bound through viper, and the env is wired with AutomaticEnv:
https://github.com/github/github-mcp-server/blob/f38526264abb14961b32cea386e38ec6d3cf674f/cmd/github-mcp-server/main.go#L280
https://github.com/github/github-mcp-server/blob/f38526264abb14961b32cea386e38ec6d3cf674f/cmd/github-mcp-server/main.go#L313-L317
https://github.com/github/github-mcp-server/blob/f38526264abb14961b32cea386e38ec6d3cf674f/cmd/github-mcp-server/main.go#L87-L90
Viper's lookup order is Set() > flag (if changed) > env > config > default, so when both are given the flag wins, the opposite of the README. That matters a bit for anyone trying to narrow toolsets via env on top of a launcher that already passes --toolsets. Probably just the README sentence that needs flipping.
Found while testing a docs-vs-code checker I'm building (Elliot), then verified by hand.
- Lenguaje dominante
- Go
- Estrellas
- 33.8k
- Forks
- 5.2k
- Merge medio
- 2 d 18 h
- PR fusionados (30 d)
- 38
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
-
Repository resource completions hide branch, tag, and commit lookup errorsPosiblemente ocupada @pei711 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
github/github-mcp-server#3581 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
github/github-mcp-server#3572 ·
Los mantenedores suelen responder en 2 días
-
Add Zero-Docker quick start and clarify no‑Docker options in READMEPosiblemente ocupada @Flanxiyum001 la tomó hace 13 días. Abiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
github/github-mcp-server#3495 ·
Los mantenedores suelen responder en 2 días
-
Integer parameters equal to 2^63 pass the range check in toInt and wrap to a negative numberPosiblemente ocupada @xiao115255 la tomó hace 13 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/github-mcp-server#3489 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
github/github-mcp-server#3475 ·
Los mantenedores suelen responder en 2 días
Todos los issues de github/github-mcp-server
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
kubernetes-sigs/kubebuilder#6131 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
aquasecurity/libbpfgo#560 ·
-
[BUG]Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
kagent-dev/kagent#3385 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hashicorp/nomad-autoscaler#1364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
theagentrouter/agent-router#2926 ·
Los mantenedores suelen responder en 1 día