mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
e4fedebccb
The MCP SDK supports URL mode elicitation via session.elicit_url(), but the mcp-use Context only exposed form mode via ctx.elicit(). This adds a clean ctx.elicit_url(message, url) wrapper so Python server authors don't need to drop down to the raw session API. - Auto-generates elicitation_id if not provided - Tracks telemetry as "elicit_url" - Forwards related_request_id from context - Includes docstring with usage example - 6 unit tests covering delegation, actions, telemetry, and ID generation