M
MCP Elicitation
by @hemanth
Simpe mcp elicitation demo
Created 8/1/2025
Updated 5 months ago
README
Repository documentation and setup instructions
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.
Quick Setup
Installation guide for this server
Install Package (if required)
uvx mcp-elicitation
Cursor configuration (mcp.json)
{
"mcpServers": {
"hemanth-mcp-elicitation": {
"command": "uvx",
"args": [
"mcp-elicitation"
]
}
}
}