Skip to content

feat: add MCP server, WebChart store, and appointment scheduling tools#19

Draft
avagu-mie wants to merge 2 commits intomainfrom
ivr-appointment
Draft

feat: add MCP server, WebChart store, and appointment scheduling tools#19
avagu-mie wants to merge 2 commits intomainfrom
ivr-appointment

Conversation

@avagu-mie
Copy link
Copy Markdown

@avagu-mie avagu-mie commented Apr 13, 2026

Summary

YouTube short - https://youtube.com/shorts/Rpim74PTr4M?si=ETsRGHlCsQb-tOvf

Adds MCP (Model Context Protocol) server support and WebChart-backed store for IVR appointment scheduling integration.

Changes

  • MCP SSE Server (src/mcp/mcpServer.ts) — Per-session MCP server with multi-tenant support via x-mcp-config header
  • MCP Tools:
    • search_schedules — Browse provider schedules
    • search_available_slots — Find open appointment times
    • book_appointment — Book an appointment slot
    • cancel_appointment — Cancel via booking reference
    • get_appointment_by_reference — Look up appointment by reference
  • WebChartStore (src/store/webchartStore.ts) — FhirStore implementation backed by WebChart's proprietary API
  • WebChartApi (src/store/adapters/webchartApi.ts) — HTTP adapter for WebChart's Base64-encoded JSON API
  • Booking references with NATO phonetic encoding for phone-friendly communication
  • Speech formatters for IVR-friendly response generation
  • Store factory updated with webchart backend option
  • Server updated to register MCP routes and support store selection via env vars

- Add MCP SSE server with per-session WebChart store support
- Add MCP tools: search_schedules, search_available_slots, book_appointment, cancel_appointment, get_appointment_by_reference
- Add WebChartStore implementing FhirStore backed by WebChart proprietary API
- Add WebChartApi adapter for Base64-encoded JSON API communication
- Add booking reference generation with NATO phonetic encoding
- Add speech-friendly response formatters for IVR integration
- Update store factory with webchart backend support
- Update server to register MCP routes and initialize store from config
@avagu-mie avagu-mie marked this pull request as draft April 14, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant