mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-02-19 11:54:58 -05:00
This commit ports the comprehensive elicitation field type demonstration from modelcontextprotocol/example-remote-server PR #17 to the everything server, while maintaining the better UX of the existing implementation. Changes: - Expanded elicitation schema to demonstrate 9 field types: * string (plain and with default values) * boolean * email (format: "email") * uri (format: "uri") * date (format: "date") * integer (with min/max and default) * number (with min/max and default) * enum with enumNames for human-readable labels - Added required fields support (name field is required) - Added 10-minute timeout to elicitation request - Improved response handling to dynamically show all provided fields - Updated tool description to reflect comprehensive field type support - Removed unused requestElicitation helper function (inlined implementation) - Removed unused ElicitRequest import The implementation follows PR #17's approach of directly using extra.sendRequest() while preserving the user-friendly response handling with emojis and formatted output from the original implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>