katto-mcp 0.3.1 → 0.3.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/index.mjs +35 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -135,9 +135,39 @@ const TOOLS = [
|
|
|
135
135
|
"{ videos_used, videos_limit, videos_remaining }.",
|
|
136
136
|
inputSchema: { type: "object", properties: {} },
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
name: "katto_list_sources",
|
|
140
|
+
description:
|
|
141
|
+
"List the video platforms Katto can clip from, with an example URL for each. Use this to confirm a " +
|
|
142
|
+
"URL is supported before calling katto_create_clip_job.",
|
|
143
|
+
inputSchema: { type: "object", properties: {} },
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "katto_list_clip_lengths",
|
|
147
|
+
description:
|
|
148
|
+
"List the valid values for the optional config.clipLength on katto_create_clip_job (target clip " +
|
|
149
|
+
"duration buckets).",
|
|
150
|
+
inputSchema: { type: "object", properties: {} },
|
|
151
|
+
},
|
|
152
|
+
];
|
|
153
|
+
|
|
154
|
+
// Static reference data — returned by the list_* tools without an API call.
|
|
155
|
+
const SOURCES = [
|
|
156
|
+
{ id: 'youtube', example: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' },
|
|
157
|
+
{ id: 'twitch', example: 'https://www.twitch.tv/videos/123456789' },
|
|
158
|
+
{ id: 'vimeo', example: 'https://vimeo.com/123456789' },
|
|
159
|
+
{ id: 'rumble', example: 'https://rumble.com/v1a2b3c-title.html' },
|
|
160
|
+
{ id: 'zoom', example: 'https://zoom.us/rec/share/abc123' },
|
|
161
|
+
{ id: 'dailymotion', example: 'https://www.dailymotion.com/video/x8abcde' },
|
|
162
|
+
];
|
|
163
|
+
const CLIP_LENGTHS = [
|
|
164
|
+
{ value: 'lt30', label: 'Under 30 seconds' },
|
|
165
|
+
{ value: '30_60', label: '30 to 60 seconds' },
|
|
166
|
+
{ value: '60_90', label: '60 to 90 seconds' },
|
|
167
|
+
{ value: '90_180', label: '90 to 180 seconds' },
|
|
138
168
|
];
|
|
139
169
|
|
|
140
|
-
const server = new Server({ name: "katto", version: "0.3.
|
|
170
|
+
const server = new Server({ name: "katto", version: "0.3.2" }, { capabilities: { tools: {} } });
|
|
141
171
|
|
|
142
172
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
|
|
143
173
|
|
|
@@ -170,6 +200,10 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
170
200
|
data = await api(`/api/v1/jobs/${encodeURIComponent(args.id)}`, { method: "DELETE" });
|
|
171
201
|
} else if (name === "katto_get_account") {
|
|
172
202
|
data = await api("/api/v1/me");
|
|
203
|
+
} else if (name === "katto_list_sources") {
|
|
204
|
+
data = { sources: SOURCES, note: "You can also clip a local file via the REST API (POST /v1/uploads)." };
|
|
205
|
+
} else if (name === "katto_list_clip_lengths") {
|
|
206
|
+
data = { clip_lengths: CLIP_LENGTHS };
|
|
173
207
|
} else {
|
|
174
208
|
throw new Error(`Unknown tool: ${name}`);
|
|
175
209
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "katto-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"mcpName": "io.github.miracleweasel/katto-mcp",
|
|
5
5
|
"description": "MCP server for Katto — turn long videos into scored, captioned 9:16 clips from any MCP client (Claude, Cursor, ...).",
|
|
6
6
|
"type": "module",
|