@gehdoc/svg-to-video 0.28.3 → 0.28.4
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 +4 -2
- package/dist/src/mcp.js +29 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://www.npmjs.com/package/@gehdoc/svg-to-video)
|
|
11
11
|
[](https://hub.docker.com/r/gehdoc/svg-to-video)
|
|
12
12
|
[](https://registry.modelcontextprotocol.io/v0/servers/io.github.GehDoc%2Fsvg-to-video/versions/latest)
|
|
13
|
+
[](https://huggingface.co/spaces/GehDoc/svg-to-video-mcp)
|
|
13
14
|
[](https://gehdoc.github.io/svg-to-video/llms.txt)
|
|
14
15
|
|
|
15
16
|
A high-fidelity tool to transform your CSS-animated SVGs into high-quality videos (MP4, WebM, MKV, MOV) or lightweight animated formats (aPNG, GIF) with perfect alpha-channel transparency directly in your browser or via CLI/MCP server.
|
|
@@ -26,7 +27,7 @@ A high-fidelity tool to transform your CSS-animated SVGs into high-quality video
|
|
|
26
27
|
- **Transparent Backgrounds**: Export your animations with a full alpha channel using **WebM or aPNG**, and optimized indexed transparency with **GIF89a**. Perfect for overlays in video editing tools or web use.
|
|
27
28
|
- **Privacy-First**: The Web Studio runs entirely in your browser—your SVG files never leave your computer.
|
|
28
29
|
- **Frame-Accurate**: Our engine scrubs the **Web Animations API**, ensuring every frame is captured exactly as rendered.
|
|
29
|
-
- **AI Agent Native**: Native **Model Context Protocol (MCP)** server and **Agent Skill (`SKILL.md`)** support indexed on the official [MCP Registry](https://registry.modelcontextprotocol.io/) (`mcp.json`)
|
|
30
|
+
- **AI Agent Native**: Native **Model Context Protocol (MCP)** server and **Agent Skill (`SKILL.md`)** support indexed on the official [MCP Registry](https://registry.modelcontextprotocol.io/) (`mcp.json`) and hosted live on [HuggingFace Spaces](https://huggingface.co/spaces/GehDoc/svg-to-video-mcp).
|
|
30
31
|
- **Universal Animated Formats**: Beyond video, generate lightweight **Animated PNGs (aPNG)** and **GIFs** perfect for documentation, Slack, or GitHub, with full control over background transparency.
|
|
31
32
|
- **Copy to Clipboard**: Instant export to **Base64 Data URL**—copy your video and embed it directly into your HTML, CSS, or JS code without manual downloads. Perfect for rapid prototyping and developers.
|
|
32
33
|
- **Metadata Injection**: Support for custom titles and comments across video (MP4, WebM, MKV, MOV) and animated image (aPNG, GIF) formats.
|
|
@@ -102,7 +103,7 @@ Connect `svg-to-video` to AI Assistants (Claude Desktop, Cursor, Antigravity, Au
|
|
|
102
103
|
"mcpServers": {
|
|
103
104
|
"svg-to-video": {
|
|
104
105
|
"command": "npx",
|
|
105
|
-
"args": ["-y", "@gehdoc/svg-to-video", "mcp"]
|
|
106
|
+
"args": ["-y", "-p", "@gehdoc/svg-to-video", "svg-to-video-mcp"]
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -120,6 +121,7 @@ See **[docs/MCP.md](./docs/MCP.md)** for full setup instructions, tool schemas,
|
|
|
120
121
|
- 🐳 **Docker Hub Image**: [`gehdoc/svg-to-video`](https://hub.docker.com/r/gehdoc/svg-to-video)
|
|
121
122
|
- 🌐 **Web Studio**: [`gehdoc.github.io/svg-to-video/`](https://gehdoc.github.io/svg-to-video/)
|
|
122
123
|
- 🤖 **MCP Registry**: [`io.github.GehDoc/svg-to-video`](https://registry.modelcontextprotocol.io/v0/servers/io.github.GehDoc%2Fsvg-to-video/versions/latest)
|
|
124
|
+
- 🤗 **HuggingFace Space**: [`GehDoc/svg-to-video-mcp`](https://huggingface.co/spaces/GehDoc/svg-to-video-mcp)
|
|
123
125
|
|
|
124
126
|
---
|
|
125
127
|
|
package/dist/src/mcp.js
CHANGED
|
@@ -21,6 +21,14 @@ const cliIndexPath = fs.existsSync(cliJsPath) ? cliJsPath : cliTsPath;
|
|
|
21
21
|
const isHosted = process.env.MCP_HOSTED === 'true' ||
|
|
22
22
|
process.env.MCP_HOSTED === '1' ||
|
|
23
23
|
process.argv.includes('--hosted');
|
|
24
|
+
const SVG_FILE_PATH_PARAM = {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Path to the input .svg file (required if svgContent is not provided).',
|
|
27
|
+
};
|
|
28
|
+
const SVG_CONTENT_PARAM = {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'Raw SVG XML string content.',
|
|
31
|
+
};
|
|
24
32
|
function trackSecurityRejection() {
|
|
25
33
|
trackEvent('file-load', {
|
|
26
34
|
aspectRatio: 'unknown',
|
|
@@ -54,18 +62,16 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
54
62
|
inputSchema: {
|
|
55
63
|
type: 'object',
|
|
56
64
|
properties: {
|
|
57
|
-
svgFilePath:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
description: 'Output directory to preserve generated file locally. Omit to deliver purely in-band via ephemeral storage (forbidden in hosted sandboxed mode).',
|
|
68
|
-
},
|
|
65
|
+
...(isHosted ? {} : { svgFilePath: SVG_FILE_PATH_PARAM }),
|
|
66
|
+
svgContent: SVG_CONTENT_PARAM,
|
|
67
|
+
...(isHosted
|
|
68
|
+
? {}
|
|
69
|
+
: {
|
|
70
|
+
outDir: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'Output directory to preserve generated file locally. Omit to deliver purely in-band via ephemeral storage.',
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
69
75
|
fps: {
|
|
70
76
|
type: 'number',
|
|
71
77
|
description: 'Frames per second (e.g. 24, 30, 60). Default: 60.',
|
|
@@ -106,6 +112,14 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
106
112
|
default: 0,
|
|
107
113
|
},
|
|
108
114
|
},
|
|
115
|
+
...(isHosted
|
|
116
|
+
? { required: ['svgContent'] }
|
|
117
|
+
: {
|
|
118
|
+
anyOf: [
|
|
119
|
+
{ required: ['svgContent'] },
|
|
120
|
+
{ required: ['svgFilePath'] },
|
|
121
|
+
],
|
|
122
|
+
}),
|
|
109
123
|
},
|
|
110
124
|
},
|
|
111
125
|
{
|
|
@@ -114,15 +128,10 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
114
128
|
inputSchema: {
|
|
115
129
|
type: 'object',
|
|
116
130
|
properties: {
|
|
117
|
-
svgFilePath:
|
|
118
|
-
|
|
119
|
-
description: 'Path to the .svg file to inspect (forbidden in hosted sandboxed mode).',
|
|
120
|
-
},
|
|
121
|
-
svgContent: {
|
|
122
|
-
type: 'string',
|
|
123
|
-
description: 'Raw SVG content to inspect.',
|
|
124
|
-
},
|
|
131
|
+
...(isHosted ? {} : { svgFilePath: SVG_FILE_PATH_PARAM }),
|
|
132
|
+
svgContent: SVG_CONTENT_PARAM,
|
|
125
133
|
},
|
|
134
|
+
required: ['svgContent'],
|
|
126
135
|
},
|
|
127
136
|
},
|
|
128
137
|
],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gehdoc/svg-to-video",
|
|
3
3
|
"mcpName": "io.github.GehDoc/svg-to-video",
|
|
4
|
-
"version": "0.28.
|
|
4
|
+
"version": "0.28.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Professional animated SVG to Video (MP4/WebM/MKV/MOV) and Animated Image (aPNG/GIF) converter featuring frame-accurate rendering, CLI automation, Model Context Protocol (MCP) server integration, and a serverless Web Studio.",
|
|
7
7
|
"imports": {
|