MCP Elicitation Demo
A simple demo of FastMCP's elicitation feature for interactive user input during tool execution.
https://github.com/user-attachments/assets/b8e456df-5dfc-4605-bd2e-2bf3c8feca30
Quick Start
-
Install dependencies:
uv install fastmcp -
Run the server:
uv run python server.py -
Run the client (in another terminal):
uv run python client.py
What it does
- 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.