MCP Elicitation and Apps Demo
MCP Elicitation と Apps デモ
ウェビナー発表用の、Elicitation と MCP Apps をサポートする最小限の MCP サーバーデモです。
機能
Elicitation ツール: SQLite 永続化を備えた
book_appointmentMCP App: インタラクティブな HTML UI を備えた
view_appointmentsTailwind CSS: モダンでレスポンシブなインターフェース
リアルタイムデータ: ライブの予約統計
SQLite データベース: データの永続化とサンプルデータ
HTTP トランスポート:
http://localhost:3000/mcpのエンドポイント
Related MCP server: MCP Appointment Booking Server
MCP Apps 機能
このデモには、以下の MCP Apps サポートが含まれています:
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デモの実行
Elicitation デモ (オリジナル)
# Start the original elicitation server
npm start
# Or for development with auto-reload:
npm run devMCP Apps デモ (新規)
# Start the MCP Apps server
npm run start:apps
# Or for development with auto-reload:
npm run dev:apps簡単なテスト
期待されるフローを確認するには:
npm run testウェビナーのフロー
サーバーを起動:
npm startMCP クライアントを接続:
http://localhost:3000/mcpへ質問: 「John との予約を入れて」
Elicitation が所要時間を尋ねます: 30 / 60 / 90 分
60 を選択
SQLite GUI で
appointments.dbを開くJohn、60 分、タイムスタンプが挿入された行を表示
ツール仕様
予約の作成 (Elicitation デモ)
名前: book_appointment
初期入力:
{
"person": "string"
}Elicitation (所要時間が欠落している場合):
メッセージ: 「予約の所要時間はどのくらいにしますか?」
スキーマ: 30、60、または 90 分の列挙型
結果: SQLite に挿入し、確認メッセージを返します。
予約の表示 (MCP App)
名前: view_appointments
入力: 不要
結果: 以下の内容を含むインタラクティブな HTML インターフェースを開きます:
すべての予約のリスト
統計ダッシュボード (予約総数、合計所要時間、平均所要時間)
リアルタイムのデータ更新
モダンな Tailwind CSS スタイリング
MCP App 機能:
MCP ホストに直接レンダリングされるインタラクティブな UI
MCP リソース API 経由で提供される HTML コンテンツ
SQLite データベースからのリアルタイムデータ
コード構造
オリジナルデモ
src/server-simple.ts- Elicitation ロジックを備えたシンプルな MCP サーバーsrc/db.ts- SQLite データベース操作appointments.db- SQLite データベースファイル (初回実行時に作成)
MCP Apps デモ
src/server-apps.ts- MCP Apps サポートを備えた拡張サーバーsrc/appointments-ui.html- Tailwind CSS を使用したインタラクティブな HTML インターフェースappointments.db- サンプルデータを含む共有 SQLite データベース
主要な実装ポイント
ツールの開始 -
personパラメータを受け取りますElicitation - 欠落している
duration_minutesを検出し、inputRequiredを返します続行 - ユーザーが所要時間を提供した後、操作を完了して DB に保存します
テスト
任意の MCP 互換クライアント (Claude Desktop、MCP 拡張機能付き VS Code など) を http://localhost:3000/mcp に接続することで、両方のサーバーをテストできます。
Elicitation デモのテスト
http://localhost:3000/mcpに接続{"person": "John"}を指定してbook_appointmentを呼び出しサーバーが所要時間 (30/60/90 分) を尋ねます
所要時間を提供して予約を完了
MCP Apps デモのテスト
MCP Apps サーバーを起動:
npm run start:appshttp://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