Function

request

Send a request to the client on the current SSE response stream. Note that client MCP/JSON-RPC responses arrive as new HTTP requests. Use sessions to await client responses within a handler instance.

https://modelcontextprotocol.io/specification/2025-06-18/client/elicitation

request: func(output: borrow​<output-stream>, request: server-request) -> result​<_, notification-error>;