@fotovid/mcp 0.1.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/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/index.js +161 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fotovid
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @fotovid/mcp
|
|
2
|
+
|
|
3
|
+
An [MCP](https://modelcontextprotocol.io) server that exposes the [Fotovid](https://fotovid.co) media API as first-class tools, so your agents and AI tools can watermark, trim, extract audio, and generate thumbnails with a single tool call.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Run locally over stdio and point your MCP client at it. Your Fotovid API key is
|
|
8
|
+
read from the `FOTOVID_API_KEY` environment variable.
|
|
9
|
+
|
|
10
|
+
```jsonc
|
|
11
|
+
// Claude Desktop / Cursor mcp config
|
|
12
|
+
{
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"fotovid": {
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"args": ["-y", "@fotovid/mcp"],
|
|
17
|
+
"env": { "FOTOVID_API_KEY": "p6_<key_id>:<secret>" }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Tools
|
|
24
|
+
|
|
25
|
+
| Tool | Operation |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `fotovid_watermark_video` | Overlay text/logo on a video |
|
|
28
|
+
| `fotovid_watermark_image` | Overlay text/logo on an image |
|
|
29
|
+
| `fotovid_trim_video` | Cut a clip between two timestamps |
|
|
30
|
+
| `fotovid_extract_audio` | Extract a video's audio as MP3 |
|
|
31
|
+
| `fotovid_trim_audio` | Slice an audio file to a window |
|
|
32
|
+
| `fotovid_video_thumbnail` | Capture a frame as a thumbnail |
|
|
33
|
+
| `fotovid_probe_video` | Return video metadata (no file) |
|
|
34
|
+
|
|
35
|
+
Each media tool returns a URL to the finished file — hosted, time-limited,
|
|
36
|
+
opaque; see `expires_at` and store your own copy. Built on
|
|
37
|
+
[`@fotovid/sdk`](../sdk).
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Fotovid } from "@fotovid/sdk";
|
|
5
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
|
+
|
|
7
|
+
// src/server.ts
|
|
8
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
async function run(work) {
|
|
11
|
+
try {
|
|
12
|
+
const data = await work();
|
|
13
|
+
return {
|
|
14
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }]
|
|
15
|
+
};
|
|
16
|
+
} catch (error) {
|
|
17
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
18
|
+
return {
|
|
19
|
+
content: [{ type: "text", text: `Fotovid error: ${message}` }],
|
|
20
|
+
isError: true
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
var source_url = z.string().url().describe("Public http(s) URL of the source media");
|
|
25
|
+
var position = z.enum(["top-left", "top-right", "bottom-left", "bottom-right", "center"]).describe("Watermark anchor (default bottom-right)");
|
|
26
|
+
var output_format = z.enum(["webp", "jpeg", "jpg", "png"]).describe("Output image format (default webp)");
|
|
27
|
+
var quality = z.number().int().min(1).max(100).describe("Lossy quality 1\u2013100 (png ignores it)");
|
|
28
|
+
var start = z.number().min(0).describe("Window start in seconds (inclusive)");
|
|
29
|
+
var end = z.number().min(0).describe("Window end in seconds (exclusive); must be greater than start");
|
|
30
|
+
var watermarkShape = {
|
|
31
|
+
source_url,
|
|
32
|
+
watermark_type: z.enum(["text", "image", "combo"]).optional().describe("Watermark variant (default text)"),
|
|
33
|
+
text: z.string().max(1e3).optional().describe("Overlay text (required for text/combo)"),
|
|
34
|
+
font_size: z.number().int().min(8).max(200).optional().describe("Text size in px (text/combo)"),
|
|
35
|
+
font_color: z.string().regex(/^(#?[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?|[A-Za-z]+)$/).optional().describe("Text color: a name (letters only) or #RRGGBB[AA] (text/combo)"),
|
|
36
|
+
watermark_image_url: z.string().url().optional().describe("Logo image URL (required for image/combo)"),
|
|
37
|
+
scale: z.number().gt(0).max(1).optional().describe("Logo width as a fraction of source width (>0\u20131; image/combo)"),
|
|
38
|
+
opacity: z.number().gt(0).max(1).optional().describe("Watermark opacity (>0\u20131; omit for fully opaque)"),
|
|
39
|
+
position: position.optional(),
|
|
40
|
+
padding: z.number().int().min(0).max(500).optional().describe("Edge padding in px"),
|
|
41
|
+
output_format: output_format.optional(),
|
|
42
|
+
quality: quality.optional()
|
|
43
|
+
};
|
|
44
|
+
function createServer(fotovid) {
|
|
45
|
+
const server = new McpServer({ name: "fotovid", version: "0.1.0" });
|
|
46
|
+
server.registerTool(
|
|
47
|
+
"fotovid_watermark_video",
|
|
48
|
+
{
|
|
49
|
+
title: "Watermark a video",
|
|
50
|
+
description: "Overlay text or a logo on a video (position, opacity, scale, padding). Returns a URL to the finished video \u2014 hosted, time-limited, opaque; see expires_at, and store your own copy.",
|
|
51
|
+
inputSchema: {
|
|
52
|
+
...watermarkShape,
|
|
53
|
+
preset: z.enum([
|
|
54
|
+
"ultrafast",
|
|
55
|
+
"superfast",
|
|
56
|
+
"veryfast",
|
|
57
|
+
"faster",
|
|
58
|
+
"fast",
|
|
59
|
+
"medium",
|
|
60
|
+
"slow",
|
|
61
|
+
"slower",
|
|
62
|
+
"veryslow",
|
|
63
|
+
"placebo"
|
|
64
|
+
]).optional().describe("x264 encode preset (video only)")
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
(args) => run(() => fotovid.video.watermark(args))
|
|
68
|
+
);
|
|
69
|
+
server.registerTool(
|
|
70
|
+
"fotovid_watermark_image",
|
|
71
|
+
{
|
|
72
|
+
title: "Watermark an image",
|
|
73
|
+
description: "Overlay text or a logo on an image. Returns a URL to the finished image \u2014 hosted, time-limited, opaque; see expires_at, and store your own copy.",
|
|
74
|
+
inputSchema: watermarkShape
|
|
75
|
+
},
|
|
76
|
+
(args) => run(() => fotovid.image.watermark(args))
|
|
77
|
+
);
|
|
78
|
+
server.registerTool(
|
|
79
|
+
"fotovid_trim_video",
|
|
80
|
+
{
|
|
81
|
+
title: "Trim a video",
|
|
82
|
+
description: "Cut a frame-accurate clip between two timestamps (seconds). Returns a URL to the trimmed video \u2014 hosted, time-limited, opaque; see expires_at.",
|
|
83
|
+
inputSchema: {
|
|
84
|
+
source_url,
|
|
85
|
+
start,
|
|
86
|
+
end
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
(args) => run(() => fotovid.video.trim(args))
|
|
90
|
+
);
|
|
91
|
+
server.registerTool(
|
|
92
|
+
"fotovid_extract_audio",
|
|
93
|
+
{
|
|
94
|
+
title: "Extract audio from a video",
|
|
95
|
+
description: "Pull the audio track out of a video and return it as an MP3 \u2014 a hosted, time-limited, opaque URL; see expires_at.",
|
|
96
|
+
inputSchema: { source_url }
|
|
97
|
+
},
|
|
98
|
+
(args) => run(() => fotovid.video.extractAudio(args))
|
|
99
|
+
);
|
|
100
|
+
server.registerTool(
|
|
101
|
+
"fotovid_trim_audio",
|
|
102
|
+
{
|
|
103
|
+
title: "Trim an audio file",
|
|
104
|
+
description: "Slice an audio file to a start/end window (seconds) and return it as an MP3 \u2014 a hosted, time-limited, opaque URL; see expires_at.",
|
|
105
|
+
inputSchema: {
|
|
106
|
+
source_url,
|
|
107
|
+
start,
|
|
108
|
+
end
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
(args) => run(() => fotovid.audio.trim(args))
|
|
112
|
+
);
|
|
113
|
+
server.registerTool(
|
|
114
|
+
"fotovid_video_thumbnail",
|
|
115
|
+
{
|
|
116
|
+
title: "Grab a video thumbnail",
|
|
117
|
+
description: "Capture a frame at a given timestamp as an image thumbnail. Returns a URL \u2014 hosted, time-limited, opaque; see expires_at.",
|
|
118
|
+
inputSchema: {
|
|
119
|
+
source_url,
|
|
120
|
+
at: z.number().min(0).optional().describe("Frame timestamp in seconds (default ~1s)"),
|
|
121
|
+
output_format: output_format.optional(),
|
|
122
|
+
quality: quality.optional()
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
(args) => run(() => fotovid.video.thumbnail(args))
|
|
126
|
+
);
|
|
127
|
+
server.registerTool(
|
|
128
|
+
"fotovid_probe_video",
|
|
129
|
+
{
|
|
130
|
+
title: "Probe video metadata",
|
|
131
|
+
description: "Return metadata for a video \u2014 width, height, duration, fps, codec, and alpha. Does not produce a file.",
|
|
132
|
+
inputSchema: { source_url }
|
|
133
|
+
},
|
|
134
|
+
(args) => run(() => fotovid.video.probe(args))
|
|
135
|
+
);
|
|
136
|
+
return server;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// src/index.ts
|
|
140
|
+
async function main() {
|
|
141
|
+
const apiKey = process.env.FOTOVID_API_KEY;
|
|
142
|
+
if (!apiKey) {
|
|
143
|
+
console.error(
|
|
144
|
+
"@fotovid/mcp: missing FOTOVID_API_KEY environment variable."
|
|
145
|
+
);
|
|
146
|
+
process.exit(1);
|
|
147
|
+
}
|
|
148
|
+
const fotovid = new Fotovid({
|
|
149
|
+
apiKey,
|
|
150
|
+
baseUrl: process.env.FOTOVID_BASE_URL
|
|
151
|
+
});
|
|
152
|
+
const server = createServer(fotovid);
|
|
153
|
+
const transport = new StdioServerTransport();
|
|
154
|
+
await server.connect(transport);
|
|
155
|
+
console.error("@fotovid/mcp: server running on stdio");
|
|
156
|
+
}
|
|
157
|
+
main().catch((error) => {
|
|
158
|
+
console.error("@fotovid/mcp: fatal error", error);
|
|
159
|
+
process.exit(1);
|
|
160
|
+
});
|
|
161
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/server.ts"],"sourcesContent":["import { Fotovid } from \"@fotovid/sdk\";\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport { createServer } from \"./server.js\";\n\nasync function main() {\n\tconst apiKey = process.env.FOTOVID_API_KEY;\n\tif (!apiKey) {\n\t\tconsole.error(\n\t\t\t\"@fotovid/mcp: missing FOTOVID_API_KEY environment variable.\",\n\t\t);\n\t\tprocess.exit(1);\n\t}\n\n\tconst fotovid = new Fotovid({\n\t\tapiKey,\n\t\tbaseUrl: process.env.FOTOVID_BASE_URL,\n\t});\n\n\tconst server = createServer(fotovid);\n\tconst transport = new StdioServerTransport();\n\tawait server.connect(transport);\n\n\t// stdout is reserved for the MCP protocol; logs go to stderr.\n\tconsole.error(\"@fotovid/mcp: server running on stdio\");\n}\n\nmain().catch((error) => {\n\tconsole.error(\"@fotovid/mcp: fatal error\", error);\n\tprocess.exit(1);\n});\n","import type { Fotovid } from \"@fotovid/sdk\";\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\n\n/** Run an SDK call and shape it into an MCP tool result. */\nasync function run(work: () => Promise<unknown>) {\n\ttry {\n\t\tconst data = await work();\n\t\treturn {\n\t\t\tcontent: [{ type: \"text\" as const, text: JSON.stringify(data, null, 2) }],\n\t\t};\n\t} catch (error) {\n\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\treturn {\n\t\t\tcontent: [{ type: \"text\" as const, text: `Fotovid error: ${message}` }],\n\t\t\tisError: true,\n\t\t};\n\t}\n}\n\n// Shared input pieces (snake_case, 1:1 with the API).\nconst source_url = z\n\t.string()\n\t.url()\n\t.describe(\"Public http(s) URL of the source media\");\nconst position = z\n\t.enum([\"top-left\", \"top-right\", \"bottom-left\", \"bottom-right\", \"center\"])\n\t.describe(\"Watermark anchor (default bottom-right)\");\nconst output_format = z\n\t.enum([\"webp\", \"jpeg\", \"jpg\", \"png\"])\n\t.describe(\"Output image format (default webp)\");\nconst quality = z\n\t.number()\n\t.int()\n\t.min(1)\n\t.max(100)\n\t.describe(\"Lossy quality 1–100 (png ignores it)\");\nconst start = z.number().min(0).describe(\"Window start in seconds (inclusive)\");\nconst end = z\n\t.number()\n\t.min(0)\n\t.describe(\"Window end in seconds (exclusive); must be greater than start\");\n\nconst watermarkShape = {\n\tsource_url,\n\twatermark_type: z\n\t\t.enum([\"text\", \"image\", \"combo\"])\n\t\t.optional()\n\t\t.describe(\"Watermark variant (default text)\"),\n\ttext: z\n\t\t.string()\n\t\t.max(1000)\n\t\t.optional()\n\t\t.describe(\"Overlay text (required for text/combo)\"),\n\tfont_size: z\n\t\t.number()\n\t\t.int()\n\t\t.min(8)\n\t\t.max(200)\n\t\t.optional()\n\t\t.describe(\"Text size in px (text/combo)\"),\n\tfont_color: z\n\t\t.string()\n\t\t.regex(/^(#?[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?|[A-Za-z]+)$/)\n\t\t.optional()\n\t\t.describe(\"Text color: a name (letters only) or #RRGGBB[AA] (text/combo)\"),\n\twatermark_image_url: z\n\t\t.string()\n\t\t.url()\n\t\t.optional()\n\t\t.describe(\"Logo image URL (required for image/combo)\"),\n\tscale: z\n\t\t.number()\n\t\t.gt(0)\n\t\t.max(1)\n\t\t.optional()\n\t\t.describe(\"Logo width as a fraction of source width (>0–1; image/combo)\"),\n\topacity: z\n\t\t.number()\n\t\t.gt(0)\n\t\t.max(1)\n\t\t.optional()\n\t\t.describe(\"Watermark opacity (>0–1; omit for fully opaque)\"),\n\tposition: position.optional(),\n\tpadding: z\n\t\t.number()\n\t\t.int()\n\t\t.min(0)\n\t\t.max(500)\n\t\t.optional()\n\t\t.describe(\"Edge padding in px\"),\n\toutput_format: output_format.optional(),\n\tquality: quality.optional(),\n};\n\n/** Build an MCP server exposing Fotovid media operations as tools. */\nexport function createServer(fotovid: Fotovid): McpServer {\n\tconst server = new McpServer({ name: \"fotovid\", version: \"0.1.0\" });\n\n\tserver.registerTool(\n\t\t\"fotovid_watermark_video\",\n\t\t{\n\t\t\ttitle: \"Watermark a video\",\n\t\t\tdescription:\n\t\t\t\t\"Overlay text or a logo on a video (position, opacity, scale, padding). Returns a URL to the finished video — hosted, time-limited, opaque; see expires_at, and store your own copy.\",\n\t\t\tinputSchema: {\n\t\t\t\t...watermarkShape,\n\t\t\t\tpreset: z\n\t\t\t\t\t.enum([\n\t\t\t\t\t\t\"ultrafast\",\n\t\t\t\t\t\t\"superfast\",\n\t\t\t\t\t\t\"veryfast\",\n\t\t\t\t\t\t\"faster\",\n\t\t\t\t\t\t\"fast\",\n\t\t\t\t\t\t\"medium\",\n\t\t\t\t\t\t\"slow\",\n\t\t\t\t\t\t\"slower\",\n\t\t\t\t\t\t\"veryslow\",\n\t\t\t\t\t\t\"placebo\",\n\t\t\t\t\t])\n\t\t\t\t\t.optional()\n\t\t\t\t\t.describe(\"x264 encode preset (video only)\"),\n\t\t\t},\n\t\t},\n\t\t(args) => run(() => fotovid.video.watermark(args)),\n\t);\n\n\tserver.registerTool(\n\t\t\"fotovid_watermark_image\",\n\t\t{\n\t\t\ttitle: \"Watermark an image\",\n\t\t\tdescription:\n\t\t\t\t\"Overlay text or a logo on an image. Returns a URL to the finished image — hosted, time-limited, opaque; see expires_at, and store your own copy.\",\n\t\t\tinputSchema: watermarkShape,\n\t\t},\n\t\t(args) => run(() => fotovid.image.watermark(args)),\n\t);\n\n\tserver.registerTool(\n\t\t\"fotovid_trim_video\",\n\t\t{\n\t\t\ttitle: \"Trim a video\",\n\t\t\tdescription:\n\t\t\t\t\"Cut a frame-accurate clip between two timestamps (seconds). Returns a URL to the trimmed video — hosted, time-limited, opaque; see expires_at.\",\n\t\t\tinputSchema: {\n\t\t\t\tsource_url,\n\t\t\t\tstart,\n\t\t\t\tend,\n\t\t\t},\n\t\t},\n\t\t(args) => run(() => fotovid.video.trim(args)),\n\t);\n\n\tserver.registerTool(\n\t\t\"fotovid_extract_audio\",\n\t\t{\n\t\t\ttitle: \"Extract audio from a video\",\n\t\t\tdescription:\n\t\t\t\t\"Pull the audio track out of a video and return it as an MP3 — a hosted, time-limited, opaque URL; see expires_at.\",\n\t\t\tinputSchema: { source_url },\n\t\t},\n\t\t(args) => run(() => fotovid.video.extractAudio(args)),\n\t);\n\n\tserver.registerTool(\n\t\t\"fotovid_trim_audio\",\n\t\t{\n\t\t\ttitle: \"Trim an audio file\",\n\t\t\tdescription:\n\t\t\t\t\"Slice an audio file to a start/end window (seconds) and return it as an MP3 — a hosted, time-limited, opaque URL; see expires_at.\",\n\t\t\tinputSchema: {\n\t\t\t\tsource_url,\n\t\t\t\tstart,\n\t\t\t\tend,\n\t\t\t},\n\t\t},\n\t\t(args) => run(() => fotovid.audio.trim(args)),\n\t);\n\n\tserver.registerTool(\n\t\t\"fotovid_video_thumbnail\",\n\t\t{\n\t\t\ttitle: \"Grab a video thumbnail\",\n\t\t\tdescription:\n\t\t\t\t\"Capture a frame at a given timestamp as an image thumbnail. Returns a URL — hosted, time-limited, opaque; see expires_at.\",\n\t\t\tinputSchema: {\n\t\t\t\tsource_url,\n\t\t\t\tat: z\n\t\t\t\t\t.number()\n\t\t\t\t\t.min(0)\n\t\t\t\t\t.optional()\n\t\t\t\t\t.describe(\"Frame timestamp in seconds (default ~1s)\"),\n\t\t\t\toutput_format: output_format.optional(),\n\t\t\t\tquality: quality.optional(),\n\t\t\t},\n\t\t},\n\t\t(args) => run(() => fotovid.video.thumbnail(args)),\n\t);\n\n\tserver.registerTool(\n\t\t\"fotovid_probe_video\",\n\t\t{\n\t\t\ttitle: \"Probe video metadata\",\n\t\t\tdescription:\n\t\t\t\t\"Return metadata for a video — width, height, duration, fps, codec, and alpha. Does not produce a file.\",\n\t\t\tinputSchema: { source_url },\n\t\t},\n\t\t(args) => run(() => fotovid.video.probe(args)),\n\t);\n\n\treturn server;\n}\n"],"mappings":";;;AAAA,SAAS,eAAe;AACxB,SAAS,4BAA4B;;;ACArC,SAAS,iBAAiB;AAC1B,SAAS,SAAS;AAGlB,eAAe,IAAI,MAA8B;AAChD,MAAI;AACH,UAAM,OAAO,MAAM,KAAK;AACxB,WAAO;AAAA,MACN,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,KAAK,UAAU,MAAM,MAAM,CAAC,EAAE,CAAC;AAAA,IACzE;AAAA,EACD,SAAS,OAAO;AACf,UAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AACrE,WAAO;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6BAA6B,KAAK;AAChD,UAAQ,KAAK,CAAC;AACf,CAAC;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fotovid/mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server exposing the Fotovid media API as first-class agent tools",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"fotovid-mcp": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"provenance": true
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@fotovid/sdk": "^0.1.0",
|
|
23
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
24
|
+
"zod": "^3.23.8"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"fotovid",
|
|
28
|
+
"mcp",
|
|
29
|
+
"model-context-protocol",
|
|
30
|
+
"ffmpeg",
|
|
31
|
+
"media",
|
|
32
|
+
"agent",
|
|
33
|
+
"tools"
|
|
34
|
+
],
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/twinrise/fotovid-js.git",
|
|
38
|
+
"directory": "packages/mcp"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/twinrise/fotovid-js/tree/main/packages/mcp",
|
|
41
|
+
"bugs": "https://github.com/twinrise/fotovid-js/issues",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"typecheck": "tsc --noEmit"
|
|
45
|
+
}
|
|
46
|
+
}
|