A simple demo of FastMCP's elicitation feature for interactive user input during tool execution.
elicitation.mp4
-
Install dependencies:
uv install fastmcp
-
Run the server:
uv run python server.py
-
Run the client (in another terminal):
uv run python client.py
- Server: Provides a
book_doctor_appointmenttool that collects user info step-by-step - Client: Interactive appointment booking with smart input validation and retry logic
The client handles input validation on the client side and only re-prompts for invalid inputs, not the entire flow.