recordful-mcp 1.3.0 → 2.0.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/CHANGELOG.md +9 -0
- package/README.md +12 -0
- package/dist/core/createRecordfulServer.js +14 -5
- package/dist/core/createRecordfulServer.js.map +1 -1
- package/dist/core/hostedTools.d.ts +29 -0
- package/dist/core/hostedTools.js +78 -0
- package/dist/core/hostedTools.js.map +1 -0
- package/dist/core/videoTools.js +6 -6
- package/dist/core/videoTools.js.map +1 -1
- package/dist/guide.d.ts +2 -2
- package/dist/guide.js +2 -17
- package/dist/guide.js.map +1 -1
- package/dist/mcp/createMcpServer.js +61 -55
- package/dist/mcp/createMcpServer.js.map +1 -1
- package/dist/protocol/methods.d.ts +1 -0
- package/dist/protocol/methods.js +3 -0
- package/dist/protocol/methods.js.map +1 -1
- package/dist/skill.d.ts +16 -0
- package/dist/skill.js +64 -3
- package/dist/skill.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/libraryTools.d.ts +0 -6
- package/dist/core/libraryTools.js +0 -104
- package/dist/core/libraryTools.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0 (2026-11-23)
|
|
4
|
+
|
|
5
|
+
Your AI app can now edit, organise and share your Recordful videos, not only record them. When you're signed in to Recordful in Chrome, recordful-mcp also offers every tool of the hosted server at recordful.app/mcp (over 100: cuts and clips, silences and filler words, zooms, captions and chapters, look, audio, shapes and blurs, frames and storyboards, search, tags, sharing, analytics, webhooks). Needs Recordful 4.10.0 (in the Chrome Web Store once it passes review), which carries the calls to recordful.app with its own sign-in; the token never reaches recordful-mcp. Editing tools need Recordful Pro.
|
|
6
|
+
|
|
7
|
+
- **Hosted tools by proxy.** They are listed with the hosted names, descriptions and schemas and answer exactly as the hosted server does (structured results, typed errors, images). Signed out, offline or with an older Recordful, they simply aren't listed.
|
|
8
|
+
- **Breaking: library tools now come from the hosted server.** `list_videos`, `update_video`, `delete_video`, `list_trash`, `restore_video`, `get_video_activity`, `comment_on_video`, `delete_comment`, `like_video`, `list_folders`, `create_folder`, `move_videos`, `get_analytics`, `list_members` and `invite_member` were copies of the website's API and are gone from this package; the hosted tools of the same names replace them, and they take a `videoId` instead of defaulting to the last recording. The CLI keeps its commands. Recording, page tools, screenshots, `get_video`, `get_transcript`, `get_summary`, `get_storage`, `list_windows`, `list_recordings` and `upload_recording` stay local.
|
|
9
|
+
- **Errors match the hosted server.** A Pro-only tool answers `forbidden` with an upgrade link (`create_checkout_link`), where the docs used to say `PRO_REQUIRED`.
|
|
10
|
+
- **Four new skills:** `edit-video`, `remove-mistakes`, `make-short` and `polish-demo`, beside `record-demo` and `recordful-motion`. Install them with `npx skills add iKislay/recordful-mcp`. Both servers also serve every skill as a `skill://recordful/<name>/SKILL.md` resource (`skills/list`, `skills/get`).
|
|
11
|
+
|
|
3
12
|
## 1.3.0 (2026-11-14)
|
|
4
13
|
|
|
5
14
|
Motion graphics for Recordful videos that don't look generated. Recordful Motion (the web editor in Chrome 157 or later, and desktop 2.2) adds a HyperFrames composition as a motion layer.
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Recordful MCP
|
|
2
|
+
[](https://github.com/sponsors/iKislay)
|
|
2
3
|
|
|
3
4
|
**Let any AI app record, upload and read back product demos with [Recordful](https://recordful.app).**
|
|
4
5
|
|
|
@@ -111,6 +112,14 @@ Ask in plain words:
|
|
|
111
112
|
|
|
112
113
|
The AI works out the flow, uses test data (never your real accounts), records with pauses while it thinks, and stops so the editor opens. Apps that support MCP prompts also offer **record_feature**, a guided version of this workflow, and **make_motion**, which makes a title, lower third or callout for a Recordful video as a HyperFrames composition, with shot recipes and a review checklist that keep it from looking generated. While an app is connected, Recordful's icon shows an **AI** badge.
|
|
113
114
|
|
|
115
|
+
### Skills
|
|
116
|
+
|
|
117
|
+
The `skills/` folder holds six [Agent Skills](https://agentskills.io): `record-demo`, `recordful-motion`, and four for editing a video on recordful.app with the hosted connector (`https://recordful.app/mcp`, Recordful Pro): `edit-video`, `remove-mistakes` (retakes, fillers, pauses), `make-short` (a 9:16 clip with captions) and `polish-demo` (zooms, background, click effects, voice, captions, chapters).
|
|
118
|
+
|
|
119
|
+
- **Any agent:** `npx skills add iKislay/recordful-mcp` installs them (add `--skill edit-video` for one).
|
|
120
|
+
- **Over MCP:** both servers serve them as resources at `skill://recordful/<name>/SKILL.md` with `skills/list` and `skills/get` (the `io.modelcontextprotocol/skills` extension), so apps that load skills from MCP servers need no install.
|
|
121
|
+
- `npx -y recordful-mcp install` and the Claude Code plugin also write them.
|
|
122
|
+
|
|
114
123
|
### Free and Pro
|
|
115
124
|
|
|
116
125
|
| | Free | Pro |
|
|
@@ -125,6 +134,8 @@ The AI works out the flow, uses test data (never your real accounts), records wi
|
|
|
125
134
|
| Delete to trash, see the trash, restore | | ✓ |
|
|
126
135
|
| See your team and invite someone (workspace owner) | | ✓ |
|
|
127
136
|
|
|
137
|
+
While you're signed in to Recordful, your AI also gets every tool of the hosted Recordful server (the same ones claude.ai gets at recordful.app/mcp): editing (cuts, silences, filler words, zooms, captions, chapters, audio, look), looking at a video (storyboard, frames, clicks), sharing, folders, tags, analytics and webhooks. They come through this server with your Recordful sign-in, so there's nothing else to connect; signed out, they're simply not listed.
|
|
138
|
+
|
|
128
139
|
The AI checks your plan first. On the free plan it records as usual and tells you once that links and transcripts come with Pro, instead of failing. Recordings made while signed in to Pro go to the cloud as they record.
|
|
129
140
|
|
|
130
141
|
### From the command line
|
|
@@ -169,6 +180,7 @@ Details: [SECURITY.md](https://github.com/iKislay/recordful-mcp/blob/main/SECURI
|
|
|
169
180
|
| Recording won't start | Click the Recordful icon on the exact tab to record, then retry. `PERMISSIONS_NEEDED`: turn AI agents off and on in Recordful and click **Allow** |
|
|
170
181
|
| Recording waits forever | Recordful may be asking something (microphone access, or the screen picker in screen mode). Answer it |
|
|
171
182
|
| `PRO_REQUIRED` or `NOT_SIGNED_IN` | Uploads and transcripts need a Recordful Pro account, signed in in Recordful. Recording works on every plan |
|
|
183
|
+
| `forbidden` from a hosted tool | That tool needs Recordful Pro (the AI can offer an upgrade link), or only the video's owner can change it |
|
|
172
184
|
| `BRIDGE_UNAVAILABLE` | Something other than recordful-mcp is using port 47823, or an older recordful-mcp is running. Update or close it |
|
|
173
185
|
| No Recordful tools in the AI app | Check `node -v` is 20.10+, then restart the app |
|
|
174
186
|
|
|
@@ -8,7 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
import { BridgeError, ErrorCode } from "../protocol/errors.js";
|
|
9
9
|
import { Method } from "../protocol/methods.js";
|
|
10
10
|
import { pageExtraWaitMs, pageParams, parsePageParams } from "../protocol/page.js";
|
|
11
|
-
import {
|
|
11
|
+
import { hostedTools } from "./hostedTools.js";
|
|
12
12
|
import { registerVideoTools } from "./videoTools.js";
|
|
13
13
|
const text = (value) => ({
|
|
14
14
|
content: [{ type: "text", text: typeof value === "string" ? value : JSON.stringify(value, null, 2) }],
|
|
@@ -48,14 +48,21 @@ export const createRecordfulServer = (deps) => {
|
|
|
48
48
|
throw new BridgeError(ErrorCode.NotConnected, "Desktop screenshots need recordful-mcp running on the user's computer, beside the Recordful desktop app.");
|
|
49
49
|
});
|
|
50
50
|
const log = logger.child({ component: "mcp" });
|
|
51
|
-
const server = new McpServer({ name: "recordful", title: "Recordful", version: deps.version }, {
|
|
51
|
+
const server = new McpServer({ name: "recordful", title: "Recordful", version: deps.version }, {
|
|
52
|
+
instructions: copy.instructions,
|
|
53
|
+
// Adding the hosted tools registers ~110 at once: one list_changed, not one each.
|
|
54
|
+
debouncedNotificationMethods: ["notifications/tools/list_changed"],
|
|
55
|
+
});
|
|
52
56
|
// Every call waits briefly for the extension: Chrome idles service workers,
|
|
53
57
|
// and a cold one needs a moment to wake and dial back in.
|
|
54
58
|
const call = async (method, params, extraWaitMs = 0) => {
|
|
55
59
|
await transport.ready(timeouts.connectWaitMs);
|
|
56
60
|
const started = Date.now();
|
|
57
61
|
try {
|
|
58
|
-
|
|
62
|
+
const result = await transport.request(method, params, timeouts.requestTimeoutMs + extraWaitMs);
|
|
63
|
+
// The extension answers, so it may reach recordful.app now.
|
|
64
|
+
void syncHosted();
|
|
65
|
+
return result;
|
|
59
66
|
}
|
|
60
67
|
finally {
|
|
61
68
|
log.info("tool call", { method, ms: Date.now() - started });
|
|
@@ -215,8 +222,10 @@ export const createRecordfulServer = (deps) => {
|
|
|
215
222
|
}
|
|
216
223
|
};
|
|
217
224
|
registerVideoTools(server, call, handleTool);
|
|
218
|
-
// ----
|
|
219
|
-
|
|
225
|
+
// ---- everything else on recordful.app, by proxy (hostedTools.ts) ------------
|
|
226
|
+
// After the local tools, so those win on a name clash.
|
|
227
|
+
const syncHosted = hostedTools(server, call, failure, deps.version, log);
|
|
228
|
+
void syncHosted();
|
|
220
229
|
// ---- prompts -------------------------------------------------------------
|
|
221
230
|
// The whole "record the feature I just built" workflow, shipped with the
|
|
222
231
|
// server so every MCP client gets it (Claude Code lists it as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRecordfulServer.js","sourceRoot":"","sources":["../../src/core/createRecordfulServer.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,yEAAyE;AACzE,8EAA8E;AAC9E,+EAA+E;AAC/E,iDAAiD;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AAEpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAA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AC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { type CallToolResult, type Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import type { Logger } from "../logger.js";
|
|
5
|
+
import type { Call } from "../workflows.js";
|
|
6
|
+
/** registerTool's config for one hosted tool. */
|
|
7
|
+
export declare const proxyConfig: (tool: Tool) => {
|
|
8
|
+
title: string | undefined;
|
|
9
|
+
description: string | undefined;
|
|
10
|
+
inputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
11
|
+
outputSchema: z.ZodObject<{}, z.core.$loose> | undefined;
|
|
12
|
+
annotations: {
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
readOnlyHint?: boolean | undefined;
|
|
15
|
+
destructiveHint?: boolean | undefined;
|
|
16
|
+
idempotentHint?: boolean | undefined;
|
|
17
|
+
openWorldHint?: boolean | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
_meta: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
} | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Registers the hosted tools on `server` once the extension can reach
|
|
25
|
+
* recordful.app. Until then (signed out, offline, a Recordful without
|
|
26
|
+
* cloud.mcp) they are absent. Returns `sync`: call it whenever the extension
|
|
27
|
+
* may have become reachable; it lists once, retrying after a failure.
|
|
28
|
+
*/
|
|
29
|
+
export declare const hostedTools: (server: McpServer, call: Call, fail: (err: unknown) => CallToolResult, version: string, log: Logger) => (() => Promise<void>);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// The hosted tools (recordful.app/mcp: editing, seeing, library, sharing,
|
|
2
|
+
// analytics, webhooks, account) offered here by proxy, so an AI app with only
|
|
3
|
+
// this server gets the whole surface without a second implementation. The
|
|
4
|
+
// extension carries each message with its own sign-in (cloud.mcp), so no
|
|
5
|
+
// credential ever reaches the bridge. Names, descriptions, schemas,
|
|
6
|
+
// annotations and results are the hosted server's, untouched. A local tool
|
|
7
|
+
// wins on a name clash: the local ones need this computer.
|
|
8
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
9
|
+
import { CallToolResultSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
import { Method } from "../protocol/methods.js";
|
|
12
|
+
// Hosted edits (silences, captions) can take a while server-side.
|
|
13
|
+
const HOSTED_WAIT_MS = 100_000;
|
|
14
|
+
/** A client transport whose every message goes to recordful.app/mcp through the extension. */
|
|
15
|
+
const viaExtension = (call) => {
|
|
16
|
+
const transport = {
|
|
17
|
+
start: async () => { },
|
|
18
|
+
close: async () => transport.onclose?.(),
|
|
19
|
+
send: async (message) => {
|
|
20
|
+
const reply = await call(Method.CloudMcp, { message }, HOSTED_WAIT_MS);
|
|
21
|
+
// Notifications get no reply.
|
|
22
|
+
if (reply)
|
|
23
|
+
transport.onmessage?.(reply);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
return transport;
|
|
27
|
+
};
|
|
28
|
+
// Lists as the hosted JSON Schema verbatim (zod merges .meta into its JSON
|
|
29
|
+
// Schema) and accepts any object: the hosted server validates.
|
|
30
|
+
const asIs = (schema) => z.looseObject({}).meta(schema);
|
|
31
|
+
/** registerTool's config for one hosted tool. */
|
|
32
|
+
export const proxyConfig = (tool) => ({
|
|
33
|
+
title: tool.title,
|
|
34
|
+
description: tool.description,
|
|
35
|
+
inputSchema: asIs(tool.inputSchema),
|
|
36
|
+
outputSchema: tool.outputSchema && asIs(tool.outputSchema),
|
|
37
|
+
annotations: tool.annotations,
|
|
38
|
+
_meta: tool._meta,
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* Registers the hosted tools on `server` once the extension can reach
|
|
42
|
+
* recordful.app. Until then (signed out, offline, a Recordful without
|
|
43
|
+
* cloud.mcp) they are absent. Returns `sync`: call it whenever the extension
|
|
44
|
+
* may have become reachable; it lists once, retrying after a failure.
|
|
45
|
+
*/
|
|
46
|
+
export const hostedTools = (server, call, fail, version, log) => {
|
|
47
|
+
let synced;
|
|
48
|
+
const sync = async () => {
|
|
49
|
+
const client = new Client({ name: "recordful-mcp", version });
|
|
50
|
+
await client.connect(viaExtension(call));
|
|
51
|
+
const { tools } = await client.listTools();
|
|
52
|
+
const clashes = [];
|
|
53
|
+
for (const tool of tools) {
|
|
54
|
+
try {
|
|
55
|
+
server.registerTool(tool.name, proxyConfig(tool), async (args, extra) => {
|
|
56
|
+
try {
|
|
57
|
+
return await client.request(
|
|
58
|
+
// _meta carries the hosted idempotency key.
|
|
59
|
+
{ method: "tools/call", params: { name: tool.name, arguments: args, _meta: extra._meta } }, CallToolResultSchema, { timeout: HOSTED_WAIT_MS });
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
return fail(err);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
catch {
|
|
67
|
+
// registerTool refuses a name already taken: the local tool stays.
|
|
68
|
+
clashes.push(tool.name);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
log.info("hosted tools added", { added: tools.length - clashes.length, clashes });
|
|
72
|
+
};
|
|
73
|
+
return () => (synced ??= sync().catch((err) => {
|
|
74
|
+
synced = undefined;
|
|
75
|
+
log.debug("hosted tools unavailable", { error: err instanceof Error ? err.message : String(err) });
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=hostedTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostedTools.js","sourceRoot":"","sources":["../../src/core/hostedTools.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;AAC9E,0EAA0E;AAC1E,yEAAyE;AACzE,oEAAoE;AACpE,2EAA2E;AAC3E,2DAA2D;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGnE,OAAO,EAAE,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AAC;QACD,GAAG,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC,CAAC;IACF,OAAO,GAAG,EAAE,CACV,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QAC/B,MAAM,GAAG,SAAS,CAAC;QACnB,GAAG,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACrG,CAAC,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
|
package/dist/core/videoTools.js
CHANGED
|
@@ -53,12 +53,6 @@ export const registerVideoTools = (server, call, handle) => {
|
|
|
53
53
|
},
|
|
54
54
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
55
55
|
}, async (args, extra) => handle(() => getVideoAndWait(call, args, progressFor(extra))));
|
|
56
|
-
server.registerTool("list_videos", {
|
|
57
|
-
title: "List videos",
|
|
58
|
-
description: "List the user's videos on recordful.app, newest first: videoId, title, date, length, who may watch, and links. Optionally filter by title.",
|
|
59
|
-
inputSchema: videoParams.list,
|
|
60
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
61
|
-
}, async (args) => handle(() => call(Method.VideoList, parseVideoParams(videoParams.list, args), 40_000)));
|
|
62
56
|
server.registerTool("get_summary", {
|
|
63
57
|
title: "Read the AI summary and chapters",
|
|
64
58
|
description: 'Recordful Pro only. A Recordful video\'s AI summary (2 to 4 sentences) and chapters ([{ startSeconds, title }], the first at 0), as shown on its page. Reading is free. If there is none (status "none"), writing one spends the workspace\'s AI credits (about 1 to 2 a summary): ask the user first, then call with generate: true. Needs a transcript (status "no_transcript": call get_transcript first). OUT_OF_CREDITS means none are left this month. Defaults to the last recording.',
|
|
@@ -77,5 +71,11 @@ export const registerVideoTools = (server, call, handle) => {
|
|
|
77
71
|
},
|
|
78
72
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
79
73
|
}, async (args, extra) => handle(() => transcriptAndWait(call, args, progressFor(extra))));
|
|
74
|
+
server.registerTool("get_storage", {
|
|
75
|
+
title: "Check storage",
|
|
76
|
+
description: "Recordful Pro only (check get_status recorder.account.plan first). How much of the user's Recordful cloud storage is used (bytes, percent) and whether more can be uploaded. Read-only.",
|
|
77
|
+
inputSchema: {},
|
|
78
|
+
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
79
|
+
}, async () => handle(() => call(Method.StorageGet, {}, 40_000)));
|
|
80
80
|
};
|
|
81
81
|
//# sourceMappingURL=videoTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoTools.js","sourceRoot":"","sources":["../../src/core/videoTools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"videoTools.js","sourceRoot":"","sources":["../../src/core/videoTools.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAA4B,MAAM,iBAAiB,CAAC;AAK9G,6EAA6E;AAC7E,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE,CACvC,CAAC;KACE,MAAM,EAAE;KACR,GAAG,EAAE;KACL,GAAG,CAAC,KAAK,CAAC;KACV,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC;KAChB,QAAQ,EAAE;KACV,QAAQ,CAAC,8CAA8C,QAAQ,gDAAgD,CAAC,CAAC;AAEtH,+DAA+D;AAC/D,MAAM,WAAW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ACzD,EACD,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,CAC9D,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/guide.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const MCP_TOOLS: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "
|
|
1
|
+
export declare const MCP_TOOLS: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "get_transcript", "get_summary", "get_storage"];
|
|
2
2
|
interface CommandInfo {
|
|
3
3
|
command: string;
|
|
4
4
|
summary: string;
|
|
@@ -19,7 +19,7 @@ export declare const guide: (version: string) => {
|
|
|
19
19
|
"1": string;
|
|
20
20
|
"2": string;
|
|
21
21
|
};
|
|
22
|
-
mcpTools: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "
|
|
22
|
+
mcpTools: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "get_transcript", "get_summary", "get_storage"];
|
|
23
23
|
commands: CommandInfo[];
|
|
24
24
|
installTargets: readonly ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini", "antigravity"];
|
|
25
25
|
humanSteps: string[];
|
package/dist/guide.js
CHANGED
|
@@ -24,23 +24,8 @@ export const MCP_TOOLS = [
|
|
|
24
24
|
"list_recordings",
|
|
25
25
|
"upload_recording",
|
|
26
26
|
"get_video",
|
|
27
|
-
"list_videos",
|
|
28
27
|
"get_transcript",
|
|
29
28
|
"get_summary",
|
|
30
|
-
"update_video",
|
|
31
|
-
"delete_video",
|
|
32
|
-
"list_trash",
|
|
33
|
-
"restore_video",
|
|
34
|
-
"get_video_activity",
|
|
35
|
-
"comment_on_video",
|
|
36
|
-
"delete_comment",
|
|
37
|
-
"like_video",
|
|
38
|
-
"list_folders",
|
|
39
|
-
"create_folder",
|
|
40
|
-
"move_videos",
|
|
41
|
-
"get_analytics",
|
|
42
|
-
"list_members",
|
|
43
|
-
"invite_member",
|
|
44
29
|
"get_storage",
|
|
45
30
|
];
|
|
46
31
|
const COMMANDS = [
|
|
@@ -82,7 +67,7 @@ export const guide = (version) => ({
|
|
|
82
67
|
version,
|
|
83
68
|
summary: "Records the user's Chrome tab with the Recordful extension, drives the page, uploads recordings and reads transcripts back.",
|
|
84
69
|
interfaces: {
|
|
85
|
-
mcp: "Run by the AI app over stdio (`npx -y recordful-mcp`). Tools below. Preferred when loaded.",
|
|
70
|
+
mcp: "Run by the AI app over stdio (`npx -y recordful-mcp`). Tools below, plus the hosted recordful.app tools (editing, sharing, library, analytics) while the user is signed in to Recordful. Preferred when loaded.",
|
|
86
71
|
cli: "The same abilities from a shell; every command accepts --json (stdout is the result, stderr is progress and hints).",
|
|
87
72
|
},
|
|
88
73
|
routing: "For anything about recording the browser, use these tools or commands, never your own browser automation or computer-use tools. Use a browser only when the user must do something there themselves (install Recordful, click its icon, approve pairing).",
|
|
@@ -97,7 +82,7 @@ export const guide = (version) => ({
|
|
|
97
82
|
"Once per computer: approve the 4-digit pairing code Recordful shows.",
|
|
98
83
|
],
|
|
99
84
|
plans: {
|
|
100
|
-
free: "Recording and the editor work. Uploads, links and transcripts need Recordful Pro; get_status shows recorder.account.plan (pro|free|signed-out|unavailable). Say so once and don't retry after PRO_REQUIRED or NOT_SIGNED_IN.",
|
|
85
|
+
free: "Recording and the editor work. Uploads, links and transcripts need Recordful Pro; get_status shows recorder.account.plan (pro|free|signed-out|unavailable). Say so once and don't retry after PRO_REQUIRED or NOT_SIGNED_IN (or forbidden from a hosted tool; create_checkout_link offers the upgrade).",
|
|
101
86
|
pro: "Uploads, links and transcripts work.",
|
|
102
87
|
},
|
|
103
88
|
safety: [
|
package/dist/guide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../src/guide.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4EAA4E;AAC5E,wEAAwE;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,YAAY;IACZ,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,YAAY;IACZ,eAAe;IACf,UAAU;IACV,UAAU;IACV,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,cAAc;IACd,iBAAiB;IACjB,kBAAkB;IAClB,WAAW;IACX,
|
|
1
|
+
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../src/guide.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4EAA4E;AAC5E,wEAAwE;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,YAAY;IACZ,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,YAAY;IACZ,eAAe;IACf,UAAU;IACV,UAAU;IACV,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAA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AE,qHAAqH;KAC3H;IACD,OAAO,EACL,2PAA2P;IAC7P,SAAS,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,8CAA8C,EAAE,GAAG,EAAE,+DAA+D,EAAE;IACnJ,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,QAAQ;IAClB,cAAc,EAAE,OAAO;IACvB,UAAU,EAAE;QACV,8CAA8C;QAC9C,mGAAmG;QACnG,oIAAoI;QACpI,sEAAsE;KACvE;IACD,KAAK,EAAE;QACL,IAAI,EAAE,ySAAyS;QAC/S,GAAG,EAAE,sCAAsC;KAC5C;IACD,MAAM,EAAE;QACN,qDAAqD;QACrD,0FAA0F;QAC1F,wHAAwH;QACxH,2IAA2I;QAC3I,uNAAuN;KACxN;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import { desktopCall } from "../desktop.js";
|
|
2
2
|
import { createRecordfulServer } from "../core/createRecordfulServer.js";
|
|
3
|
-
import { SKILLS } from "../skill.js";
|
|
3
|
+
import { registerSkills, SKILLS } from "../skill.js";
|
|
4
4
|
import { localTransport } from "./localTransport.js";
|
|
5
|
-
const INSTRUCTIONS = `
|
|
6
|
-
Recordful records the user's browser so you can produce product demo videos. It also drives the page it records, so you don't need a browser tool of your own.
|
|
7
|
-
|
|
8
|
-
Typical flow for "record feature X" (the record_feature prompt has the full version):
|
|
9
|
-
1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
|
|
10
|
-
2. Call get_status. Recordful usually connects to you by itself; if it says NOT_CONNECTED, see below. It shows the tab you were handed (recorder.agent.armedTab), the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
|
|
11
|
-
3. Get to the starting page: navigate(url), then snapshot() to check it loaded. If no tab was handed to you, navigate opens a tab of your own (openedTab: true); page tools only ever act on that tab, a tab the user handed over, or the tab being recorded, never the user's other tabs.
|
|
12
|
-
4. To record in tab or tab-area mode, ask the user to click the Recordful toolbar icon in Chrome on that tab once. Chrome only lets an extension capture a tab after the user has invoked it there, and nothing can do this click for them. Screen and camera modes don't need it.
|
|
13
|
-
5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
|
|
14
|
-
6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
|
|
15
|
-
7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
|
|
16
|
-
8. Call stop_recording. Recordful opens its editor with the recording automatically.
|
|
17
|
-
9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
|
|
18
|
-
|
|
19
|
-
Screenshots to keep or share: navigate to the page (no click needed), then take_screenshot (mode "page" for the whole page). Pass look only if the user asked for one ("3d" for a 3D tilt, or a preset name); otherwise their default look is used: a wallpaper picked to match the screenshot's colours. It opens in Recordful's screenshot editor and returns no image, so you don't need screenshot to check it.
|
|
20
|
-
|
|
21
|
-
Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
|
|
22
|
-
|
|
23
|
-
Free and Pro:
|
|
24
|
-
- Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
|
|
25
|
-
- Recordful Pro only: uploads, cloud videos (
|
|
26
|
-
- get_status shows recorder.account.plan: "pro", "free", "signed-out", or "unavailable". Check it before you promise a link or a transcript. If it isn't "pro", record as usual, tell the user the video is open in Recordful's editor, and mention once that links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't call upload_recording or get_transcript, and don't retry them after PRO_REQUIRED or NOT_SIGNED_IN.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
First connection on a computer:
|
|
31
|
-
- NOT_CONNECTED: Recordful connects by itself once AI agents is on and it has paired with you. Otherwise ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
|
|
32
|
-
- PAIRING_PENDING: Recordful opened a window asking the user to approve you. Tell them the 4-digit code from the error so they can check it matches, ask them to click Allow, then retry. This happens once per computer.
|
|
33
|
-
- PAIRING_DENIED: the user declined. Don't retry unless they ask.
|
|
34
|
-
- PERMISSIONS_NEEDED: Recordful's one-time browser permission to record hasn't been granted. Tell the user to turn AI agents off and on again in Recordful (popup → More → AI agents) and click Allow, then retry.
|
|
35
|
-
- NOT_ARMED from a page tool: call navigate(url) first. From start_recording, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
|
|
36
|
-
- NOT_SIGNED_IN or PRO_REQUIRED: uploads and transcripts need the user signed in to Recordful Pro. Relay the error's message (it says what still works); don't retry.
|
|
37
|
-
|
|
38
|
-
If you have a browser tool of your own you can use it for the walkthrough instead, but Recordful's page tools make smoother videos.
|
|
39
|
-
"screen" mode always shows Chrome's screen picker, which the user must answer.
|
|
5
|
+
const INSTRUCTIONS = `
|
|
6
|
+
Recordful records the user's browser so you can produce product demo videos. It also drives the page it records, so you don't need a browser tool of your own.
|
|
7
|
+
|
|
8
|
+
Typical flow for "record feature X" (the record_feature prompt has the full version):
|
|
9
|
+
1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
|
|
10
|
+
2. Call get_status. Recordful usually connects to you by itself; if it says NOT_CONNECTED, see below. It shows the tab you were handed (recorder.agent.armedTab), the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
|
|
11
|
+
3. Get to the starting page: navigate(url), then snapshot() to check it loaded. If no tab was handed to you, navigate opens a tab of your own (openedTab: true); page tools only ever act on that tab, a tab the user handed over, or the tab being recorded, never the user's other tabs.
|
|
12
|
+
4. To record in tab or tab-area mode, ask the user to click the Recordful toolbar icon in Chrome on that tab once. Chrome only lets an extension capture a tab after the user has invoked it there, and nothing can do this click for them. Screen and camera modes don't need it.
|
|
13
|
+
5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
|
|
14
|
+
6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
|
|
15
|
+
7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
|
|
16
|
+
8. Call stop_recording. Recordful opens its editor with the recording automatically.
|
|
17
|
+
9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
|
|
18
|
+
|
|
19
|
+
Screenshots to keep or share: navigate to the page (no click needed), then take_screenshot (mode "page" for the whole page). Pass look only if the user asked for one ("3d" for a 3D tilt, or a preset name); otherwise their default look is used: a wallpaper picked to match the screenshot's colours. It opens in Recordful's screenshot editor and returns no image, so you don't need screenshot to check it.
|
|
20
|
+
|
|
21
|
+
Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
|
|
22
|
+
|
|
23
|
+
Free and Pro:
|
|
24
|
+
- Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
|
|
25
|
+
- Recordful Pro only: uploads, cloud videos (get_video) and transcripts (get_transcript), and most hosted tools.
|
|
26
|
+
- get_status shows recorder.account.plan: "pro", "free", "signed-out", or "unavailable". Check it before you promise a link or a transcript. If it isn't "pro", record as usual, tell the user the video is open in Recordful's editor, and mention once that links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't call upload_recording or get_transcript, and don't retry them after PRO_REQUIRED or NOT_SIGNED_IN.
|
|
27
|
+
|
|
28
|
+
Everything else on recordful.app comes from the hosted Recordful server once the user is signed in to Recordful: list_videos, editing (get_timeline, apply_video_edits, clips, silences, fillers, zooms, look, captions, chapters, audio), seeing a video (get_storyboard, get_video_frame, get_mouse_events), renaming, sharing, folders, tags, comments, trash, analytics, members, webhooks and get_account. If they aren't listed, the user is signed out or offline. They answer with the hosted error codes: forbidden means Recordful Pro is needed (offer create_checkout_link, or recordful.app/upgrade) or the user may not change that video; unauthorized means sign in to Recordful again. They change or publish things for the user, so show them exactly what you'll do and wait for their yes before any change; deleting needs the exact video named. Comments are public to everyone who can watch the video: post only the text the user approved.
|
|
29
|
+
|
|
30
|
+
First connection on a computer:
|
|
31
|
+
- NOT_CONNECTED: Recordful connects by itself once AI agents is on and it has paired with you. Otherwise ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
|
|
32
|
+
- PAIRING_PENDING: Recordful opened a window asking the user to approve you. Tell them the 4-digit code from the error so they can check it matches, ask them to click Allow, then retry. This happens once per computer.
|
|
33
|
+
- PAIRING_DENIED: the user declined. Don't retry unless they ask.
|
|
34
|
+
- PERMISSIONS_NEEDED: Recordful's one-time browser permission to record hasn't been granted. Tell the user to turn AI agents off and on again in Recordful (popup → More → AI agents) and click Allow, then retry.
|
|
35
|
+
- NOT_ARMED from a page tool: call navigate(url) first. From start_recording, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
|
|
36
|
+
- NOT_SIGNED_IN or PRO_REQUIRED: uploads and transcripts need the user signed in to Recordful Pro. Relay the error's message (it says what still works); don't retry.
|
|
37
|
+
|
|
38
|
+
If you have a browser tool of your own you can use it for the walkthrough instead, but Recordful's page tools make smoother videos.
|
|
39
|
+
"screen" mode always shows Chrome's screen picker, which the user must answer.
|
|
40
|
+
|
|
41
|
+
Skills: step-by-step guides are resources at skill://recordful/<name>/SKILL.md (record-demo, recordful-motion, and edit-video, remove-mistakes, make-short, polish-demo for the hosted connector's editing tools); skills/list lists them. Read the one that fits before a multi-step task.
|
|
40
42
|
`.trim();
|
|
41
43
|
/**
|
|
42
44
|
* The recordful-motion skill as one message: its SKILL.md without the
|
|
@@ -52,24 +54,28 @@ export const motionGuide = (ask) => {
|
|
|
52
54
|
.filter(Boolean)
|
|
53
55
|
.join("\n\n");
|
|
54
56
|
};
|
|
55
|
-
export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
|
|
56
|
-
|
|
57
|
-
1. Understand it as a user sees it. If you or the user just built it, read the changes (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (for example a validation error). Leave out internals.
|
|
58
|
-
2. Get the app running. ${url ? `It should be at ${url}.` : "If it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves."} If it isn't running, start it in the background and wait until it answers.
|
|
59
|
-
3. Prepare test data. Use test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as demo+<timestamp>@example.com with a generated password). Never type the user's real credentials or personal data; if real credentials are unavoidable, ask the user to sign in themselves first.
|
|
60
|
-
4. Write a short shot list, 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.
|
|
61
|
-
5. Call get_status, and note recorder.account.plan: links and transcripts need "pro". If it's NOT_CONNECTED, ask the user to click the Recordful icon in Chrome; the first time only, they also turn on AI agents (Recordful popup → More → AI agents) and approve the pairing code you'll get back.
|
|
62
|
-
6. navigate to the starting page (it opens a tab of your own if none was handed over) and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
|
|
63
|
-
7. If the recording mode is tab or tab area, ask the user to click the Recordful icon on that tab once (Chrome requires it before a tab can be recorded). Then start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
|
|
64
|
-
8. If something goes wrong while recording (an error, the wrong page), pause, fix it, and resume. Stop and start over only if the mistake would confuse viewers.
|
|
65
|
-
9. stop_recording. Recordful opens its editor with the video. Tell the user it's ready and summarise what the video shows in one or two sentences.
|
|
57
|
+
export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
|
|
58
|
+
|
|
59
|
+
1. Understand it as a user sees it. If you or the user just built it, read the changes (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (for example a validation error). Leave out internals.
|
|
60
|
+
2. Get the app running. ${url ? `It should be at ${url}.` : "If it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves."} If it isn't running, start it in the background and wait until it answers.
|
|
61
|
+
3. Prepare test data. Use test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as demo+<timestamp>@example.com with a generated password). Never type the user's real credentials or personal data; if real credentials are unavoidable, ask the user to sign in themselves first.
|
|
62
|
+
4. Write a short shot list, 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.
|
|
63
|
+
5. Call get_status, and note recorder.account.plan: links and transcripts need "pro". If it's NOT_CONNECTED, ask the user to click the Recordful icon in Chrome; the first time only, they also turn on AI agents (Recordful popup → More → AI agents) and approve the pairing code you'll get back.
|
|
64
|
+
6. navigate to the starting page (it opens a tab of your own if none was handed over) and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
|
|
65
|
+
7. If the recording mode is tab or tab area, ask the user to click the Recordful icon on that tab once (Chrome requires it before a tab can be recorded). Then start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
|
|
66
|
+
8. If something goes wrong while recording (an error, the wrong page), pause, fix it, and resume. Stop and start over only if the mistake would confuse viewers.
|
|
67
|
+
9. stop_recording. Recordful opens its editor with the video. Tell the user it's ready and summarise what the video shows in one or two sentences.
|
|
66
68
|
10. If the plan is "pro" and the user wants to share it or check what was said: upload_recording (a cloud recording is already uploading), then get_transcript. On any other plan, don't attempt these; say once that shareable links and transcripts come with Recordful Pro.`;
|
|
67
|
-
export const createMcpServer = (deps) =>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
export const createMcpServer = (deps) => {
|
|
70
|
+
const server = createRecordfulServer({
|
|
71
|
+
transport: localTransport(deps.bridge),
|
|
72
|
+
copy: { instructions: INSTRUCTIONS, recordFeaturePrompt, motionGuide },
|
|
73
|
+
timeouts: deps.config,
|
|
74
|
+
logger: deps.logger,
|
|
75
|
+
version: deps.version,
|
|
76
|
+
desktop: desktopCall,
|
|
77
|
+
});
|
|
78
|
+
registerSkills(server);
|
|
79
|
+
return server;
|
|
80
|
+
};
|
|
75
81
|
//# sourceMappingURL=createMcpServer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"A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AAE,GAAG,UAAU,CAAC;SACrF,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,MAAM,CAAC,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,GAAY,EAAU,EAAE,CAAC,+DAA+D,OAAO;;;0BAG1H,GAAG,CAAC,CAAC,CAAC,mBAAmB,GAAG,GAAG,CAAC,CAAC,CAAA,6HAA6H;;;;;;;;+QAQuF,CAAC;AAEhR,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAmB,EAAa,EAAE;IAChE,MAAM,MAAM,GAAG,qBAAqB,CAAC;QACnC,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;QACtC,IAAI,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE;QACtE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,OAAO,EAAE,WAAW;KACrB,CAAC,CAAC;IACH,cAAc,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -37,6 +37,7 @@ export declare const Method: {
|
|
|
37
37
|
readonly MembersList: "members.list";
|
|
38
38
|
readonly MembersInvite: "members.invite";
|
|
39
39
|
readonly StorageGet: "storage.get";
|
|
40
|
+
readonly CloudMcp: "cloud.mcp";
|
|
40
41
|
};
|
|
41
42
|
export type Method = (typeof Method)[keyof typeof Method];
|
|
42
43
|
export declare const METHODS: readonly Method[];
|
package/dist/protocol/methods.js
CHANGED
|
@@ -44,6 +44,9 @@ export const Method = {
|
|
|
44
44
|
MembersList: "members.list",
|
|
45
45
|
MembersInvite: "members.invite",
|
|
46
46
|
StorageGet: "storage.get",
|
|
47
|
+
// One JSON-RPC message for recordful.app/mcp, sent with the extension's sign-in
|
|
48
|
+
// (src/core/hostedTools.ts proxies the hosted tools through it).
|
|
49
|
+
CloudMcp: "cloud.mcp",
|
|
47
50
|
};
|
|
48
51
|
export const METHODS = Object.values(Method);
|
|
49
52
|
export const isMethod = (value) => METHODS.includes(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/protocol/methods.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,gFAAgF;AAEhF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,yEAAyE;IACzE,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,uEAAuE;IACvE,QAAQ,EAAE,WAAW;IACrB,iFAAiF;IACjF,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,yDAAyD;IACzD,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,kBAAkB,EAAE,qBAAqB;IACzC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE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,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,gFAAgF;IAChF,iEAAiE;IACjE,QAAQ,EAAE,WAAW;CACb,CAAC;AAGX,MAAM,CAAC,MAAM,OAAO,GAAsB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAmB,EAAE,CACxD,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
package/dist/skill.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
1
2
|
export declare const SKILLS: Record<string, Record<string, string>>;
|
|
2
3
|
/** The record-demo skill's SKILL.md. */
|
|
3
4
|
export declare const SKILL_TEXT: string;
|
|
5
|
+
/** Each skill as a skills/list entry (the io.modelcontextprotocol/skills extension, SEP-2640). */
|
|
6
|
+
export declare const SKILL_ENTRIES: {
|
|
7
|
+
uri: string;
|
|
8
|
+
frontmatter: Record<string, string>;
|
|
9
|
+
resources: {
|
|
10
|
+
uri: string;
|
|
11
|
+
digest: string;
|
|
12
|
+
size: number;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
15
|
+
/**
|
|
16
|
+
* Serves every skill file as a resource at skill://recordful/<name>/<file>,
|
|
17
|
+
* and the skills extension's skills/list and skills/get. Call before connect.
|
|
18
|
+
*/
|
|
19
|
+
export declare const registerSkills: (server: McpServer) => void;
|
package/dist/skill.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
// The Recordful skills
|
|
2
|
-
//
|
|
3
|
-
// scripts/sync-skill.mjs
|
|
1
|
+
// The Recordful skills, by skill and by file inside it: what `recordful-mcp
|
|
2
|
+
// install` writes for the AI app, and what registerSkills serves over MCP.
|
|
3
|
+
// SKILLS is generated from skills/ by scripts/sync-skill.mjs (a test keeps
|
|
4
|
+
// them equal); the rest is written by hand. recordful-ee's hosted server
|
|
5
|
+
// serves a verbatim copy of this file, so keep it self-contained.
|
|
6
|
+
import { createHash } from "node:crypto";
|
|
7
|
+
import { ErrorCode, McpError } from "@modelcontextprotocol/sdk/types.js";
|
|
8
|
+
import { z } from "zod";
|
|
4
9
|
export const SKILLS = {
|
|
10
|
+
"edit-video": {
|
|
11
|
+
"SKILL.md": "---\nname: edit-video\ndescription: Edit a Recordful video on recordful.app - cuts, zooms, captions, frame, speed - by looking at it, planning the change and applying it in one versioned call. Use when the user asks to edit, trim, tighten, fix or change a video that is already on recordful.app (\"cut the first 10 seconds\", \"zoom in on the settings page\", \"make it look nicer\").\n---\n\n# Edit a Recordful video\n\nThe edit tools are on Recordful's hosted connector (https://recordful.app/mcp) and need Recordful Pro and write access. Every edit is undoable in the editor; the recording's files never change.\n\n## 1. Find the video\n\n`search_videos` (by title or by what was said) or `list_videos`, then `get_video`. If several match, ask which one.\n\n## 2. Look before you change\n\n- `get_timeline`: clips, zooms, captions, frame, background, audio, and the edit's `version`. Every time is in seconds of the video as it plays now.\n- `get_storyboard`: 16 frames on one sheet to see what happens when. `get_video_frame` looks closer at one moment. On `not_ready`, call again after `retryAfterSeconds`.\n- `get_transcript` (with `query` on long videos) to find a moment by what was said.\n\n## 3. Plan and show it\n\nWrite the change as a short list of operations with their times (for example: cut 0-4.5, zoom 12-18 on the Save button, captions on). Show it to the user and wait for their yes.\n\n## 4. Apply it in one call\n\n`apply_video_edits` with `videoId`, `operations` (each `{ type, ... }`: `cut_range`, `add_zoom`, `set_frame`, `set_background`, `set_aspect_ratio`, `add_captions`, `set_clip_speed`, and the rest its description lists) and `expectedVersion` from `get_timeline`. It is all or nothing, and the operations run in order on the edit the one before left, so after a `cut_range` later times move earlier: put cuts last, or work from the end of the video backwards.\n\n- `invalid_argument`: nothing applied; fix the named operation and retry.\n- `edit_conflict`: the video changed meanwhile (the user may be editing it). Read `get_timeline` again, re-plan, retry.\n\n## 5. Check it\n\n`get_storyboard` again (or `get_video_frame` at the changed moments) and the returned `timeline`. Then give the user `get_live_preview_link` or the video's `viewUrl` and say in a line what changed.\n\n## Rules\n\n- Show the plan before any change. Never change a video the user didn't name.\n- One `apply_video_edits` per plan, not one call per operation.\n- Don't retry after `PRO_REQUIRED` or `forbidden`: only the person who recorded it, or the workspace owner, can edit it.\n\nTool reference: [editing](https://help.recordful.app/docs/ai-agents/tools/editing), [see](https://help.recordful.app/docs/ai-agents/tools/see), [library](https://help.recordful.app/docs/ai-agents/tools/library).\n"
|
|
12
|
+
},
|
|
13
|
+
"make-short": {
|
|
14
|
+
"SKILL.md": "---\nname: make-short\ndescription: Turn a Recordful video into a vertical short (9:16, captions) for TikTok, YouTube Shorts, Reels or LinkedIn by finding its best moment and cutting to it. Use when the user asks for a short, a clip, a reel, a teaser or a vertical version of a video on recordful.app.\n---\n\n# Make a short from a Recordful video\n\nThese tools are on Recordful's hosted connector (https://recordful.app/mcp) and need Recordful Pro, write access and a transcript (if `get_transcript` says `status: \"none\"`, ask the user to transcribe it on its page on recordful.app).\n\n## 1. Copy, don't overwrite\n\n`duplicate_video` and work on the copy, so the full video stays as it is. It plays from the same files and takes no more storage.\n\n## 2. Pick the moment\n\nRead `get_transcript` (`format: \"vtt\"` for times) and `get_summary` if it already has one (generating one spends AI credits, so ask first). Pick one moment of 15 to 60 seconds that stands on its own: a clear hook in the first 3 seconds, one idea, a visible result. Check it with `get_storyboard` over that `start`/`end`. Tell the user the moment and its first line, and wait for their yes.\n\n## 3. Cut to it\n\n`get_timeline` for the `version` and length, then one `apply_video_edits` on the copy with `expectedVersion` and, in this order:\n\n1. `cut_range` with `ranges`: everything after the moment, then everything before it (times as the video plays now, before any of them is cut).\n2. `set_aspect_ratio` with `ratio: \"9:16\"`.\n3. `add_captions`, then `set_caption_style` (for example `size: 56`, `plate: true`, `animation: \"pop\"`); captions matter most in a short, as most people watch muted.\n\nAdd `add_zoom` on the key action if the screen is too small to read at 9:16 (`follow: true` keeps the pointer in view), and `remove_fillers` to tighten it.\n\n## 4. Check and hand over\n\n`get_storyboard` on the copy: the action must stay in frame at 9:16. Then give the user `get_live_preview_link`, and offer to retitle the copy with `update_video` (for example \"<title> - short\"). The user downloads it from the editor's export.\n\n## Rules\n\n- Never cut the original: always the copy.\n- One moment per short; offer a second short rather than stitching two.\n\nTool reference: [library](https://help.recordful.app/docs/ai-agents/tools/library), [editing](https://help.recordful.app/docs/ai-agents/tools/editing), [captions](https://help.recordful.app/docs/ai-agents/tools/captions), [see](https://help.recordful.app/docs/ai-agents/tools/see).\n"
|
|
15
|
+
},
|
|
16
|
+
"polish-demo": {
|
|
17
|
+
"SKILL.md": "---\nname: polish-demo\ndescription: Polish a Recordful screen recording into a finished product demo - zooms on the clicks, a background and frame, click effects, a cleaner voice, captions and chapters. Use when the user asks to polish, finish, make professional or \"make it look good\" a demo or walkthrough video on recordful.app.\n---\n\n# Polish a demo on Recordful\n\nThese tools are on Recordful's hosted connector (https://recordful.app/mcp) and need Recordful Pro and write access. Captions and chapters also need a transcript (ask the user to transcribe the video on its page if `get_transcript` says `status: \"none\"`).\n\n## 1. See what it has\n\n`get_timeline` (zooms, frame, background, captions, audio and its `version`), `get_storyboard` to see the screens, and `get_audio` for the voice settings. Keep what the user already set; polish only what is missing.\n\n## 2. Propose one pass\n\nTell the user, in a few lines, what you will do from this list, and wait for their yes:\n\n- **Zooms**: `generate_auto_zooms` makes one on each burst of clicks (fails if no clicks were recorded; then place `add_zoom` by hand on the key moments from the storyboard).\n- **Look**: `list_backgrounds`, then `set_background` (a gradient or image that suits the product's colours) and `set_frame` (for example `padding: 60`, `radius: 16`, `shadow: 40`).\n- **Clicks**: `set_cursor_effects` (for example `effect: \"ripple\"`; a `sound` only if the user wants one).\n- **Voice**: `set_voice_enhancement` with `noiseAndEcho: true`, `mouthSounds: true`, `breaths: true`.\n- **Captions**: `add_captions`, then `set_caption_style`.\n- **Chapters**: for videos over about 2 minutes, `get_chapters` (or the AI ones in `get_summary`, which spends credits if none exists yet: ask first), then `set_chapters` with a title at each new part.\n- **Tighten** (optional): `remove_fillers` and `remove_silences`; for real mistakes use the remove-mistakes skill.\n\n## 3. Apply\n\nRun the edit operations in one `apply_video_edits` with `expectedVersion` from `get_timeline`: `generate_auto_zooms`, `set_background`, `set_frame`, `set_cursor_effects`, `set_voice_enhancement`, `add_captions`, `set_caption_style` (and `remove_fillers` / `remove_silences` last, as cuts move later times). Then `set_chapters` on its own. On `edit_conflict`, read again and retry.\n\n## 4. Check\n\n`get_storyboard` and `get_video_frame` on a zoomed moment, then give the user `get_live_preview_link` and a line per change. The voice clean-up is processed in the browser as the video plays and in its export, so it doesn't show in frames.\n\n## Rules\n\n- Never overwrite a look or captions the user set without asking.\n- Pick colours from the product being shown, not your defaults.\n\nTool reference: [zooms](https://help.recordful.app/docs/ai-agents/tools/zooms), [look](https://help.recordful.app/docs/ai-agents/tools/look), [audio](https://help.recordful.app/docs/ai-agents/tools/audio), [captions](https://help.recordful.app/docs/ai-agents/tools/captions).\n"
|
|
18
|
+
},
|
|
5
19
|
"record-demo": {
|
|
6
20
|
"SKILL.md": "---\nname: record-demo\ndescription: Record a product demo video of a feature with Recordful (Chrome). Use when the user asks to record, film or make a video or demo of a feature, flow or page (\"record how sign-in works\", \"make a demo of the new billing page\", \"record the feature you just built\"), including right after you built the feature. Also for a Recordful screenshot of a page (\"screenshot the pricing page\", \"take a 3D screenshot\").\n---\n\n# Record a product demo with Recordful\n\nRecordful is a Chrome extension that records the browser and opens the result in its editor. The `recordful` MCP server lets you control it: recorder tools (`get_status`, `start_recording`, `pause_recording`, `resume_recording`, `add_marker`, `stop_recording`) and page tools that act on the tab being recorded (`navigate`, `snapshot`, `click`, `type`, `press`, `scroll`, `wait_for`, `screenshot`). You don't need a browser tool of your own.\n\nIf the Recordful tools aren't loaded in this session (the app needs a restart to pick up a new MCP server), use the same steps through the shell: `npx -y recordful-mcp start | pause | resume | stop`, `recordful-mcp upload`, `recordful-mcp transcript` (add `--json` for machine-readable output; `recordful-mcp guide --json` lists everything). Page actions (navigate, click, type) are MCP tools, or `recordful-mcp call page.click '{\"ref\":\"e3\"}'`. Never fall back to your own browser tool to start or stop recording.\n\n## 1. Work out what to show\n\nUnderstand the feature the way a user sees it. If you or the user just built it, read the change (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (a validation error, an empty state). Leave out internals.\n\n## 2. Get the app running\n\nIf it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves. If it isn't running, start it in the background and wait until the URL answers.\n\n## 3. Prepare test data\n\nUse test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as `demo+<timestamp>@example.com` with a generated password). Never type the user's real credentials or personal data. If real credentials are unavoidable, ask the user to sign in themselves first.\n\n## 4. Write a short shot list\n\nPlan 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.\n\n## 5. Connect\n\nCall `get_status`. Recordful connects to you by itself once AI agents is on and it has paired with you.\n\nThe first time on a computer:\n- `NOT_CONNECTED`: ask the user to click the Recordful icon in Chrome. If that doesn't connect, they turn on AI agents in Recordful (popup → More → AI agents, or paste `chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html` into Chrome's address bar), then clicks the icon again.\n- `PAIRING_PENDING`: Recordful opened a window asking to approve you. Tell the user the 4-digit code from the error so they can check it matches, and ask them to click Allow. Then retry.\n- `PAIRING_DENIED`: stop and ask the user what they'd like to do.\n\nIf Recordful or the MCP server isn't installed, point the user to https://github.com/iKislay/recordful-mcp#install.\n\n## 6. Record\n\n1. `navigate` to the starting page and `snapshot` it. If no tab was handed to you, `navigate` opens a tab of your own; page tools never touch the user's other tabs. Make the starting state clean (signed out for a sign-in demo, no leftover data or open dialogs).\n2. If the recording mode (`get_status`) is tab or tab area, ask the user to click the Recordful icon on that tab once: Chrome requires it before an extension can record a tab. Then `start_recording`. It uses the user's Recordful settings (mode, microphone, camera, countdown) and returns once capture is live. `NOT_ARMED` means that click hasn't happened yet.\n3. Follow the shot list with the page tools. Take a fresh `snapshot` after anything that changes the page; refs from before a navigation stop working. Use `wait_for` so each result is on screen before you move on.\n4. Call `pause_recording` whenever you need to think or plan, and `resume_recording` right before the next action, so the video has no dead air. Call `add_marker` with a few words at each moment worth finding again (a result appearing, an error shown); `stop_recording` returns them with their times.\n5. If something goes wrong (an error, the wrong page), pause, fix it, and resume. Start over only if the mistake would confuse viewers.\n6. `stop_recording`. Recordful opens its editor with the video.\n\n## 7. Share it or read it back (Recordful Pro)\n\n`get_status` shows `recorder.account.plan`. Only on `\"pro\"`:\n- `upload_recording` puts a local recording on recordful.app and returns its link (a cloud recording is already uploading; `stop_recording` says which).\n- `get_transcript` returns what was said, to check the demo or write notes from it.\n\nOn `\"free\"` or `\"signed-out\"`, don't call these. Recording and the editor work on every plan; say once that shareable links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't retry after `PRO_REQUIRED` or `NOT_SIGNED_IN`.\n\n## Rules\n\n- Ask the user before you start recording, and again before you upload.\n- Test data only. Never type the user's real credentials or personal data into the page.\n- Never ask the user to paste a token, password or key into the chat; Recordful holds its own sign-in and you never see it.\n- Don't retry after `PRO_REQUIRED`, `NOT_SIGNED_IN` or `PAIRING_DENIED`.\n\n## 8. Wrap up\n\nTell the user the video is open in Recordful's editor (and its link, on Pro), and summarise what it shows in one or two sentences.\n\n## Screenshots\n\nFor \"take a screenshot of X\": `navigate` to the page (no click needed), then call `take_screenshot` once. Use `mode: \"page\"` for the whole page. Pass `look` only if the user asked for a look: `\"3d\"` for a 3D tilt, or a preset (Clean, Window, Glass, Spotlight, Midnight, Bold, None); otherwise leave it out and their default look is used. It opens in Recordful's screenshot editor and returns no image, so don't take another screenshot to check it. Tell the user it is open there.\n\nFor a screenshot of something outside the browser (\"my Figma window\", \"my whole screen\"): no icon click. Call `take_screenshot` with `source: \"window\"` and `window` set to part of its title or app name (call `list_windows` if unsure), `source: \"screen\"` (optionally `display: 2`), or `source: \"area\"` to let the user drag one. It needs the Recordful desktop app with Settings → AI agents → \"Let AI agents take screenshots\" on; if the tool says it isn't on, ask the user to turn it on and retry.\n"
|
|
7
21
|
},
|
|
@@ -9,8 +23,55 @@ export const SKILLS = {
|
|
|
9
23
|
"SKILL.md": "---\nname: recordful-motion\ndescription: Make Recordful Motion layers - titles, lower thirds, callouts, number callouts, chapter cards and end cards that play over a screen recording - as HyperFrames compositions that look directed, not generated. Use when someone asks for motion graphics, a title, a lower third, a callout or text animation on a Recordful video.\n---\n\n# Recordful Motion\n\nA motion layer is a HyperFrames composition laid over the video in Recordful's editor (web and desktop). Recordful draws it frame by frame inside the editor, so it stays editable and needs no render step. Your job is the composition, and the bar is that it looks directed by a motion designer, not generated.\n\nGenerated motion all looks the same for three reasons: the brief was adjectives, the motion was improvised property tweens instead of planned shots, and nobody watched the render. This skill removes all three. Follow the steps in order.\n\n## 1. Turn the ask into numbers\n\nBefore any markup, write the layer's spec in your reply (keep it short):\n\n```text\nJOB: what the viewer must know or feel when it leaves, one line\nWHEN: the moment in the recording it serves (from the transcript or the person), and its length in seconds\nFRAME: the video's width x height (the composition's data-width/data-height match it); the safe area it sits in\nLOOK: the brand's own colours and type as hex and named faces, sizes in px at that frame; never \"modern\" or \"clean\"\nSHOTS: one line per shot from references/shots.md: its name, frames, the one hero move, what is read and for how long\nBANNED: references/review.md's defaults, plus anything this video must not look like\n```\n\nColours and type come from, in order: the person, the product being recorded (its site or app), the video itself. Never from your defaults.\n\n## 2. Build from a shot, not from scratch\n\n- Every shot in `references/shots.md` names a HyperFrames registry block to start from: `npx hyperframes add <name>`, then change it to the spec. A registry block was made by a designer; your first improvisation was not.\n- One hero move per shot. Secondary moves travel 50-70% as far, start 100-200 ms after it, and everything else holds still.\n- The root stays transparent (a layer over a video must not hide it), and it is the video's size.\n- Text that must be read is at least 2.6% of the frame's short side (28 px at 1080) and holds 0.5 s plus 0.3 s a word.\n\n## 3. Watch it, then fix it\n\n`npx hyperframes check --json`, then `npx hyperframes snapshot --at <times>` at each shot's start, its landing and its exit. Look at every still as a first-time viewer would, then go through `references/review.md` and fix every P0 before you hand it over. Never say it is done without having looked.\n\n## 4. Hand it over\n\nRecordful plays a layer without the network: everything it needs is inside the file. Use HyperFrames' bundled fonts or embed the brand's as `@font-face` data URLs, inline every image as a data URL, and keep the file under 400 KB. The person adds it in the editor's Motion panel (HyperFrames composition), where the words and numbers you put in `id`'d elements or a `CONFIG` object become fields they can edit.\n\n## Sources\n\nThe shot recipes and review rules are drawn from HyperFrames' motion, spec and review references (HeyGen, Apache-2.0), iart.ai's kinetic-typography reveal recipes (MIT) and bang-motion's anti-slide-deck rules (MIT), measured and restated for overlays on screen recordings.\n",
|
|
10
24
|
"references/review.md": "# Review\n\nWatch the layer as a first-time viewer, once, at full speed, probably on a phone. Snapshot each shot's start, landing and exit (`npx hyperframes snapshot --at …`) and look at every still.\n\n## Banned by default\n\nThese are where generated motion lands when nothing was decided. Each is banned unless the brand's own material or the person's reference uses it, and then only as they use it:\n\n- glow, bloom, neon, lens flares, glowing orbs, floating particles as decoration;\n- purple or blue gradients, mesh gradients, glass cards over everything;\n- everything centred; everything fading in at once; every element fading and sliding up;\n- the same `power2.out` 0.5 s on every move; linear moves that are not rotation or progress;\n- text that moves while it is read; titles that keep drifting, breathing or pulsing after they land;\n- ALL CAPS wide bold type on every line, the same letter stagger on every title, a full stop after every two-word phrase;\n- click rings and bouncing UI;\n- the same transition on every seam; a wipe of a flat coloured slab at every cut;\n- three cards in a row, a KPI grid, a title over a dimmed screenshot, bullet points;\n- corner labels, frame borders, HUD readouts as decoration; the logo docked in a corner.\n\nAfter the first look, name every default the frames show, from this list or not, add it to your BANNED line, and fix it.\n\n## Symptoms and fixes\n\n| You see | Change |\n| --- | --- |\n| It feels like slides | one statement of five words or fewer and one object per shot; enter the next shot through something on screen; cut a move mid-flight |\n| It feels generated | vary the eases by role; vary the title entrances; land titles and hold them still |\n| Too fast | slow every move to 0.7x of its speed, nothing else |\n| Too busy | remove a third of the motion; keep the moves that lead the eye |\n| The text is hard to read | cut words, never shrink type; add a dark pocket behind light text instead of a glow |\n| The eye has nowhere to go | one focal point per frame; the camera or the type leads, not both |\n| The ending fades out | hold the last frame at least 2 s; end on the line, not on motion |\n\n## Notes\n\nWrite each problem as one line, `t=1.2s · where · problem → exact change`, and rank it: **P0** breaks the read (unreadable, wrong, a banned default in the hero moment), **P1** weakens it (a dead stretch, a soft landing), **P2** polish. Fix every P0 and the P1s worth their time, then snapshot only what you changed. Never score the layer out of 10: a score finds nothing to fix.\n",
|
|
11
25
|
"references/shots.md": "# Shots\n\nEach shot: when to use it, how it is built (numbers are starting points measured from professional films, not laws), and the HyperFrames registry block to start from (`npx hyperframes add <name>`; `(c)` is a component you merge into a scene). Eases are GSAP names.\n\n## Timing that applies to every shot\n\n- **Ease by role**: an arrival lands on a long tail (`expo.out`, `power4.out`); a camera move or colour change eases both ways (`power2.inOut`); a zoom-through or an exit accelerates (`power3.in`). One `power2.out` at 0.5 s on everything is the single biggest tell of generated motion. Linear only for rotation, progress and constant speed.\n- **Arrive slow, leave clean**: exits are 40-50% shorter than entrances, one smooth move (never slide, stop, then leave).\n- **Overlap**: the next element starts when the previous is 30-50% done. Fully sequential looks robotic; all at once looks cheap.\n- **Stagger**: letters 20-40 ms apart, words 60-120 ms, lines 60-100 ms, list items 40-80 ms.\n- **Fast moves** take 0.3-0.6 s and carry motion blur at their fastest frame: 6-12 px on text, 15-20 px full-frame (`data-motion-blur=\"on\"` on the root).\n- **Springs** by damping: 1.0 never bounces, 0.7-0.85 reads premium, 0.4-0.6 playful. Position and scale may bounce; opacity and colour never do.\n\n## Text in\n\nVary the entrance within one video: never the same one for every line.\n\n| Shot | Use it for | Build | Start from |\n| --- | --- | --- | --- |\n| Word blur-in | a statement, a title | per word `blur(6px)`→0 and opacity 0→1 in 0.13 s, words 0.067 s apart, no movement | `blur-in` (c), `soft-blur-in` (c) |\n| Line blur-in | a short title | the whole line 8 px→0 blur in 0.13-0.2 s | `blur-in` (c) |\n| Ink-in | a calm sentence | per word from light grey to ink, 0.07-0.1 s apart, no movement | `per-word-crossfade` (c) |\n| Mask rise | a headline with weight | each line rises from behind a mask: `translateY(110%)`→0 in 0.6 s `expo.out`, lines 0.08 s apart | `per-word-rise` (c), `lt-mask-reveal` |\n| Name by letter | a person's or product's name | per letter opacity 0.3→1 with a slight blur, 0.1 s apart | `bottom-up-letters` (c) |\n| Slot roll | one word that changes (\"faster / safer / cheaper\") | that word rolls through options like a slot machine, about 0.1 s a roll, then lands | `slot-machine-roll` (c), `kinetic-type-swap` (c) |\n| Clip wipe | a label, a tag | `clip-path: inset(0 100% 0 0)`→`inset(0)` in 0.6 s `expo.out` | `lt-clean-bar` |\n\n**Holds**: a read line holds 0.5 s + 0.3 s a word; the video's last line at least 2 s. A landed title is dead still: the motion moves to the next element. **Out**: blur-out and fade in 0.13-0.25 s, word by word or with the scene's move.\n\n**Size**: titles at 4-9% of the frame height, one or two lines; one highlighted word in the accent colour, and only when the word carries the meaning.\n\n## Over the recording\n\n| Shot | Use it for | Build | Start from |\n| --- | --- | --- | --- |\n| Lower third | naming who speaks or what is shown | the bottom 30% of the frame, left-aligned in the safe area; in over 0.4 s `power2.out`, out over 0.35 s `power2.in`; holds while it is relevant, gone in 8 s | `lt-clean-bar`, `lt-dark-card`, `lt-soft-pill`, `lt-kicker-name` |\n| Callout | pointing at one control in the UI | an arrow or circle drawn on (stroke 0→full in 0.4 s), the label lands 0.1-0.2 s after; placed by the control, not centred | `hw-arrow` (c), `hw-callout-circle` (c), `hw-box-label` (c) |\n| Highlight a word | the word that matters in a sentence on screen | a marker sweeps under it in 0.3-0.5 s after the sentence lands | `marker-highlight` (c), `hw-underline` (c), `mk-callout-highlight` |\n| Number callout | a number said out loud (\"73% fail\") | the number counts up over 0.8-1.2 s `power2.out` and lands big (8-15% of the frame height), its label 0.15 s after; on screen within 2.5 s, then held | `count-up` (c), `number-pop-in` (c), `mk-progress-stat` |\n| Click accent | a click that changes the screen | none by default: the recording's own click effect does this. Click rings are a generated-motion tell | — |\n\n## Full frame\n\n| Shot | Use it for | Build | Start from |\n| --- | --- | --- | --- |\n| Chapter card | a new part of the video | one or two words at 4-9% height, in and held 0.4-1 s, out with the next shot's move; never a slide with a heading and bullets | `hw-title`, `yt-prism-title` |\n| Title card | the opening | the title arrives with a word or mask entrance, holds dead still, leaves into the recording | `canopy-part-title`, `yt-prism-title` |\n| End card | the close | the mark lands in the last 5-10%, centred, 15-30% of the frame's width, performed (a fill rises through it, a wipe brings the wordmark), then the call to action held 1.5-3 s | `logo-outro`, `logo-brand-close` (c) |\n\n## Transitions with a cause\n\nUse 3-5 kinds in one video, each caused by something on screen; at most a third of the seams are hard cuts, and two worlds never crossfade.\n\n| Transition | Build | Start from |\n| --- | --- | --- |\n| Zoom through a button | the camera tracks to the button with blur (0.6 s), then the button scales from about 8% to 250% of the frame in 0.35 s, strong ease-in; its fill becomes the next frame | `zoom-through-transition` (c) |\n| Object becomes the world | a card grows past the frame in 0.65 s ease-in-out, its radius shrinking; around it blurs about 15 px and fades in 0.3 s; the new content fades in while it still grows | `transitions-scale` |\n| Morph | one container widens into the next (110 to 880 px in 0.2 s `power3.out`) with a horizontal blur 12→0 | `transitions-scale` |\n| Whip | a horizontal or vertical smear of 0.13-0.3 s; the arriving element lands blurred and sharpens in about 0.13 s | `whip-pan`, `whip-pan-cut` (c) |\n| Iris from the click | `clip-path: circle()` opens from the clicked point onto the next view in 0.15 s | `iris-reveal` (c) |\n| Colour flood | the hero stays while the whole ground changes colour in about 0.4 s `power2.inOut` | `transitions-radial` |\n| Dip cut | the outgoing frame darkens about 40% for 3 frames before a hard cut, so the cut reads as meant | — |\n\n## Punch-ins on the recording\n\nRecordful's own zooms do this on the video itself (Zoom tool, or zooms from clicks). A motion layer never re-implements them; when a shot needs the camera to close in, say so to the person and leave it to the editor's zoom.\n"
|
|
26
|
+
},
|
|
27
|
+
"remove-mistakes": {
|
|
28
|
+
"SKILL.md": "---\nname: remove-mistakes\ndescription: Clean the mistakes out of a Recordful video - retakes, false starts, wrong words, long pauses, ums and uhs - using its transcript. Use when the user asks to remove mistakes, flubs, retakes, dead air, silences or filler words from a video on recordful.app, or to \"clean it up\".\n---\n\n# Remove mistakes from a Recordful video\n\nThese tools are on Recordful's hosted connector (https://recordful.app/mcp) and need Recordful Pro, write access and a transcript. If `get_transcript` says `status: \"none\"`, ask the user to transcribe the video on its page on recordful.app; the connector never starts one.\n\n## 1. Read what was said\n\n`get_transcript` with `format: \"words\"`: every word still heard, with its `index` and when it plays now. Indexes never change as words are cut, so you can plan every cut from this one read.\n\n## 2. Find the mistakes\n\n- Retakes and false starts: the same sentence said twice; keep the last, clean take.\n- Wrong or abandoned sentences (\"no wait\", \"let me redo that\").\n- Misheard words that only need the captions fixed, not a cut.\n\nList each as a word range (`fromWordIndex` to `toWordIndex`, both included) with the words it removes, show the list to the user and wait for their yes.\n\n## 3. Cut\n\n1. `cut_clip_by_transcript` with `videoId` and `wordRanges`: the cuts fall in the quiet between words. Pass `expectedVersion` from `get_timeline` to apply only to the edit you read.\n2. `remove_fillers`: cuts um, uh and a \"like\" set off by commas. `on: false` puts them back.\n3. `get_silences` (default `minSeconds` is the editor's long pause), then `remove_silences` with `minSeconds` (and optional `keepSeconds`, how much of each pause stays). It replaces any silences it cut before.\n4. If the video has captions, fix misheard words with `update_transcript_words` (`find` / `replace` pairs); the stored transcript stays as heard.\n\nOn `edit_conflict`, read again and redo the step; on `not_ready`, the transcript is missing or too old for word timings.\n\n## 4. Check\n\n`get_transcript` with `format: \"words\"` again: the cut words are gone. Spot-check the seams with `get_video_frame`, then give the user the video's `viewUrl` and a line on what was removed (how many retakes, fillers and seconds of silence).\n\n## Rules\n\n- Never cut meaning: when unsure whether a line is a mistake, ask.\n- Show the cuts before making them. Every cut can be undone in the editor.\n\nTool reference: [cleanup](https://help.recordful.app/docs/ai-agents/tools/cleanup), [clips](https://help.recordful.app/docs/ai-agents/tools/clips), [captions](https://help.recordful.app/docs/ai-agents/tools/captions).\n"
|
|
12
29
|
}
|
|
13
30
|
};
|
|
14
31
|
/** The record-demo skill's SKILL.md. */
|
|
15
32
|
export const SKILL_TEXT = SKILLS["record-demo"]["SKILL.md"];
|
|
33
|
+
const PREFIX = "skill://recordful";
|
|
34
|
+
/**
|
|
35
|
+
* A SKILL.md's frontmatter as JSON.
|
|
36
|
+
* shortcut: flat one-line `key: value` fields only, as every Recordful skill has; parse real YAML if one needs more.
|
|
37
|
+
*/
|
|
38
|
+
const frontmatterOf = (text) => Object.fromEntries((/^---\n([\s\S]*?)\n---\n/.exec(text)?.[1] ?? "")
|
|
39
|
+
.split("\n")
|
|
40
|
+
.flatMap((line) => {
|
|
41
|
+
const field = /^([\w-]+):\s*(.*)$/.exec(line);
|
|
42
|
+
return field ? [[field[1], field[2].trim()]] : [];
|
|
43
|
+
}));
|
|
44
|
+
/** Each skill as a skills/list entry (the io.modelcontextprotocol/skills extension, SEP-2640). */
|
|
45
|
+
export const SKILL_ENTRIES = Object.entries(SKILLS).map(([name, files]) => ({
|
|
46
|
+
uri: `${PREFIX}/${name}/SKILL.md`,
|
|
47
|
+
frontmatter: frontmatterOf(files["SKILL.md"] ?? ""),
|
|
48
|
+
resources: Object.entries(files).map(([file, text]) => ({
|
|
49
|
+
uri: `${PREFIX}/${name}/${file}`,
|
|
50
|
+
digest: `sha256:${createHash("sha256").update(text, "utf8").digest("hex")}`,
|
|
51
|
+
size: Buffer.byteLength(text, "utf8"),
|
|
52
|
+
})),
|
|
53
|
+
}));
|
|
54
|
+
/**
|
|
55
|
+
* Serves every skill file as a resource at skill://recordful/<name>/<file>,
|
|
56
|
+
* and the skills extension's skills/list and skills/get. Call before connect.
|
|
57
|
+
*/
|
|
58
|
+
export const registerSkills = (server) => {
|
|
59
|
+
for (const [name, files] of Object.entries(SKILLS)) {
|
|
60
|
+
for (const [file, text] of Object.entries(files)) {
|
|
61
|
+
const uri = `${PREFIX}/${name}/${file}`;
|
|
62
|
+
const description = file === "SKILL.md" ? frontmatterOf(text).description : `Part of the ${name} skill.`;
|
|
63
|
+
server.registerResource(`${name}/${file}`, uri, { mimeType: "text/markdown", description }, () => ({
|
|
64
|
+
contents: [{ uri, mimeType: "text/markdown", text }],
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
server.server.registerCapabilities({ extensions: { "io.modelcontextprotocol/skills": {} } });
|
|
69
|
+
server.server.setRequestHandler(z.object({ method: z.literal("skills/list"), params: z.object({ cursor: z.string().optional() }).passthrough().optional() }), () => ({ skills: SKILL_ENTRIES }));
|
|
70
|
+
server.server.setRequestHandler(z.object({ method: z.literal("skills/get"), params: z.object({ uri: z.string() }).passthrough() }), ({ params }) => {
|
|
71
|
+
const skill = SKILL_ENTRIES.find((entry) => entry.uri === params.uri);
|
|
72
|
+
if (!skill)
|
|
73
|
+
throw new McpError(ErrorCode.InvalidParams, `No skill at ${params.uri}`);
|
|
74
|
+
return { skill };
|
|
75
|
+
});
|
|
76
|
+
};
|
|
16
77
|
//# sourceMappingURL=skill.js.map
|
package/dist/skill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,2EAA2E;AAC3E,yEAAyE;AACzE,kEAAkE;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAA2C;IAC5D,YAAY,EAAE;QACZ,UAAU,EAAE,yvFAAyvF;KACtwF;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,8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"description": "Let any AI app record, upload and read back product demos with Recordful: an MCP server and CLI that drive the Recordful Chrome extension.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kislay (https://recordful.app)",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
-
import type { Call } from "../workflows.js";
|
|
4
|
-
type Handle = (fn: () => Promise<unknown>) => Promise<CallToolResult>;
|
|
5
|
-
export declare const registerLibraryTools: (server: McpServer, call: Call, handle: Handle) => void;
|
|
6
|
-
export {};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { BridgeError, ErrorCode } from "../protocol/errors.js";
|
|
2
|
-
import { Method } from "../protocol/methods.js";
|
|
3
|
-
import { parseVideoParams, videoParams } from "../protocol/video.js";
|
|
4
|
-
const PRO = "Recordful Pro only (check get_status recorder.account.plan first).";
|
|
5
|
-
const ASK = "Show the user exactly what you will change and wait for their yes first.";
|
|
6
|
-
export const registerLibraryTools = (server, call, handle) => {
|
|
7
|
-
server.registerTool("update_video", {
|
|
8
|
-
title: "Rename a video or change who can watch",
|
|
9
|
-
description: `${PRO} Change a video's title and/or who may watch it: "private" (only the user), "workspace" (their team) or "public" (anyone with the link). It can also lock the share link for people outside the workspace: password (null removes it; use only a password the user gave you, never invent one) and expiresAt (null: never). Returns passwordProtected and linkExpiresAt, never the password. ${ASK} Defaults to the last recording. Only the person who recorded it, or the workspace owner, can.`,
|
|
10
|
-
inputSchema: videoParams.update,
|
|
11
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
12
|
-
}, async (args) => handle(() => call(Method.VideoUpdate, parseVideoParams(videoParams.update, args), 40_000)));
|
|
13
|
-
server.registerTool("delete_video", {
|
|
14
|
-
title: "Delete a video",
|
|
15
|
-
description: `${PRO} Delete a video from recordful.app. It goes to trash, where restore_video can bring it back for 7 days; after that it and its files are gone for good. There is no default video: name it. Call with dryRun: true first to get what would go, show the user, and only after their yes call again with confirm: true.`,
|
|
16
|
-
inputSchema: videoParams.remove,
|
|
17
|
-
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
18
|
-
}, async (args) => handle(() => {
|
|
19
|
-
const params = parseVideoParams(videoParams.remove, args);
|
|
20
|
-
if (params.dryRun === params.confirm) {
|
|
21
|
-
throw new BridgeError(ErrorCode.InvalidParams, "Pass dryRun: true to see what would be deleted, or confirm: true once the user has said yes to this exact video (not both).");
|
|
22
|
-
}
|
|
23
|
-
return call(Method.VideoDelete, params, 40_000);
|
|
24
|
-
}));
|
|
25
|
-
server.registerTool("list_trash", {
|
|
26
|
-
title: "List deleted videos",
|
|
27
|
-
description: `${PRO} Videos in trash that the user can see: videoId, title, when it was deleted and when it's gone for good (7 days later). Read-only.`,
|
|
28
|
-
inputSchema: {},
|
|
29
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
30
|
-
}, async () => handle(() => call(Method.TrashList, {}, 40_000)));
|
|
31
|
-
server.registerTool("restore_video", {
|
|
32
|
-
title: "Restore a deleted video",
|
|
33
|
-
description: `${PRO} Bring a video back out of trash (list_trash shows them), with its links as before. Only the person who recorded it, or the workspace owner, can.`,
|
|
34
|
-
inputSchema: videoParams.restore,
|
|
35
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
36
|
-
}, async (args) => handle(() => call(Method.VideoRestore, parseVideoParams(videoParams.restore, args), 40_000)));
|
|
37
|
-
server.registerTool("get_video_activity", {
|
|
38
|
-
title: "Read views, likes and comments",
|
|
39
|
-
description: `${PRO} What viewers did with a video: its view count, where views came from (viewsBy: sources such as Direct, Google or X, link page vs embeds, top countries), views per UTC day over the last days (daily, oldest first), likes, and every comment (oldest first, with author and time). Read-only. Defaults to the last recording.`,
|
|
40
|
-
inputSchema: videoParams.activity,
|
|
41
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
42
|
-
}, async (args) => handle(() => call(Method.VideoEngagement, parseVideoParams(videoParams.activity, args), 40_000)));
|
|
43
|
-
server.registerTool("comment_on_video", {
|
|
44
|
-
title: "Comment on a video",
|
|
45
|
-
description: `${PRO} Post a comment on a video as the signed-in user. It is public to everyone who can watch the video. ${ASK} Pass the comment exactly as the user approved it. Defaults to the last recording.`,
|
|
46
|
-
inputSchema: videoParams.comment,
|
|
47
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
48
|
-
}, async (args) => handle(() => call(Method.VideoComment, parseVideoParams(videoParams.comment, args), 40_000)));
|
|
49
|
-
server.registerTool("delete_comment", {
|
|
50
|
-
title: "Delete a comment",
|
|
51
|
-
description: `${PRO} Delete one comment from a video (get_video_activity lists them with their ids). Its author can, and so can the person who recorded the video or the workspace owner. It can't be brought back: show the user the comment and wait for their yes, then call with confirm: true.`,
|
|
52
|
-
inputSchema: videoParams.deleteComment,
|
|
53
|
-
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
54
|
-
}, async (args) => handle(() => call(Method.VideoCommentDelete, parseVideoParams(videoParams.deleteComment, args), 40_000)));
|
|
55
|
-
server.registerTool("like_video", {
|
|
56
|
-
title: "Like or unlike a video",
|
|
57
|
-
description: `${PRO} Like a video as the signed-in user (liked: false removes it). Returns the new like count. Defaults to the last recording.`,
|
|
58
|
-
inputSchema: videoParams.like,
|
|
59
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
60
|
-
}, async (args) => handle(() => call(Method.VideoLike, parseVideoParams(videoParams.like, args), 40_000)));
|
|
61
|
-
server.registerTool("list_folders", {
|
|
62
|
-
title: "List folders",
|
|
63
|
-
description: `${PRO} The user's folders on recordful.app: folderId, name, parentId (null at the top level) and whether it's shared. list_videos shows each video's folderId.`,
|
|
64
|
-
inputSchema: {},
|
|
65
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
66
|
-
}, async () => handle(() => call(Method.FolderList, {}, 40_000)));
|
|
67
|
-
server.registerTool("create_folder", {
|
|
68
|
-
title: "Create a folder",
|
|
69
|
-
description: `${PRO} Create a folder, at the top level or inside another folder. ${ASK}`,
|
|
70
|
-
inputSchema: videoParams.createFolder,
|
|
71
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
72
|
-
}, async (args) => handle(() => call(Method.FolderCreate, parseVideoParams(videoParams.createFolder, args), 40_000)));
|
|
73
|
-
server.registerTool("move_videos", {
|
|
74
|
-
title: "Move videos into a folder",
|
|
75
|
-
description: `${PRO} Move videos into a folder (folderId null moves them to the top level). Moving into a shared folder shares them, except private videos. ${ASK} Videos the user can't manage come back as skipped.`,
|
|
76
|
-
inputSchema: videoParams.move,
|
|
77
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
78
|
-
}, async (args) => handle(() => call(Method.VideoMove, parseVideoParams(videoParams.move, args), 40_000)));
|
|
79
|
-
server.registerTool("get_analytics", {
|
|
80
|
-
title: "Views across all videos",
|
|
81
|
-
description: `${PRO} How the user's whole library is watched: total views and views per UTC day over the last days (default 30), plus the ten most viewed videos in that time with links. Covers the videos the user can see, not those in trash. get_video_activity has one video's detail. Read-only.`,
|
|
82
|
-
inputSchema: videoParams.analytics,
|
|
83
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
84
|
-
}, async (args) => handle(() => call(Method.AnalyticsGet, parseVideoParams(videoParams.analytics, args), 40_000)));
|
|
85
|
-
server.registerTool("list_members", {
|
|
86
|
-
title: "List workspace members",
|
|
87
|
-
description: `${PRO} Who is in the user's Recordful workspace (name, email, role: owner or member) and which email addresses are invited but haven't joined. Read-only.`,
|
|
88
|
-
inputSchema: {},
|
|
89
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
90
|
-
}, async () => handle(() => call(Method.MembersList, {}, 40_000)));
|
|
91
|
-
server.registerTool("invite_member", {
|
|
92
|
-
title: "Invite someone to the workspace",
|
|
93
|
-
description: `${PRO} Email an invitation to join the user's workspace as a member: they can then see and comment on its videos. Only the workspace owner can. It emails someone else, so confirm the exact address with the user first, then call with confirm: true. Never guess an address.`,
|
|
94
|
-
inputSchema: videoParams.invite,
|
|
95
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
96
|
-
}, async (args) => handle(() => call(Method.MembersInvite, parseVideoParams(videoParams.invite, args), 40_000)));
|
|
97
|
-
server.registerTool("get_storage", {
|
|
98
|
-
title: "Check storage",
|
|
99
|
-
description: `${PRO} How much of the user's Recordful cloud storage is used (bytes, percent) and whether more can be uploaded. Read-only.`,
|
|
100
|
-
inputSchema: {},
|
|
101
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
102
|
-
}, async () => handle(() => call(Method.StorageGet, {}, 40_000)));
|
|
103
|
-
};
|
|
104
|
-
//# sourceMappingURL=libraryTools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libraryTools.js","sourceRoot":"","sources":["../../src/core/libraryTools.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKrE,MAAM,GAAG,GAAG,oEAAoE,CAAC;AACjF,MAAM,GAAG,GAAG,0EAA0E,CAAC;AAEvF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,IAAU,EAAE,MAAc,EAAE,EAAE;IACpF,MAAM,CAAC,YAAY,CACjB,cAAc,EACd;QACE,KAAK,EAAE,wCAAwC;QAC/C,WAAW,EAAE,GAAG,GAAG,gYAAgY,GAAG,gGAAgG;QACtf,WAAW,EAAE,WAAW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