aws / aws/amazon-q-developer-cli

bug: elicitation does not work. timeout

Open
#3,449 0 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
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

OSX

### Expected behaviour

MCP client support for elicitation feature per MCP spec should work as described in https://github.com/aws/amazon-q-developer-cli/pull/2898 (merged)

something similar to
```
[default] > Use the MathCalculator tool for values 5 and 5

> I'll use the MathCalculator tool with the values 5 and 5.

🛠️ Using tool: MathCalculator from mcp server FooServer

● Running MathCalculator with the param:
⋮ {
⋮ "firstNumber": 5,
⋮ "secondNumber": 5
⋮ }

MCP server FooServer is requesting information
Choose the mathematical operation to perform on 5 and 5:

operation: multiplication <---------------------- THE VALUE HERE IS INPUT FROM THE USER

Submit this information? [y/n/c]: y


● Completed in 5.913s

> The calculation is complete! The result of 5 × 5 = 25.
```

**BUT** the message `MCP server FooServer is requesting information` never shows up.

### Actual behaviour

Eliciation does not work, aka times out.

```
[mcp-test-developer] 12% > register a user

✓ 1 of 1 hooks finished in 0.09 s

🛠️ Using tool: register_user from mcp server local

● Running register_user with the param:
⋮ {}

Allow this action? Use 't' to trust (always allow) this tool for the session. [y/n/t]:

[mcp-test-developer] 12% > y


● Execution failed after 15.2s:
Transport send error: Transport [rmcp::transport::worker::WorkerTransport>] error: Client error: error sending request for url (http://localhost:3000/mcp)
```

**Additionally** in the vscode Q Developer extension it also times out.

### Steps to reproduce

Using example https://github.com/modelcontextprotocol/typescript-sdk/blob/1.22.0/src/examples/server/elicitationExample.ts

Steps
```bash
git clone git@github.com:modelcontextprotocol/typescript-sdk.git
cd typescript-sdk
npx tsx src/examples/server/elicitationExample.ts
# runs on localhost:3000
```

with the agent cfg at `~/.aws/amazonq/cli-agents/mcp-test-dev-agent.json`

```json
{
"$schema": "https://raw.githubusercontent.com/aws/amazon-q-developer-cli/refs/heads/main/schemas/agent-v1.json",
"name": "mcp-test-developer",
"description": "Local agent for testing mcp",
"mcpServers": {
"local": {
"type": "http",
"url": "http://localhost:3000/mcp",
"timeout": 15000
}
},
"tools": [
"fs_read",
"fs_write",
"execute_bash",
"@local"
],
"allowedTools": [
"fs_read",
"fs_write"
],
"resources": [
"file://README.md",
"file://**/AmazonQ.md",
"file://.amazonq/rules/**/*.md"
],
"useLegacyMcpJson": true
}
```

The server works correctly as I could verify it with Github Copilot with `.vscode/mcp.json`
```json
{
"servers": {
"local": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
},
"inputs": []
}
```

and output

Image

### Environment

```yaml
[q-details]
version = "1.19.6"
hash = "65cdf611735510560feefcf49f7bd15bf6be56ba"
date = "2025-11-13T18:29:29.544012Z (19h ago)"
variant = "full"

[system-info]
os = "macOS 26.1.0 (25B78)"
chip = "Apple M2 Pro"
total-cores = 12
memory = "32.00 GB"

[environment]
cwd = "/Users/USER/Developer/mcp-server-testing"
cli-path = "/Users/USER/Developer/mcp-server-testing"
os = "Mac"
terminal = "VSCode"
install-method = "brew"

[env-vars]
PATH = "/Users/USER/.local/bin:/Users/USER/.bin:/Users/USER/Developer/Go/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/usr/local/MacGPG2/bin"
QTERM_SESSION_ID = "62878e1185d64ef0900cc5e792e50624"
Q_LOG_LEVEL = "trace"
Q_PARENT = ""
Q_TERM = "1.19.5"
SHELL = "/opt/homebrew/bin/fish"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.microsoft.VSCode"
```

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.