aws / aws/amazon-q-developer-cli

bug: Q CLI @<prompt> error messages are hard to understand.

Aperta
#2,043 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue

### Operating system

MacOS

### Expected behaviour

Q CLI tells me exactly what went wrong with my `@` invocation when I omit/malform prompt inputs.

### Actual behaviour

Q CLI gives me a raw error message when I omit/malform prompt inputs.
```
Error encountered while retrieving prompt:
{
"code": -32602,
"message": "MCP error -32602: Invalid arguments for prompt {prompt_name}: [\n {\n \"{input1}\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"undefined\",\n \"{input2}\": [],\n \"message\": \"Required\"\n }\n]"
}
```

### Steps to reproduce

Use `@` and omit inputs.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the issue through the `@` entry point with omitted inputs and trace the prompt-retrieval error path. Done means Q CLI replaces the raw MCP validation output with an understandable message explaining which prompt inputs are missing or malformed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.