| Filename | Latest commit message | Latest commit date |
|---|---|---|
The server was importing from ../shared/server-utils.js which doesn't exist. Added the standard server-utils.ts file (matching other examples) and updated the import path to ./src/server-utils.js. |
||
| .. | ||
| src | ||
| mcp-app.html | ||
| package.json | ||
| README.md | ||
| server.ts | ||
| tsconfig.json | ||
| vite.config.ts | ||
Video Resource Server
Demonstrates serving binary content (video) via MCP resources using the base64 blob pattern.
Quick Start
npm install
npm run dev
Tools
- play_video - Plays a video loaded via MCP resource
videoId: Choose from various sizes (bunny-1mb,bunny-5mb,bunny-10mb, etc.)
How It Works
- The
play_videotool returns avideoUripointing to an MCP resource - The widget fetches the resource via
resources/read - The server fetches the video from CDN and returns it as a base64 blob
- The widget decodes the blob and plays it in a
<video>element