recordful-mcp 1.1.2 → 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.
Files changed (41) hide show
  1. package/CHANGELOG.md +144 -114
  2. package/README.md +21 -4
  3. package/dist/args.js +1 -1
  4. package/dist/args.js.map +1 -1
  5. package/dist/cli.js +151 -10
  6. package/dist/cli.js.map +1 -1
  7. package/dist/core/createRecordfulServer.js +28 -5
  8. package/dist/core/createRecordfulServer.js.map +1 -1
  9. package/dist/core/hostedTools.d.ts +29 -0
  10. package/dist/core/hostedTools.js +78 -0
  11. package/dist/core/hostedTools.js.map +1 -0
  12. package/dist/core/transport.d.ts +2 -0
  13. package/dist/core/videoTools.js +14 -7
  14. package/dist/core/videoTools.js.map +1 -1
  15. package/dist/guide.d.ts +3 -3
  16. package/dist/guide.js +14 -15
  17. package/dist/guide.js.map +1 -1
  18. package/dist/install.js +17 -13
  19. package/dist/install.js.map +1 -1
  20. package/dist/mcp/createMcpServer.d.ts +5 -0
  21. package/dist/mcp/createMcpServer.js +31 -10
  22. package/dist/mcp/createMcpServer.js.map +1 -1
  23. package/dist/protocol/errors.d.ts +1 -0
  24. package/dist/protocol/errors.js +1 -0
  25. package/dist/protocol/errors.js.map +1 -1
  26. package/dist/protocol/methods.d.ts +8 -0
  27. package/dist/protocol/methods.js +10 -0
  28. package/dist/protocol/methods.js.map +1 -1
  29. package/dist/protocol/video.d.ts +24 -0
  30. package/dist/protocol/video.js +39 -2
  31. package/dist/protocol/video.js.map +1 -1
  32. package/dist/skill.d.ts +19 -1
  33. package/dist/skill.js +76 -3
  34. package/dist/skill.js.map +1 -1
  35. package/dist/workflows.d.ts +9 -0
  36. package/dist/workflows.js +27 -1
  37. package/dist/workflows.js.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/core/libraryTools.d.ts +0 -6
  40. package/dist/core/libraryTools.js +0 -61
  41. package/dist/core/libraryTools.js.map +0 -1
@@ -35,16 +35,53 @@ export const videoParams = {
35
35
  videoId: VideoId.optional(),
36
36
  start: z.boolean().optional().describe("Start transcribing if there's no transcript yet (default true)."),
37
37
  },
38
+ summary: {
39
+ videoId: VideoId.optional(),
40
+ generate: z.boolean().optional().describe("Write one if there is none yet. It spends the workspace's AI credits: only after the user said yes."),
41
+ regenerate: z.boolean().optional().describe("Write a new one even if one exists (spends credits; only after the user said yes)."),
42
+ },
38
43
  update: {
39
44
  videoId: VideoId.optional(),
40
45
  title: z.string().trim().min(1).max(200).optional().describe("New title."),
41
46
  visibility: z.enum(VISIBILITIES).optional().describe('Who may watch: "private", "workspace" (their team) or "public" (anyone with the link).'),
47
+ password: z
48
+ .string()
49
+ .min(1)
50
+ .max(200)
51
+ .nullable()
52
+ .optional()
53
+ .describe("A password people outside the workspace must type to watch, exactly as the user gave it; null removes it. It is never shown back."),
54
+ expiresAt: z.iso
55
+ .datetime({ offset: true })
56
+ .refine((at) => Date.parse(at) > Date.now(), "expiresAt must be in the future")
57
+ .nullable()
58
+ .optional()
59
+ .describe("When the share link stops working for people outside the workspace (ISO 8601, in the future); null means never."),
42
60
  },
43
61
  remove: {
44
62
  videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video to delete. Required: there is no default for a delete."),
45
- confirm: z.literal(true).describe("Must be true, and only after the user has confirmed deleting this exact video."),
63
+ confirm: z.literal(true).optional().describe("Must be true, and only after the user has confirmed deleting this exact video."),
64
+ dryRun: z.literal(true).optional().describe("true: delete nothing, and return what would be deleted (title, date, views, links) to show the user first."),
65
+ },
66
+ restore: {
67
+ videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video in trash to bring back (from list_trash)."),
68
+ },
69
+ deleteComment: {
70
+ videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video the comment is on. Required."),
71
+ commentId: z.string().regex(/^[0-9a-f-]{36}$/i, "commentId must come from get_video_activity").describe("The comment to delete (from get_video_activity)."),
72
+ confirm: z.literal(true).describe("Must be true, and only after the user has confirmed deleting this exact comment."),
73
+ },
74
+ activity: {
75
+ videoId: VideoId.optional(),
76
+ days: z.number().int().min(1).max(365).optional().describe("Views per day over this many days, up to today (1 to 365, default 30)."),
77
+ },
78
+ invite: {
79
+ email: z.email().max(254).describe("The address to invite, exactly as the user gave it."),
80
+ confirm: z.literal(true).describe("Must be true, and only after the user has confirmed inviting this exact address."),
81
+ },
82
+ analytics: {
83
+ days: z.number().int().min(1).max(365).optional().describe("Views per day over this many days, up to today (1 to 365, default 30)."),
46
84
  },
47
- activity: { videoId: VideoId.optional() },
48
85
  comment: {
49
86
  videoId: VideoId.optional(),
50
87
  body: z.string().trim().min(1).max(2000).describe("The comment text, exactly as the user approved it."),
@@ -1 +1 @@
1
- {"version":3,"file":"video.js","sourceRoot":"","sources":["../../src/protocol/video.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,wEAAwE;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC;KACrB,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,sCAAsC,CAAC;KACjE,QAAQ,CAAC,4GAA4G,CAAC,CAAC;AAE1H,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,KAAK,CAAC,uCAAuC,EAAE,uCAAuC,CAAC;KACvF,QAAQ,CAAC,yEAAyE,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,uCAAuC,CAAC;KAClE,QAAQ,CAAC,gCAAgC,CAAC,CAAC;AAE9C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAU,CAA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MAAM,CAAC,MAAM,gBAAgB,GAAG,CAA0B,KAAQ,EAAE,MAAe,EAA2B,EAAE;IAC9G,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAChE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,WAAW,CACnB,SAAS,CAAC,aAAa,EACvB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3F,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC,CAAC"}
package/dist/skill.d.ts CHANGED
@@ -1 +1,19 @@
1
- export declare const SKILL_TEXT = "---\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 \u2192 More \u2192 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 \u2192 AI agents \u2192 \"Let AI agents take screenshots\" on; if the tool says it isn't on, ask the user to turn it on and retry.\n";
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ export declare const SKILLS: Record<string, Record<string, string>>;
3
+ /** The record-demo skill's SKILL.md. */
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,4 +1,77 @@
1
- // The Recordful skill (SKILL.md) that `recordful-mcp install` writes for the AI app.
2
- // Generated from skills/record-demo/SKILL.md by scripts/sync-skill.mjs; a test keeps them equal.
3
- export const SKILL_TEXT = "---\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";
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";
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
+ },
19
+ "record-demo": {
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"
21
+ },
22
+ "recordful-motion": {
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",
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",
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"
29
+ }
30
+ };
31
+ /** The record-demo skill's SKILL.md. */
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
+ };
4
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,qFAAqF;AACrF,iGAAiG;AACjG,MAAM,CAAC,MAAM,UAAU,GAAG,g3NAAg3N,CAAC"}
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+EAA8+E;KAC3/E;IACD,aAAa,EAAE;QACb,UAAU,EAAE,u9FAAu9F;KACp+F;IACD,aAAa,EAAE;QACb,UAAU,EAAE,g3NAAg3N;KAC73N;IACD,kBAAkB,EAAE;QAClB,UAAU,EAAE,67GAA67G;QACz8G,sBAAsB,EAAE,2gFAA2gF;QACniF,qBAAqB,EAAE,6xMAA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EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,EAC5H,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAClC,CAAC;IACF,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAC7B,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,EAClG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;QACb,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC;QACtE,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,aAAa,EAAE,eAAe,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;QACrF,OAAO,EAAE,KAAK,EAAE,CAAC;IACnB,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -31,4 +31,13 @@ export declare const followVideo: (call: Call, videoId: string, done: (state: Vi
31
31
  }>;
32
32
  export declare const uploadAndWait: (call: Call, args: Record<string, unknown>, progress: Progress) => Promise<Record<string, unknown>>;
33
33
  export declare const getVideoAndWait: (call: Call, args: Record<string, unknown>, progress: Progress) => Promise<Record<string, unknown>>;
34
+ export declare const findCues: (vtt: string, query: string) => {
35
+ matches: {
36
+ startMs: number;
37
+ endMs: number;
38
+ text: string;
39
+ }[];
40
+ totalMatches: number;
41
+ note?: string | undefined;
42
+ };
34
43
  export declare const transcriptAndWait: (call: Call, args: Record<string, unknown>, progress: Progress) => Promise<Record<string, unknown>>;
package/dist/workflows.js CHANGED
@@ -60,14 +60,40 @@ export const getVideoAndWait = async (call, args, progress) => {
60
60
  const { state, timedOut, waitedMs } = await followVideo(call, first.videoId, (s) => s.stage === "ready", timeoutMs, progress);
61
61
  return { ...state, waitedMs, ...(timedOut ? { note: "Not ready yet. Call again with wait: true to keep waiting." } : {}) };
62
62
  };
63
+ const MAX_MATCHES = 30;
64
+ const toMs = (stamp) => stamp.split(":").reduce((total, part) => total * 60 + Number(part), 0) * 1000;
65
+ // The cues of a WebVTT transcript that mention `query` (any case), with their
66
+ // times, so an agent can find a moment without reading the whole transcript.
67
+ export const findCues = (vtt, query) => {
68
+ const needle = query.trim().toLowerCase();
69
+ const matches = [];
70
+ let total = 0;
71
+ for (const block of vtt.split(/\r?\n\r?\n/)) {
72
+ const lines = block.split(/\r?\n/);
73
+ const at = lines.findIndex((line) => line.includes("-->"));
74
+ if (at < 0)
75
+ continue;
76
+ const text = lines.slice(at + 1).join(" ").trim();
77
+ if (!text.toLowerCase().includes(needle))
78
+ continue;
79
+ total++;
80
+ if (matches.length >= MAX_MATCHES)
81
+ continue;
82
+ const [start = "", end = ""] = (lines[at] ?? "").split("-->").map((side) => side.trim().split(/\s/)[0] ?? "");
83
+ matches.push({ startMs: Math.round(toMs(start)), endMs: Math.round(toMs(end)), text });
84
+ }
85
+ return { matches, totalMatches: total, ...(total > MAX_MATCHES ? { note: `Showing the first ${MAX_MATCHES} of ${total}; narrow the query.` } : {}) };
86
+ };
63
87
  export const transcriptAndWait = async (call, args, progress) => {
64
- const { wait = true, timeoutMs = 300_000, format = "text", ...rest } = args;
88
+ const { wait = true, timeoutMs = 300_000, format = "text", query, ...rest } = args;
65
89
  const params = parseVideoParams(videoParams.transcript, rest);
66
90
  const started = Date.now();
67
91
  for (;;) {
68
92
  const now = (await call(Method.VideoTranscript, params, 100_000));
69
93
  if (now.status === "done") {
70
94
  const { text = "", vtt = "", ...about } = now;
95
+ if (query?.trim())
96
+ return { ...about, query, ...findCues(vtt, query) };
71
97
  return {
72
98
  ...about,
73
99
  ...(format !== "vtt" ? { text } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../src/workflows.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,uEAAuE;AACvE,wEAAwE;AACxE,+BAA+B;AAC/B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAwBpE,MAAM,CAAC,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AAE5D,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAqB,EAAE,EAAE,CAC1C,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AAE3E,MAAM,YAAY,GAAG,CAAC,KAAiB,EAAE,EAAE,CACzC,IAAI,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,IAAI,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,IAAI,oBAAoB,EAAE;IACzG,OAAO,EAAE,KAAK,CAAC,OAAO;CACvB,CAAC,CAAC;AAEL,mEAAmE;AACnE,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAC9B,IAAU,EACV,OAAe,EACf,IAAoC,EACpC,SAAiB,E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O,EAAE,GAAG,CAAC,OAAO;aACrB,CAAC,CAAC;QACL,CAAC;QACD,8CAA8C;QAC9C,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC;QAC7D,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,IAAI,SAAS,EAAE,CAAC;YACvD,OAAO;gBACL,GAAG,GAAG;gBACN,IAAI,EACF,GAAG,CAAC,MAAM,KAAK,MAAM;oBACnB,CAAC,CAAC,4EAA4E;oBAC9E,CAAC,CAAC,iEAAiE;aACxE,CAAC;QACJ,CAAC;QACD,0EAA0E;QAC1E,6DAA6D;QAC7D,MAAM,QAAQ,CAAC,GAAG,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QACjG,MAAM,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recordful-mcp",
3
- "version": "1.1.2",
3
+ "version": "2.0.0",
4
4
  "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,61 +0,0 @@
1
- import { Method } from "../protocol/methods.js";
2
- import { parseVideoParams, videoParams } from "../protocol/video.js";
3
- const PRO = "Recordful Pro only (check get_status recorder.account.plan first).";
4
- const ASK = "Show the user exactly what you will change and wait for their yes first.";
5
- export const registerLibraryTools = (server, call, handle) => {
6
- server.registerTool("update_video", {
7
- title: "Rename a video or change who can watch",
8
- 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). ${ASK} Defaults to the last recording. Only the person who recorded it, or the workspace owner, can.`,
9
- inputSchema: videoParams.update,
10
- annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
11
- }, async (args) => handle(() => call(Method.VideoUpdate, parseVideoParams(videoParams.update, args), 40_000)));
12
- server.registerTool("delete_video", {
13
- title: "Delete a video",
14
- description: `${PRO} Permanently delete a video and its files from recordful.app. This can't be undone, and there is no default video: name it. Ask the user to confirm this exact video (title and link) first, then call with confirm: true.`,
15
- inputSchema: videoParams.remove,
16
- annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
17
- }, async (args) => handle(() => call(Method.VideoDelete, parseVideoParams(videoParams.remove, args), 40_000)));
18
- server.registerTool("get_video_activity", {
19
- title: "Read views, likes and comments",
20
- description: `${PRO} What viewers did with a video: its view count, likes, and every comment (oldest first, with author and time). Read-only. Defaults to the last recording.`,
21
- inputSchema: videoParams.activity,
22
- annotations: { readOnlyHint: true, openWorldHint: true },
23
- }, async (args) => handle(() => call(Method.VideoEngagement, parseVideoParams(videoParams.activity, args), 40_000)));
24
- server.registerTool("comment_on_video", {
25
- title: "Comment on a video",
26
- 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.`,
27
- inputSchema: videoParams.comment,
28
- annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
29
- }, async (args) => handle(() => call(Method.VideoComment, parseVideoParams(videoParams.comment, args), 40_000)));
30
- server.registerTool("like_video", {
31
- title: "Like or unlike a video",
32
- description: `${PRO} Like a video as the signed-in user (liked: false removes it). Returns the new like count. Defaults to the last recording.`,
33
- inputSchema: videoParams.like,
34
- annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
35
- }, async (args) => handle(() => call(Method.VideoLike, parseVideoParams(videoParams.like, args), 40_000)));
36
- server.registerTool("list_folders", {
37
- title: "List folders",
38
- 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.`,
39
- inputSchema: {},
40
- annotations: { readOnlyHint: true, openWorldHint: true },
41
- }, async () => handle(() => call(Method.FolderList, {}, 40_000)));
42
- server.registerTool("create_folder", {
43
- title: "Create a folder",
44
- description: `${PRO} Create a folder, at the top level or inside another folder. ${ASK}`,
45
- inputSchema: videoParams.createFolder,
46
- annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
47
- }, async (args) => handle(() => call(Method.FolderCreate, parseVideoParams(videoParams.createFolder, args), 40_000)));
48
- server.registerTool("move_videos", {
49
- title: "Move videos into a folder",
50
- 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.`,
51
- inputSchema: videoParams.move,
52
- annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
53
- }, async (args) => handle(() => call(Method.VideoMove, parseVideoParams(videoParams.move, args), 40_000)));
54
- server.registerTool("get_storage", {
55
- title: "Check storage",
56
- description: `${PRO} How much of the user's Recordful cloud storage is used (bytes, percent) and whether more can be uploaded. Read-only.`,
57
- inputSchema: {},
58
- annotations: { readOnlyHint: true, openWorldHint: true },
59
- }, async () => handle(() => call(Method.StorageGet, {}, 40_000)));
60
- };
61
- //# sourceMappingURL=libraryTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"libraryTools.js","sourceRoot":"","sources":["../../src/core/libraryTools.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MA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