Skip to content

Commit ea7d2ee

Browse files
committed
fix: address PR feedback - remove broken 50mb video, use registerResource
1 parent ba45157 commit ea7d2ee

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

examples/video-resource-server/server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ const VIDEO_LIBRARY: Record<string, { url: string; description: string }> = {
5151
url: "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_30MB.mp4",
5252
description: "30MB",
5353
},
54-
"bunny-50mb": {
55-
url: "https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_50mb.mp4",
56-
description: "50MB",
57-
},
5854
"bunny-150mb": {
5955
url: "https://cdn.jsdelivr.net/npm/big-buck-bunny-1080p@0.0.6/video.mp4",
6056
description: "~150MB (full 1080p)",
@@ -69,7 +65,7 @@ function createServer(): McpServer {
6965

7066
// Register video resource template
7167
// This fetches video from CDN and returns as base64 blob
72-
server.resource(
68+
server.registerResource(
7369
"video",
7470
new ResourceTemplate("videos://{id}", { list: undefined }),
7571
{

0 commit comments

Comments
 (0)