aws / aws/amazon-q-developer-cli

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

Open
#2,043 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.