@modelcontextprotocol/server-video-resource 0.4.1 → 0.4.2

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 CHANGED
@@ -4,6 +4,27 @@
4
4
 
5
5
  Demonstrates serving binary content (video) via MCP resources using the base64 blob pattern.
6
6
 
7
+ ## MCP Client Configuration
8
+
9
+ Add to your MCP client configuration (stdio transport):
10
+
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "video-resource": {
15
+ "command": "npx",
16
+ "args": [
17
+ "-y",
18
+ "--silent",
19
+ "--registry=https://registry.npmjs.org/",
20
+ "@modelcontextprotocol/server-video-resource",
21
+ "--stdio"
22
+ ]
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
7
28
  ## Quick Start
8
29
 
9
30
  ```bash
@@ -19,6 +40,6 @@ npm run dev
19
40
  ## How It Works
20
41
 
21
42
  1. The `play_video` tool returns a `videoUri` pointing to an MCP resource
22
- 2. The widget fetches the resource via `resources/read`
43
+ 2. The view fetches the resource via `resources/read`
23
44
  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
45
+ 4. The view decodes the blob and plays it in a `<video>` element