Cloudflare Remix Vite

•
45
•

Enables building interactive Model Context Protocol (MCP) widgets for AI chat interfaces using Cloudflare Workers and Remix 3.

This project serves as a comprehensive demonstration for constructing interactive MCP widgets designed to operate within AI chat environments like ChatGPT. It showcases a fully functional calculator widget, leveraging Cloudflare Workers for the MCP server and Remix 3's experimental DOM renderer for the dynamic user interface. The demo highlights advanced capabilities such as initial state configuration by the AI, real-time user interaction, and two-way communication, enabling widgets to dynamically influence the AI conversation directly, as exemplified by a hidden easter egg that prompts the AI to adopt a new persona.

주요 기능

01Interactive MCP widgets for AI chat integration (calculator demo)
02Stateful MCP server implemented with Cloudflare Durable Objects
03Dynamic UI components built using Remix 3's experimental DOM renderer
04Two-way communication between widgets and AI via `postMessage` protocol
05Separate optimized build processes for widgets (Vite) and the Cloudflare Worker (Wrangler)
0623 GitHub stars

사용 사례

01Developing custom, embedded interactive UI components for AI assistants
02Implementing stateful interactions and data exchange between AI models and external services
03Creating rich, dynamic, and context-aware user experiences within AI-driven conversations