Skip to main content
Glama
artemreva-hub

MCP Elicitation and Apps Demo

MCP Elicitation と Apps デモ

ウェビナー発表用の、Elicitation と MCP Apps をサポートする最小限の MCP サーバーデモです。

機能

  • Elicitation ツール: SQLite 永続化を備えた book_appointment

  • MCP App: インタラクティブな HTML UI を備えた view_appointments

  • Tailwind 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 dev

MCP Apps デモ (新規)

# Start the MCP Apps server
npm run start:apps

# Or for development with auto-reload:
npm run dev:apps

簡単なテスト

期待されるフローを確認するには:

npm run test

ウェビナーのフロー

  1. サーバーを起動: npm start

  2. MCP クライアントを接続: http://localhost:3000/mcp

  3. 質問: 「John との予約を入れて」

  4. Elicitation が所要時間を尋ねます: 30 / 60 / 90 分

  5. 60 を選択

  6. SQLite GUI で appointments.db を開く

  7. 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 データベース

主要な実装ポイント

  1. ツールの開始 - person パラメータを受け取ります

  2. Elicitation - 欠落している duration_minutes を検出し、inputRequired を返します

  3. 続行 - ユーザーが所要時間を提供した後、操作を完了して DB に保存します

テスト

任意の MCP 互換クライアント (Claude Desktop、MCP 拡張機能付き VS Code など) を http://localhost:3000/mcp に接続することで、両方のサーバーをテストできます。

Elicitation デモのテスト

  1. http://localhost:3000/mcp に接続

  2. {"person": "John"} を指定して book_appointment を呼び出し

  3. サーバーが所要時間 (30/60/90 分) を尋ねます

  4. 所要時間を提供して予約を完了

MCP Apps デモのテスト

  1. MCP Apps サーバーを起動: npm run start:apps

  2. http://localhost:3000/mcp に接続

  3. view_appointments を呼び出し (パラメータは不要)

  4. MCP ホストがインタラクティブな HTML インターフェースをレンダリング

  5. 統計とリアルタイムデータで予約を確認

要件

  • Node.js 18+

  • SQLite GUI (デモ中にデータベースを表示するため)

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    An 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.
  • A
    license
    -
    quality
    D
    maintenance
    An 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
  • A
    license
    -
    quality
    D
    maintenance
    Enables 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.
    15
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A demonstration MCP server that shows how to use elicitations to ask users for preferences during a video search tool execution.
    1

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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