@modelcontextprotocol/server-video-resource 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # Video Resource Server
2
+
3
+ ![Screenshot](screenshot.png)
4
+
5
+ Demonstrates serving binary content (video) via MCP resources using the base64 blob pattern.
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ npm install
11
+ npm run dev
12
+ ```
13
+
14
+ ## Tools
15
+
16
+ - **play_video** - Plays a video loaded via MCP resource
17
+ - `videoId`: Choose from various sizes (`bunny-1mb`, `bunny-5mb`, `bunny-10mb`, etc.)
18
+
19
+ ## How It Works
20
+
21
+ 1. The `play_video` tool returns a `videoUri` pointing to an MCP resource
22
+ 2. The widget fetches the resource via `resources/read`
23
+ 3. The server fetches the video from CDN and returns it as a base64 blob
24
+ 4. The widget decodes the blob and plays it in a `<video>` element