A demonstration server that showcases elicitations across different Model Context Protocol (MCP) use cases. This server demonstrates how to collect user input dynamically using the MCP elicitation system.
Elicitations allow MCP servers to request structured input from users during tool execution, enabling interactive and dynamic workflows.
greeting
- Simple greeting tool that asks for your namecontact-info
- Collects structured contact information (name, email, age)
config://user
- User greeting resource that dynamically requests your name
greeting-prompt
- Generates a personalized greeting prompt based on your name
Each component demonstrates elicitations in different contexts:
- Tools show how to collect input during tool execution
- Resources demonstrate dynamic content generation based on user input
- Prompts showcase how to create personalized prompts using elicited data
npm install
npm run build
npm start
The server will run on http://localhost:3000
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the user"
}
},
"required": ["name"]
}
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Your full name"
},
"email": {
"type": "string",
"format": "email",
"description": "Your email address"
},
"age": {
"type": "number",
"minimum": 18,
"description": "Your age"
}
},
"required": ["name", "email"]
}
This demo showcases MCP elicitations for creating interactive, user-driven experiences across tools, resources, and prompts.