aws / aws/amazon-q-developer-cli
Tools and prompts list are difficult to review
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Rust
- Estrellas
- 2k
- Forks
- 439
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Checks
- I have searched github.com/aws/amazon-q-developer-cli/issues and there are no duplicates of my issue
- I have run
q doctorin the affected terminal session - I have run
q restartand replicated the issue again
Operating system
macOS 15.4.1 (24E263)
Expected behaviour
1. Sorting
Right now, the output of /prompts and /tools doesn't seem to be sorted in any particular order. This makes it hard to review this list and locate a specific prompt or tool.
2. Tool name mangling
Tool names are always shown mangled with the mcp server name prefixed, i.e. instead of:
sqlite (MCP):
- append_insight * not trusted
- create_table * not trusted
- describe_table * not trusted
- list_tables * not trusted
- read_query * not trusted
- write_query * not trusted
we show the below, which is much harder to read:
sqlite (MCP):
- sqlite___append_insight * not trusted
- sqlite___create_table * not trusted
- sqlite___describe_table * not trusted
- sqlite___list_tables * not trusted
- sqlite___read_query * not trusted
- sqlite___write_query * not trusted
Actual behaviour
1. Sorting
Sort the output of /prompts and /tools as described below (and as noted in the PRD):
In the output of /prompts:
- The MCP groups should be displayed in alphabetical order
- Within each group, the prompts for that group should be displayed in alphabetical order
In the output of /tools:
- The "Built-in" group should be shown first
- Then, the MCP groups should be displayed in alphabetical order
- Within each group, the tools for that group should be displayed in alphabetical order
2. Tool name mangling
Don't mangle tool names in the output. Tool names are already shown grouped into MCP servers, so there is no need to prefix the MCP server name to the toolname.
(On a related note, this is not just a display issue. We should not be unnecessarily mangling tool names when there is no name conflict. See the PRD.)
Steps to reproduce
Run the /tools or /prompts command.
Environment
<This will be visible to anyone. Do not include personal or sensitive information>
[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:22:42.917989Z (10d ago)"
variant = "full"
[system-info]
os = "macOS 15.4.1 (24E263)"
chip = "Apple M3"
total-cores = 8
memory = "24.00 GB"
[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "brew"
[env-vars]
PATH = "/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin"
QTERM_SESSION_ID = "861875d35e244fd9b7bd54ce51e9e6a9"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.9.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
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.
Línea de trabajo
Comienza ejecutando los comandos /tools y /prompts con grupos MCP para observar el orden actual y los nombres mostrados. Sigue los puntos de entrada de los comandos y la lógica existente de agrupación de MCP; se considera terminado cuando Built-in aparece primero en las herramientas, los grupos MCP y sus entradas están ordenados alfabéticamente, los prompts están agrupados alfabéticamente y los nombres de las herramientas ya no llevan prefijos innecesarios.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100