katto-mcp 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/index.mjs +23 -1
  2. package/package.json +2 -1
package/index.mjs CHANGED
@@ -117,9 +117,27 @@ const TOOLS = [
117
117
  required: ["id"],
118
118
  },
119
119
  },
120
+ {
121
+ name: "katto_cancel_job",
122
+ description:
123
+ "Cancel a still-running job (queued/processing) and refund the monthly video slot. " +
124
+ "Returns an error if the job already finished, failed, or was cancelled.",
125
+ inputSchema: {
126
+ type: "object",
127
+ properties: { id: { type: "string", description: "Job id from katto_create_clip_job." } },
128
+ required: ["id"],
129
+ },
130
+ },
131
+ {
132
+ name: "katto_get_account",
133
+ description:
134
+ "Get the account behind this key: plan, this key's scopes, and monthly quota " +
135
+ "{ videos_used, videos_limit, videos_remaining }.",
136
+ inputSchema: { type: "object", properties: {} },
137
+ },
120
138
  ];
121
139
 
122
- const server = new Server({ name: "katto", version: "0.2.0" }, { capabilities: { tools: {} } });
140
+ const server = new Server({ name: "katto", version: "0.3.0" }, { capabilities: { tools: {} } });
123
141
 
124
142
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
125
143
 
@@ -148,6 +166,10 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
148
166
  data = await api("/api/v1/usage");
149
167
  } else if (name === "katto_get_transcript") {
150
168
  data = await api(`/api/v1/jobs/${encodeURIComponent(args.id)}/transcript`);
169
+ } else if (name === "katto_cancel_job") {
170
+ data = await api(`/api/v1/jobs/${encodeURIComponent(args.id)}`, { method: "DELETE" });
171
+ } else if (name === "katto_get_account") {
172
+ data = await api("/api/v1/me");
151
173
  } else {
152
174
  throw new Error(`Unknown tool: ${name}`);
153
175
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "katto-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
+ "mcpName": "io.github.miracleweasel/katto-mcp",
4
5
  "description": "MCP server for Katto — turn long videos into scored, captioned 9:16 clips from any MCP client (Claude, Cursor, ...).",
5
6
  "type": "module",
6
7
  "bin": {