@modelcontextprotocol/server-video-resource 0.4.1 → 1.0.0

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,45 @@
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
+
28
+ ### Local Development
29
+
30
+ To test local modifications, use this configuration (replace `~/code/ext-apps` with your clone path):
31
+
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "video-resource": {
36
+ "command": "bash",
37
+ "args": [
38
+ "-c",
39
+ "cd ~/code/ext-apps/examples/video-resource-server && npm run build >&2 && node dist/index.js --stdio"
40
+ ]
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
7
46
  ## Quick Start
8
47
 
9
48
  ```bash
@@ -19,6 +58,6 @@ npm run dev
19
58
  ## How It Works
20
59
 
21
60
  1. The `play_video` tool returns a `videoUri` pointing to an MCP resource
22
- 2. The widget fetches the resource via `resources/read`
61
+ 2. The view fetches the resource via `resources/read`
23
62
  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
63
+ 4. The view decodes the blob and plays it in a `<video>` element