Skip to content

bug: elicitation does not work. timeout #3449

@mavogel

Description

@mavogel

Checks

Operating system

OSX

Expected behaviour

MCP client support for elicitation feature per MCP spec should work as described in #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<rmcp::transport::streamable_http_client::StreamableHttpClientWorker<reqwest::async_impl::client::Client>>] 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

git clone [email protected]: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

{
  "$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

{
	"servers": {
		"local": {
			"type": "http",
			"url": "http://localhost:3000/mcp"
		}
	},
	"inputs": []
}

and output

Image

Environment

[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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions