MCP Elicitation and Apps Demo
MCP 引导与 MCP 应用演示
一个支持引导(Elicitation)和 MCP 应用(MCP Apps)的最小化 MCP 服务器演示,用于网络研讨会展示。
功能特性
引导工具:
book_appointment,支持 SQLite 持久化MCP 应用:
view_appointments,提供交互式 HTML 界面Tailwind CSS:现代、响应式界面
实时数据:实时预约统计
SQLite 数据库:数据持久化与示例数据
HTTP 传输:端点位于
http://localhost:3000/mcp
Related MCP server: MCP Appointment Booking Server
MCP 应用功能
本演示现已支持 MCP 应用,包括:
在 MCP 主机中渲染的交互式 HTML 界面
采用 Tailwind CSS 实现现代样式
实时预约数据可视化
统计仪表盘
预加载的示例数据
数据库结构
CREATE TABLE appointments (
id INTEGER PRIMARY KEY AUTOINCREMENT,
person TEXT NOT NULL,
duration_minutes INTEGER NOT NULL,
created_at TEXT NOT NULL
);安装
# Install dependencies
npm install
# Build TypeScript
npm run build运行演示
引导演示(原始版)
# Start the original elicitation server
npm start
# Or for development with auto-reload:
npm run devMCP 应用演示(新版)
# Start the MCP Apps server
npm run start:apps
# Or for development with auto-reload:
npm run dev:apps简单测试
查看预期流程:
npm run test网络研讨会流程
启动服务器:
npm start连接 MCP 客户端至
http://localhost:3000/mcp提问:“为 John 预约一个时间段”
引导询问时长:30 / 60 / 90 分钟
选择 60
打开
appointments.db(使用 SQLite GUI)展示插入的记录,包含 John、60 分钟及时间戳
工具规格说明
预约工具(引导演示)
名称:book_appointment
初始输入:
{
"person": "string"
}引导(当缺少时长时):
消息:“预约时长应为多少?”
模式:枚举值 30、60 或 90 分钟
结果:写入 SQLite 并返回确认消息。
查看预约(MCP 应用)
名称:view_appointments
输入:无需参数
结果:打开一个交互式 HTML 界面,包含:
所有预约列表
统计仪表盘(预约总数、总时长、平均时长)
实时数据刷新
现代 Tailwind CSS 样式
MCP 应用功能:
直接在 MCP 主机中渲染的交互式界面
通过 MCP 资源 API 提供 HTML 内容
来自 SQLite 数据库的实时数据
代码结构
原始演示
src/server-simple.ts- 包含引导逻辑的简单 MCP 服务器src/db.ts- SQLite 数据库操作appointments.db- SQLite 数据库文件(首次运行时创建)
MCP 应用演示
src/server-apps.ts- 支持 MCP 应用的扩展服务器src/appointments-ui.html- 使用 Tailwind CSS 的交互式 HTML 界面appointments.db- 包含示例数据的共享 SQLite 数据库
关键实现要点
工具启动 - 接收
person参数引导 - 检测缺少
duration_minutes,返回inputRequired继续 - 用户提供时长后,完成操作并保存到数据库
测试
您可以使用任何兼容 MCP 的客户端(Claude Desktop、带 MCP 扩展的 VS Code 等)连接至 http://localhost:3000/mcp 来测试两个服务器。
测试引导演示
连接至
http://localhost:3000/mcp调用
book_appointment,参数为{"person": "John"}服务器将引导询问时长(30/60/90 分钟)
提供时长以完成预约
测试 MCP 应用演示
启动 MCP 应用服务器:
npm run start:apps连接至
http://localhost:3000/mcp调用
view_appointments(无需参数)MCP 主机将渲染交互式 HTML 界面
浏览预约,查看统计和实时数据
环境要求
Node.js 18+
SQLite GUI(用于在演示过程中查看数据库)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that enables interaction with OnSched's consumer-facing appointment scheduling API through natural language, allowing users to manage bookings, appointments, and scheduling operations.
- Alicense-qualityDmaintenanceAn MCP server that enables users to book, cancel, reschedule, and list appointments through natural language interactions. It uses YAML configurations for agent behavior and function logic to manage appointment data and availability.MIT
- Alicense-qualityDmaintenanceEnables users to manage medical appointments by searching for doctors, checking availability, and booking sessions through a natural language interface. It serves as a reference implementation for advanced MCP features like symptom-based specialist recommendations and multi-step scheduling workflows.15MIT
- Flicense-qualityDmaintenanceA demonstration MCP server that shows how to use elicitations to ask users for preferences during a video search tool execution.1
Related MCP Connectors
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
MCP server for the Fail Modes taxonomy — a knowledge base of AI system failure modes
Remote MCP for MCP consent scope receipt, structured receipts, audit logs, and reviewer-ready eviden
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/artemreva-hub/Otus.AI_For_Dev.Webinar14.MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server