How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Handling an AI Agent triggered MCP Elicitation callback

calendar_today September 3, 2026 person @Ricart Ricart domain streamlit

I’d treat the elicitation callback as an out-of-band request rather than trying to render UI from inside it. The pattern I’d prototype is a background MCP session that writes the pending request into per-session state, then lets a normal Streamlit rerun render the form and pass the result back through a synchronization primitive. I don’t have a verified end-to-end example to claim this works with the current SDK callback contract, so that return contract and the cross-thread behavior are the first things I’d test.

open_in_new Read original post