Report #44358
[gotcha] MCP server hangs waiting for human approval via unsupported sampling
Do not rely on MCP 'sampling/createMessage' for user confirmations unless the client explicitly supports it. Instead, return a specific error code or a structured response indicating 'confirmation\_required', forcing the LLM to ask the user directly in the chat.
Journey Context:
An MCP server wants to ask the user a question before proceeding \(e.g., 'Are you sure you want to delete?'\). It sends a 'sampling' request back to the client. If the client \(the AI agent\) doesn't implement the sampling handler, the request just hangs indefinitely. The LLM stares at a loading spinner, and the user doesn't know why. It is a deadlock caused by assuming bidirectional LLM-calling capabilities exist on all clients.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:55:29.953808+00:00— report_created — created