modelcontextprotocol/typescript-sdk

Elicitation with custom input [ SEP-1456 ]

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

I want the elicitation to show some pre-defined input options, but want to give flexibility that user could input a custom string as well.

Describe the solution you'd like

It would be ideal if there's an option/flag to allow custom input even when enum of predefined values is provided

Describe alternatives you've considered

Currently chaining the elicitation requests is the only way.
1st elicitation request has predefined options with an additional option named "Other".
2nd elicitation request would then allow custom string input.

Additional context

Chaining of elicitation often causes subsequent elicitations to timeout within 2-3 seconds and it does not seem to follow the default timeout of 60 seconds. I have mentioned a bug here: #903 — and its observed by others as well.