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
package/CHANGELOG.md CHANGED
@@ -1,114 +1,144 @@
1
- # Changelog
2
-
3
- ## 1.1.2 (2026-11-13)
4
-
5
- - **The repo is the plugin.** The Claude Code plugin's `.mcp.json`, `record-demo` skill and `/record-demo` command moved from `plugin/` to the repo root, in the [Open Plugins](https://open-plugins.com) layout, so plugin directories such as Cursor Directory find them. `/plugin marketplace add iKislay/recordful-mcp` works as before. The npm package is the same as 1.1.1 apart from the version.
6
-
7
- ## 1.1.1 (2026-11-13)
8
-
9
- - The relay starts under Claude Desktop too. Claude Desktop can run the `.mcpb` server on its own Electron runtime, and the relay's launcher then started the Claude app instead of the relay. 1.1.0 was tagged but never published; use 1.1.1.
10
-
11
- ## 1.1.0 (2026-11-13)
12
-
13
- No more toolbar click for everything. With Recordful 4.7.0, the only click left is the one Chrome requires to record a tab.
14
-
15
- - **Recordful connects by itself.** Each time the server (or the CLI helper) starts, it registers a native-messaging relay, `recordful-mcp native-host` (`app.recordful.bridge`), for Chrome, Edge, Brave and Chromium: a launcher and manifest in `~/.recordful/native-host`, plus a per-user registry key on Windows or a manifest in each installed browser's folder on macOS and Linux. Chrome starts the relay when AI agents is on, the relay tells Recordful when the bridge is up, and Recordful joins with no click, no polling and nothing logged on chrome://extensions. It only carries frames: pairing stays end to end, and the first pairing still takes a click. Without it, the icon click works as before.
16
- - **Agents get a tab of their own.** With no tab handed over, `navigate` opens one (`openedTab: true`), so page tools and `take_screenshot` need no click. The user's other tabs stay out of reach. For a tab or tab-area recording there, the user clicks the Recordful icon on that tab once, and `start_recording` says so at once.
17
- - The instructions, the record-demo skill, the setup prompt and the guide only ask for the click where it's still needed. The Claude Code plugin's version now follows the package.
18
-
19
- ## 1.0.0 (2026-11-12)
20
-
21
- Screenshots of the whole desktop, not just a browser tab, through the Recordful desktop app. A major version: recordful-mcp now drives two Recordful apps, the Chrome extension and the desktop app.
22
-
23
- - **`take_screenshot` takes a `source`**: `"tab"` (the default, as before), or with the Recordful desktop app 2.0 `"screen"` (`display`: 1, 2… or `"main"`), `"window"` (`window`: part of a title or app name) or `"area"` (the user drags it). The screenshot opens in the app's editor with a notification naming the agent; no image comes back. CLI: `recordful-mcp screenshot --source screen|window|area [--window <name>] [--display <n>] [--look 3d]`.
24
- - **`list_windows`** (CLI: `recordful-mcp windows`): the desktop's open windows, app and title only.
25
- - **How it connects:** the user turns on Settings → AI agents → "Let AI agents take screenshots" in the desktop app once. The app then opens a localhost endpoint and writes its port and a random token to `~/.recordful/desktop-agent.json` (this user only); recordful-mcp reads it. No pairing, no icon click; requests with a browser Origin are refused. Off, or the app closed, the tool says what to ask the user.
26
- - **Default look:** with no `look`, a new screenshot (tab or desktop) starts on a wallpaper picked to match its colours, with rounder corners (recordful.app and the desktop app).
27
- - The `.mcpb` manifest now lists every tool, including the library tools from 0.6.0.
28
-
29
- ## 0.8.0 (2026-11-12)
30
-
31
- Screenshots: your AI app takes a Recordful screenshot and it opens in the screenshot editor.
32
-
33
- - **`take_screenshot`** (CLI: `recordful-mcp screenshot [--page] [--look 3d]`): a Recordful screenshot of the handed-over tab, visible part or whole page, opened in Recordful's screenshot editor in the user's usual look, or `look: "3d"` / a preset name when they ask for one. Returns no image, so it costs a few tokens. Needs Recordful 4.6.33 or newer (`shot.take`). The AI's cursor and Stop chip stay out of the picture.
34
- - `install --target antigravity` writes `~/.gemini/antigravity/mcp_config.json`.
35
-
36
- ## 0.7.0 (2026-11-01)
37
-
38
- Mark moments while recording, and let the user stop an agent from the page.
39
-
40
- - **`add_marker`**: label a moment of the running recording ("signed in", "error shown"). It's timed in the video, pauses left out, and `stop_recording` now returns every marker as `{ atMs, label }`. The instructions and the skill tell agents to mark moments worth finding again. Needs Recordful 4.6.27 or newer (`recording.marker`).
41
- - Recordful 4.6.27 shows a chip with a Stop button on the tab an agent is driving; Stop ends the session and the extension doesn't reconnect until the user clicks its icon again.
42
- - Internal: the MCP tools and prompt now live in a transport-agnostic core (`src/core`) behind a `RecorderTransport` interface, so the coming hosted connector (mcp.recordful.app) can serve the same tools. No change for users: same tools, instructions, prompt and results.
43
-
44
- ## 0.6.0 (2026-10-24)
45
-
46
- Manage what's on recordful.app, not just upload to it (Recordful Pro).
47
-
48
- - **Nine new tools and matching commands**: `update_video` (rename, who may watch), `get_video_activity` (views, likes, every comment), `comment_on_video`, `like_video`, `list_folders`, `create_folder`, `move_videos`, `delete_video` and `get_storage`. CLI: `update`, `activity`, `comment --body`, `like [--undo]`, `folders`, `folder-create`, `move --to`, `delete --yes`, `storage`.
49
- - **Safe by design.** `delete_video` has no default video and needs `confirm: true` (the CLI needs `--yes`), so an agent can't delete by accident. Instructions, the skill and `guide --json` tell agents to show the user exactly what they'll change and wait for a yes before renaming, changing who can watch, commenting (comments are public to everyone who can watch), moving or deleting. Other workspaces' videos answer "not found"; only the recorder or the workspace owner can change a video.
50
- - `list_videos` and `get_video` now include each video's `folderId`.
51
- - New `FORBIDDEN` error for "only the person who recorded it, or the workspace owner, can do that".
52
- - Needs Recordful 4.6.19 or newer and recordful.app with `GET /videos/:id/engagement` and `GET /folders`. Verified live against recordful-ee and its database: rename and privacy, like and comment, reading the activity back, folders, moving in and out, storage, delete, and that a free account and another workspace are refused where they should be.
53
-
54
- ## 0.5.0 (2026-10-22)
55
-
56
- Set up in one step, from any AI app.
57
-
58
- - **`recordful-mcp install --target <app>`** adds the server (and, for Claude Code, Cursor and Codex, the `record-demo` skill) to one AI app's own configuration: `claude`, `cursor`, `codex`, `opencode`, `vscode`, `windsurf` or `gemini`. It's a dry run until `--yes`, merges instead of replacing, leaves a config it can't parse alone (with the entry to add by hand), and says whether the app needs a restart.
59
- - **`recordful-mcp prompt`** prints a prompt to paste into any AI app so it installs and verifies Recordful for itself, reports the paths it wrote, lists the few steps only the user can do in Chrome, and then asks what to record. Also on the help center.
60
- - **`recordful-mcp guide --json`**: tools, commands, error codes, exit codes, plans and safety rules in one document, so an agent reads the installed contract instead of guessing. Skills and the prompt tell agents to use Recordful's tools or CLI, never their own browser, to record.
61
- - **First recording no longer fails on a new install.** Recordful needs three browser permissions the first time it records, and Chrome only asks on a click, so an agent's first start used to fail with a vague `START_FAILED`. Turning on AI agents now asks for them, and `start_recording` returns `PERMISSIONS_NEEDED` straight away, with what to tell the user, if they're still missing. (Needs Recordful 4.6.19.)
62
- - The skill has a Rules section (ask before recording and before uploading, test data only, never ask for a secret) and a command-line fallback for sessions where the MCP tools aren't loaded yet.
63
-
64
- ## 0.4.0 (2026-10-22)
65
-
66
- Record, upload and read back: coding assistants can now share a demo and check what was said, on their own, from MCP or a shell.
67
-
68
- - **Uploads** (`upload_recording`, Recordful Pro): uploads a local recording to recordful.app with the same steps as the web editor, signed in as the user through the extension (no credential ever reaches the agent), and waits until it's up. Never uploads the same recording twice unless `force`. Cloud recordings are recognised and returned as already uploading.
69
- - **Transcripts** (`get_transcript`, Recordful Pro): starts transcription on first use and waits for it, including for an upload still in progress; returns `text`, `vtt` or both.
70
- - **Videos**: `get_video` (links and upload stage, optionally waiting until ready), `list_videos`, `list_recordings` (local recordings). `stop_recording` now says where the recording went: a cloud video with its links, or a local recording to upload.
71
- - **Clear about plans**: `get_status` reports `plan` (`pro`, `free`, `signed-out`, `unavailable`). On other plans, uploads and transcripts fail at once with `PRO_REQUIRED` or `NOT_SIGNED_IN`, saying what still works (recording, page tools, the editor) and linking the upgrade page; the agent instructions, prompt and skill tell agents to check first and not retry.
72
- - **A real CLI**: `start`, `pause`, `resume`, `stop`, `recordings`, `upload`, `videos`, `video`, `transcript`, `status`, each with readable output or `--json`. The first command starts a small background helper that holds Recordful's connection, so the user clicks the Recordful icon once.
73
- - **Any number of AI apps at once**: a second recordful-mcp (another AI app, or the CLI) shares the first one's connection over an authenticated local peer channel, and takes the port over when the owner exits. `BRIDGE_UNAVAILABLE` now only means something else holds the port.
74
- - MCP progress notifications while uploads and transcripts wait.
75
- - Fixed: two recordful-mcp processes creating the pairing file at the same moment could disagree on the server's identity.
76
- - Tests: 112, including the real CLI end to end and peer takeover. Verified live against recordful.app's stack: a spoken recording uploaded, transcribed and read back through both the CLI and MCP; free and signed-out accounts get clear answers.
77
- - Needs Recordful 4.6.19 or newer (with the upload and transcript methods) and recordful.app with `GET /videos/:id/transcript?text=1`.
78
-
79
- ## 0.3.0 (2026-10-17)
80
-
81
- Ready for everyone: install with one line in any AI app, pair with one click, no tokens or builds.
82
-
83
- - **Pairing replaces tokens.** The first time an AI app connects, Recordful opens a window naming the app with a 4-digit code; the agent gets `PAIRING_PENDING` with the same code to show in chat. On Allow, both sides keep a fresh per-pairing secret. Pairing happens once per computer, shared by every AI app (protocol v2, new path `/recordful-agent-bridge/v2`).
84
- - **Ships in Recordful itself**, off until the user turns on AI agents (Recordful popup → More → AI agents). That page has the switch, connection status, the setup command and paired apps with Forget. The toolbar icon shows an "AI" badge while an app is connected.
85
- - **Only the official extension by default.** The Chrome Web Store build is allowed out of the box; `RECORDFUL_BRIDGE_ALLOWED_EXTENSION_IDS` adds development builds (`*` allows any).
86
- - **`record_feature` prompt**: the whole plan-and-record workflow, available in every MCP client that supports prompts.
87
- - **Fail-fast starts**: in tab capture modes, `start_recording` on a tab the user hasn't handed over returns `NOT_ARMED` at once instead of stalling, and targets the handed-over tab by default. A healthy start is no longer misreported as `START_FAILED` when it takes ~5 s.
88
- - **One-step installs**: Claude Code plugin (MCP server, `record-demo` skill, `/record-demo` command) via `/plugin marketplace add iKislay/recordful-mcp`; Claude Desktop extension (`recordful.mcpb`, `npm run pack:mcpb`); MCP Registry entry (`server.json`).
89
- - CLI: `setup` prints the configuration for each AI app, `status` shows the pairing state, `unpair` forgets pairings. `token` is gone.
90
- - Agent instructions and errors cover first-run setup (`NOT_CONNECTED`, `PAIRING_PENDING`, `PAIRING_DENIED`, `NOT_ARMED`).
91
- - Live test `scripts/live-pairing.mjs`: switch on, pairing window, code match, Allow, reconnect without prompting, fail-fast start, Deny, switch off. All 15 checks pass in Edge 155.
92
- - Needs Recordful with the AI agents page (iKislay/recordful after 4.6.15).
93
-
94
- ## 0.2.0 (2026-10-17)
95
-
96
- Phase 1: page tools, so an agent with no browser tool of its own can record a feature end to end.
97
-
98
- - MCP tools `navigate`, `snapshot`, `click`, `type`, `press`, `scroll`, `wait_for` and `screenshot` (image content), over new protocol methods `page.*`. Inputs are validated with zod before they reach the extension, and the `call` CLI validates page methods the same way. Protocol version unchanged (methods were added, nothing changed shape).
99
- - They act only on the tab the user handed over by clicking the Recordful icon, or the tab being recorded. The extension draws its own cursor, glides it to each target, highlights clicks and types at a human pace.
100
- - New error codes: `NOT_ARMED`, `TAB_NOT_ACTIVE`, `PAGE_NOT_SCRIPTABLE`, `STALE_REF`, `ELEMENT_NOT_INTERACTABLE`, `ELEMENT_OBSCURED`, `NAVIGATION_FAILED`, `WAIT_TIMEOUT`. An extension build without page tools gets a hint to rebuild.
101
- - Agent instructions now cover the whole flow: plan, ask for the click on the Recordful icon, navigate, start, act with page tools, pause while thinking, stop.
102
- - `scripts/live-spike.mjs --pages` exercises every page tool live; `--port` runs alongside an MCP client's bridge.
103
- - Verified live in Edge 155: every page tool, tab targeting, stale refs and navigations, including during a live tab recording. See `docs/phase-1-findings.md`.
104
- - Needs a Recordful development build (`npm run build:agent`) that includes the page tools: iKislay/recordful after 4.6.15.
105
-
106
- ## 0.1.0 (2026-10-17)
107
-
108
- First release: Phase 0 of letting AI agents drive the Recordful recorder.
109
-
110
- - MCP server on stdio (`recordful-mcp`), built on the official SDK, with tools `get_status`, `start_recording`, `pause_recording`, `resume_recording`, `stop_recording` and `probe_capture`, plus agent instructions for the record-a-feature workflow.
111
- - Loopback WebSocket bridge to the Recordful extension: mutual HMAC-SHA256 challenge-response over a per-user pairing token, Origin and extension-ID allowlist, a single superseding session, heartbeat, request timeouts and port supervision.
112
- - CLI: `serve` (the default), `token [--rotate]`, `call <method> [json]`.
113
- - Verified in Chrome: after one click on the Recordful icon, the agent started, paused, resumed and stopped recordings, and the web editor opened on stop. Chrome requires that click before tab capture; see `docs/phase-0-findings.md`.
114
- - 34 unit and integration tests, CI on Linux, macOS and Windows (Node 20 and 22), and a live end-to-end script (`scripts/live-spike.mjs`).
1
+ # Changelog
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
+
12
+ ## 1.3.0 (2026-11-14)
13
+
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.
15
+
16
+ - **`make_motion` prompt.** Makes a title, lower third or callout for a Recordful video as one self-contained HyperFrames composition, with the motion guide: shot recipes with timings, the registry blocks to start from, and a review checklist with the defaults to avoid.
17
+ - **`recordful-motion` skill.** The same guide as a skill (`SKILL.md` with `references/shots.md` and `references/review.md`), installed beside `record-demo` by `install` and the Claude Code plugin. Recipes adapted from HyperFrames' own references (Apache-2.0) and two MIT-licensed motion packs, credited in the skill.
18
+ - **Skills install file by file**, so a skill with reference files arrives whole.
19
+
20
+ ## 1.2.0 (2026-11-14)
21
+
22
+ Run your Recordful library from your AI app: summaries, analytics, trash, link locks, comments and your team. Needs Recordful 4.8.0 for the new tools; with an older Recordful they answer `UNKNOWN_METHOD`.
23
+
24
+ - **`get_summary`**: a video's AI summary and chapters, as its page shows them. Reading is free; `generate: true` writes one and spends the workspace's AI credits (about 1 to 2), so agents are told to ask first. New error code `OUT_OF_CREDITS` (with `renewsAt`). CLI: `summary [--generate | --regenerate]`.
25
+ - **`get_transcript` takes `query`**: only the moments that mention it, with times (up to 30), instead of the whole transcript. CLI: `transcript --query <words>`.
26
+ - **Analytics.** `get_analytics` returns the library's views per day and its ten most viewed videos; `get_video_activity` now says where views came from (`viewsBy`) and gives views per day. `days` is 1 to 365 (default 30). CLI: `analytics`, `activity --days`.
27
+ - **Trash.** `delete_video` now says the truth: the video goes to trash for 7 days. `list_trash` and `restore_video` bring it back, and `dryRun: true` shows what a delete would remove without deleting. CLI: `trash`, `restore`, `delete --dry-run`.
28
+ - **Link locks.** `update_video` takes `password` (null removes it) and `expiresAt` (null: never). Results say `passwordProtected` and `linkExpiresAt` and never echo the password. The CLI reads the password from stdin (`--password-stdin`), so it stays out of shell history.
29
+ - **`delete_comment`**: remove one comment, named and confirmed. CLI: `comment-delete <videoId> <commentId> --yes`.
30
+ - **Teams.** `list_members` shows who is in the workspace and who is invited; `invite_member` emails an invitation, owner only, with the exact address confirmed. CLI: `members`, `invite <email> --yes`.
31
+ - Every change still needs the user's yes: the tools that publish, email someone or delete need `confirm: true`, and destructive ones can preview first.
32
+
33
+ ## 1.1.2 (2026-11-13)
34
+
35
+ - **The repo is the plugin.** The Claude Code plugin's `.mcp.json`, `record-demo` skill and `/record-demo` command moved from `plugin/` to the repo root, in the [Open Plugins](https://open-plugins.com) layout, so plugin directories such as Cursor Directory find them. `/plugin marketplace add iKislay/recordful-mcp` works as before. The npm package is the same as 1.1.1 apart from the version.
36
+
37
+ ## 1.1.1 (2026-11-13)
38
+
39
+ - The relay starts under Claude Desktop too. Claude Desktop can run the `.mcpb` server on its own Electron runtime, and the relay's launcher then started the Claude app instead of the relay. 1.1.0 was tagged but never published; use 1.1.1.
40
+
41
+ ## 1.1.0 (2026-11-13)
42
+
43
+ No more toolbar click for everything. With Recordful 4.7.0, the only click left is the one Chrome requires to record a tab.
44
+
45
+ - **Recordful connects by itself.** Each time the server (or the CLI helper) starts, it registers a native-messaging relay, `recordful-mcp native-host` (`app.recordful.bridge`), for Chrome, Edge, Brave and Chromium: a launcher and manifest in `~/.recordful/native-host`, plus a per-user registry key on Windows or a manifest in each installed browser's folder on macOS and Linux. Chrome starts the relay when AI agents is on, the relay tells Recordful when the bridge is up, and Recordful joins with no click, no polling and nothing logged on chrome://extensions. It only carries frames: pairing stays end to end, and the first pairing still takes a click. Without it, the icon click works as before.
46
+ - **Agents get a tab of their own.** With no tab handed over, `navigate` opens one (`openedTab: true`), so page tools and `take_screenshot` need no click. The user's other tabs stay out of reach. For a tab or tab-area recording there, the user clicks the Recordful icon on that tab once, and `start_recording` says so at once.
47
+ - The instructions, the record-demo skill, the setup prompt and the guide only ask for the click where it's still needed. The Claude Code plugin's version now follows the package.
48
+
49
+ ## 1.0.0 (2026-11-12)
50
+
51
+ Screenshots of the whole desktop, not just a browser tab, through the Recordful desktop app. A major version: recordful-mcp now drives two Recordful apps, the Chrome extension and the desktop app.
52
+
53
+ - **`take_screenshot` takes a `source`**: `"tab"` (the default, as before), or with the Recordful desktop app 2.0 `"screen"` (`display`: 1, 2… or `"main"`), `"window"` (`window`: part of a title or app name) or `"area"` (the user drags it). The screenshot opens in the app's editor with a notification naming the agent; no image comes back. CLI: `recordful-mcp screenshot --source screen|window|area [--window <name>] [--display <n>] [--look 3d]`.
54
+ - **`list_windows`** (CLI: `recordful-mcp windows`): the desktop's open windows, app and title only.
55
+ - **How it connects:** the user turns on Settings → AI agents → "Let AI agents take screenshots" in the desktop app once. The app then opens a localhost endpoint and writes its port and a random token to `~/.recordful/desktop-agent.json` (this user only); recordful-mcp reads it. No pairing, no icon click; requests with a browser Origin are refused. Off, or the app closed, the tool says what to ask the user.
56
+ - **Default look:** with no `look`, a new screenshot (tab or desktop) starts on a wallpaper picked to match its colours, with rounder corners (recordful.app and the desktop app).
57
+ - The `.mcpb` manifest now lists every tool, including the library tools from 0.6.0.
58
+
59
+ ## 0.8.0 (2026-11-12)
60
+
61
+ Screenshots: your AI app takes a Recordful screenshot and it opens in the screenshot editor.
62
+
63
+ - **`take_screenshot`** (CLI: `recordful-mcp screenshot [--page] [--look 3d]`): a Recordful screenshot of the handed-over tab, visible part or whole page, opened in Recordful's screenshot editor in the user's usual look, or `look: "3d"` / a preset name when they ask for one. Returns no image, so it costs a few tokens. Needs Recordful 4.6.33 or newer (`shot.take`). The AI's cursor and Stop chip stay out of the picture.
64
+ - `install --target antigravity` writes `~/.gemini/antigravity/mcp_config.json`.
65
+
66
+ ## 0.7.0 (2026-11-01)
67
+
68
+ Mark moments while recording, and let the user stop an agent from the page.
69
+
70
+ - **`add_marker`**: label a moment of the running recording ("signed in", "error shown"). It's timed in the video, pauses left out, and `stop_recording` now returns every marker as `{ atMs, label }`. The instructions and the skill tell agents to mark moments worth finding again. Needs Recordful 4.6.27 or newer (`recording.marker`).
71
+ - Recordful 4.6.27 shows a chip with a Stop button on the tab an agent is driving; Stop ends the session and the extension doesn't reconnect until the user clicks its icon again.
72
+ - Internal: the MCP tools and prompt now live in a transport-agnostic core (`src/core`) behind a `RecorderTransport` interface, so the coming hosted connector (mcp.recordful.app) can serve the same tools. No change for users: same tools, instructions, prompt and results.
73
+
74
+ ## 0.6.0 (2026-10-24)
75
+
76
+ Manage what's on recordful.app, not just upload to it (Recordful Pro).
77
+
78
+ - **Nine new tools and matching commands**: `update_video` (rename, who may watch), `get_video_activity` (views, likes, every comment), `comment_on_video`, `like_video`, `list_folders`, `create_folder`, `move_videos`, `delete_video` and `get_storage`. CLI: `update`, `activity`, `comment --body`, `like [--undo]`, `folders`, `folder-create`, `move --to`, `delete --yes`, `storage`.
79
+ - **Safe by design.** `delete_video` has no default video and needs `confirm: true` (the CLI needs `--yes`), so an agent can't delete by accident. Instructions, the skill and `guide --json` tell agents to show the user exactly what they'll change and wait for a yes before renaming, changing who can watch, commenting (comments are public to everyone who can watch), moving or deleting. Other workspaces' videos answer "not found"; only the recorder or the workspace owner can change a video.
80
+ - `list_videos` and `get_video` now include each video's `folderId`.
81
+ - New `FORBIDDEN` error for "only the person who recorded it, or the workspace owner, can do that".
82
+ - Needs Recordful 4.6.19 or newer and recordful.app with `GET /videos/:id/engagement` and `GET /folders`. Verified live against recordful-ee and its database: rename and privacy, like and comment, reading the activity back, folders, moving in and out, storage, delete, and that a free account and another workspace are refused where they should be.
83
+
84
+ ## 0.5.0 (2026-10-22)
85
+
86
+ Set up in one step, from any AI app.
87
+
88
+ - **`recordful-mcp install --target <app>`** adds the server (and, for Claude Code, Cursor and Codex, the `record-demo` skill) to one AI app's own configuration: `claude`, `cursor`, `codex`, `opencode`, `vscode`, `windsurf` or `gemini`. It's a dry run until `--yes`, merges instead of replacing, leaves a config it can't parse alone (with the entry to add by hand), and says whether the app needs a restart.
89
+ - **`recordful-mcp prompt`** prints a prompt to paste into any AI app so it installs and verifies Recordful for itself, reports the paths it wrote, lists the few steps only the user can do in Chrome, and then asks what to record. Also on the help center.
90
+ - **`recordful-mcp guide --json`**: tools, commands, error codes, exit codes, plans and safety rules in one document, so an agent reads the installed contract instead of guessing. Skills and the prompt tell agents to use Recordful's tools or CLI, never their own browser, to record.
91
+ - **First recording no longer fails on a new install.** Recordful needs three browser permissions the first time it records, and Chrome only asks on a click, so an agent's first start used to fail with a vague `START_FAILED`. Turning on AI agents now asks for them, and `start_recording` returns `PERMISSIONS_NEEDED` straight away, with what to tell the user, if they're still missing. (Needs Recordful 4.6.19.)
92
+ - The skill has a Rules section (ask before recording and before uploading, test data only, never ask for a secret) and a command-line fallback for sessions where the MCP tools aren't loaded yet.
93
+
94
+ ## 0.4.0 (2026-10-22)
95
+
96
+ Record, upload and read back: coding assistants can now share a demo and check what was said, on their own, from MCP or a shell.
97
+
98
+ - **Uploads** (`upload_recording`, Recordful Pro): uploads a local recording to recordful.app with the same steps as the web editor, signed in as the user through the extension (no credential ever reaches the agent), and waits until it's up. Never uploads the same recording twice unless `force`. Cloud recordings are recognised and returned as already uploading.
99
+ - **Transcripts** (`get_transcript`, Recordful Pro): starts transcription on first use and waits for it, including for an upload still in progress; returns `text`, `vtt` or both.
100
+ - **Videos**: `get_video` (links and upload stage, optionally waiting until ready), `list_videos`, `list_recordings` (local recordings). `stop_recording` now says where the recording went: a cloud video with its links, or a local recording to upload.
101
+ - **Clear about plans**: `get_status` reports `plan` (`pro`, `free`, `signed-out`, `unavailable`). On other plans, uploads and transcripts fail at once with `PRO_REQUIRED` or `NOT_SIGNED_IN`, saying what still works (recording, page tools, the editor) and linking the upgrade page; the agent instructions, prompt and skill tell agents to check first and not retry.
102
+ - **A real CLI**: `start`, `pause`, `resume`, `stop`, `recordings`, `upload`, `videos`, `video`, `transcript`, `status`, each with readable output or `--json`. The first command starts a small background helper that holds Recordful's connection, so the user clicks the Recordful icon once.
103
+ - **Any number of AI apps at once**: a second recordful-mcp (another AI app, or the CLI) shares the first one's connection over an authenticated local peer channel, and takes the port over when the owner exits. `BRIDGE_UNAVAILABLE` now only means something else holds the port.
104
+ - MCP progress notifications while uploads and transcripts wait.
105
+ - Fixed: two recordful-mcp processes creating the pairing file at the same moment could disagree on the server's identity.
106
+ - Tests: 112, including the real CLI end to end and peer takeover. Verified live against recordful.app's stack: a spoken recording uploaded, transcribed and read back through both the CLI and MCP; free and signed-out accounts get clear answers.
107
+ - Needs Recordful 4.6.19 or newer (with the upload and transcript methods) and recordful.app with `GET /videos/:id/transcript?text=1`.
108
+
109
+ ## 0.3.0 (2026-10-17)
110
+
111
+ Ready for everyone: install with one line in any AI app, pair with one click, no tokens or builds.
112
+
113
+ - **Pairing replaces tokens.** The first time an AI app connects, Recordful opens a window naming the app with a 4-digit code; the agent gets `PAIRING_PENDING` with the same code to show in chat. On Allow, both sides keep a fresh per-pairing secret. Pairing happens once per computer, shared by every AI app (protocol v2, new path `/recordful-agent-bridge/v2`).
114
+ - **Ships in Recordful itself**, off until the user turns on AI agents (Recordful popup → More → AI agents). That page has the switch, connection status, the setup command and paired apps with Forget. The toolbar icon shows an "AI" badge while an app is connected.
115
+ - **Only the official extension by default.** The Chrome Web Store build is allowed out of the box; `RECORDFUL_BRIDGE_ALLOWED_EXTENSION_IDS` adds development builds (`*` allows any).
116
+ - **`record_feature` prompt**: the whole plan-and-record workflow, available in every MCP client that supports prompts.
117
+ - **Fail-fast starts**: in tab capture modes, `start_recording` on a tab the user hasn't handed over returns `NOT_ARMED` at once instead of stalling, and targets the handed-over tab by default. A healthy start is no longer misreported as `START_FAILED` when it takes ~5 s.
118
+ - **One-step installs**: Claude Code plugin (MCP server, `record-demo` skill, `/record-demo` command) via `/plugin marketplace add iKislay/recordful-mcp`; Claude Desktop extension (`recordful.mcpb`, `npm run pack:mcpb`); MCP Registry entry (`server.json`).
119
+ - CLI: `setup` prints the configuration for each AI app, `status` shows the pairing state, `unpair` forgets pairings. `token` is gone.
120
+ - Agent instructions and errors cover first-run setup (`NOT_CONNECTED`, `PAIRING_PENDING`, `PAIRING_DENIED`, `NOT_ARMED`).
121
+ - Live test `scripts/live-pairing.mjs`: switch on, pairing window, code match, Allow, reconnect without prompting, fail-fast start, Deny, switch off. All 15 checks pass in Edge 155.
122
+ - Needs Recordful with the AI agents page (iKislay/recordful after 4.6.15).
123
+
124
+ ## 0.2.0 (2026-10-17)
125
+
126
+ Phase 1: page tools, so an agent with no browser tool of its own can record a feature end to end.
127
+
128
+ - MCP tools `navigate`, `snapshot`, `click`, `type`, `press`, `scroll`, `wait_for` and `screenshot` (image content), over new protocol methods `page.*`. Inputs are validated with zod before they reach the extension, and the `call` CLI validates page methods the same way. Protocol version unchanged (methods were added, nothing changed shape).
129
+ - They act only on the tab the user handed over by clicking the Recordful icon, or the tab being recorded. The extension draws its own cursor, glides it to each target, highlights clicks and types at a human pace.
130
+ - New error codes: `NOT_ARMED`, `TAB_NOT_ACTIVE`, `PAGE_NOT_SCRIPTABLE`, `STALE_REF`, `ELEMENT_NOT_INTERACTABLE`, `ELEMENT_OBSCURED`, `NAVIGATION_FAILED`, `WAIT_TIMEOUT`. An extension build without page tools gets a hint to rebuild.
131
+ - Agent instructions now cover the whole flow: plan, ask for the click on the Recordful icon, navigate, start, act with page tools, pause while thinking, stop.
132
+ - `scripts/live-spike.mjs --pages` exercises every page tool live; `--port` runs alongside an MCP client's bridge.
133
+ - Verified live in Edge 155: every page tool, tab targeting, stale refs and navigations, including during a live tab recording. See `docs/phase-1-findings.md`.
134
+ - Needs a Recordful development build (`npm run build:agent`) that includes the page tools: iKislay/recordful after 4.6.15.
135
+
136
+ ## 0.1.0 (2026-10-17)
137
+
138
+ First release: Phase 0 of letting AI agents drive the Recordful recorder.
139
+
140
+ - MCP server on stdio (`recordful-mcp`), built on the official SDK, with tools `get_status`, `start_recording`, `pause_recording`, `resume_recording`, `stop_recording` and `probe_capture`, plus agent instructions for the record-a-feature workflow.
141
+ - Loopback WebSocket bridge to the Recordful extension: mutual HMAC-SHA256 challenge-response over a per-user pairing token, Origin and extension-ID allowlist, a single superseding session, heartbeat, request timeouts and port supervision.
142
+ - CLI: `serve` (the default), `token [--rotate]`, `call <method> [json]`.
143
+ - Verified in Chrome: after one click on the Recordful icon, the agent started, paused, resumed and stopped recordings, and the web editor opened on stop. Chrome requires that click before tab capture; see `docs/phase-0-findings.md`.
144
+ - 34 unit and integration tests, CI on Linux, macOS and Windows (Node 20 and 22), and a live end-to-end script (`scripts/live-spike.mjs`).
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Recordful MCP
2
+ [![Sponsor](https://img.shields.io/badge/Sponsor-%E2%9D%A4-ea4aaa?logo=githubsponsors&logoColor=white)](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
 
@@ -24,7 +25,7 @@ Or add it by hand:
24
25
  <details open>
25
26
  <summary><b>Claude Code</b></summary>
26
27
 
27
- The plugin adds the server, a `record-demo` skill and a `/record-demo` command:
28
+ The plugin adds the server, a `record-demo` skill, a `recordful-motion` skill (motion graphics that don't look AI-made) and a `/record-demo` command:
28
29
 
29
30
  ```text
30
31
  /plugin marketplace add iKislay/recordful-mcp
@@ -109,7 +110,15 @@ Ask in plain words:
109
110
  - "Screenshot my Figma window." / "Take a screenshot of my whole screen." With the [Recordful desktop app](https://recordful.app/download), your AI screenshots the desktop too: a screen, a window by name, or an area you drag. Turn it on once in the app: **Settings → AI agents → Let AI agents take screenshots**. Each screenshot opens in the app's editor, with a notification naming the AI that took it.
110
111
  - "Upload that and give me the link." / "What did I say in the last recording?" (Recordful Pro)
111
112
 
112
- 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. While an app is connected, Recordful's icon shows an **AI** badge.
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.
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.
113
122
 
114
123
  ### Free and Pro
115
124
 
@@ -117,8 +126,15 @@ The AI works out the flow, uses test data (never your real accounts), records wi
117
126
  | --- | --- | --- |
118
127
  | Record, drive the page, open in Recordful's editor | ✓ | ✓ |
119
128
  | Upload to recordful.app and get a link | | ✓ |
120
- | Read back the transcript | | ✓ |
121
- | Rename, set who can watch, read views, likes and comments, comment, organise into folders, delete | | ✓ |
129
+ | Read back the transcript, or search it for a moment | | ✓ |
130
+ | AI summary and chapters (writing one spends AI credits) | | ✓ |
131
+ | Rename, set who can watch, lock the link with a password or end date | | ✓ |
132
+ | Views (where from, per day), likes and comments; your most viewed videos | | ✓ |
133
+ | Comment and delete comments, organise into folders | | ✓ |
134
+ | Delete to trash, see the trash, restore | | ✓ |
135
+ | See your team and invite someone (workspace owner) | | ✓ |
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.
122
138
 
123
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.
124
140
 
@@ -164,6 +180,7 @@ Details: [SECURITY.md](https://github.com/iKislay/recordful-mcp/blob/main/SECURI
164
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** |
165
181
  | Recording waits forever | Recordful may be asking something (microphone access, or the screen picker in screen mode). Answer it |
166
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 |
167
184
  | `BRIDGE_UNAVAILABLE` | Something other than recordful-mcp is using port 47823, or an older recordful-mcp is running. Update or close it |
168
185
  | No Recordful tools in the AI app | Check `node -v` is 20.10+, then restart the app |
169
186
 
package/dist/args.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // The CLI's argument parser: positional words and --flags, where some flags
2
2
  // take a value (--title "Demo" or --title=Demo) and the rest are switches.
3
3
  import { BridgeError, ErrorCode } from "./protocol/errors.js";
4
- const FLAGS_WITH_VALUES = new Set(["tab", "title", "visibility", "limit", "query", "format", "timeout", "target", "component", "body", "parent", "to", "look", "source", "window", "display"]);
4
+ const FLAGS_WITH_VALUES = new Set(["days", "expires", "tab", "title", "visibility", "limit", "query", "format", "timeout", "target", "component", "body", "parent", "to", "look", "source", "window", "display"]);
5
5
  export const parseArgs = (argv) => {
6
6
  const positional = [];
7
7
  const flags = {};
package/dist/args.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAO9D,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAE/L,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAA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