katto-mcp 0.4.0 → 0.5.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/index.mjs +18 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -199,6 +199,19 @@ const TOOLS = [
|
|
|
199
199
|
required: ["id", "rerender_id"],
|
|
200
200
|
},
|
|
201
201
|
},
|
|
202
|
+
{
|
|
203
|
+
name: "katto_get_brand_kit",
|
|
204
|
+
description:
|
|
205
|
+
"Get your saved brand kits (colors, caption font and position, default layout, watermark url).",
|
|
206
|
+
inputSchema: { type: "object", properties: {} },
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "katto_get_webhook_secret",
|
|
210
|
+
description:
|
|
211
|
+
"Get your webhook signing secret and how to verify Katto's signed completion callbacks " +
|
|
212
|
+
"(HMAC-SHA256 of {timestamp}.{body}). Pass webhook_url on a job to receive them.",
|
|
213
|
+
inputSchema: { type: "object", properties: {} },
|
|
214
|
+
},
|
|
202
215
|
];
|
|
203
216
|
|
|
204
217
|
// Static reference data — returned by the list_* tools without an API call.
|
|
@@ -217,7 +230,7 @@ const CLIP_LENGTHS = [
|
|
|
217
230
|
{ value: '90_180', label: '90 to 180 seconds' },
|
|
218
231
|
];
|
|
219
232
|
|
|
220
|
-
const server = new Server({ name: "katto", version: "0.
|
|
233
|
+
const server = new Server({ name: "katto", version: "0.5.0" }, { capabilities: { tools: {} } });
|
|
221
234
|
|
|
222
235
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
|
|
223
236
|
|
|
@@ -263,6 +276,10 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
263
276
|
data = await api(`/api/v1/jobs/${encodeURIComponent(args.id)}/clips/${encodeURIComponent(args.clip_index)}/rerender`, { method: "POST", body: JSON.stringify({ dub: args.languages || [] }) });
|
|
264
277
|
} else if (name === "katto_get_rerender") {
|
|
265
278
|
data = await api(`/api/v1/jobs/${encodeURIComponent(args.id)}/rerenders/${encodeURIComponent(args.rerender_id)}`);
|
|
279
|
+
} else if (name === "katto_get_brand_kit") {
|
|
280
|
+
data = await api("/api/v1/brand-kit");
|
|
281
|
+
} else if (name === "katto_get_webhook_secret") {
|
|
282
|
+
data = await api("/api/v1/webhook");
|
|
266
283
|
} else {
|
|
267
284
|
throw new Error(`Unknown tool: ${name}`);
|
|
268
285
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "katto-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
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",
|