recordful-mcp 0.7.0 → 1.1.2

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 +33 -0
  2. package/README.md +181 -177
  3. package/dist/args.js +1 -1
  4. package/dist/args.js.map +1 -1
  5. package/dist/bridge/BridgeServer.js +1 -1
  6. package/dist/bridge/BridgeServer.js.map +1 -1
  7. package/dist/cli.js +104 -49
  8. package/dist/cli.js.map +1 -1
  9. package/dist/core/createRecordfulServer.d.ts +7 -0
  10. package/dist/core/createRecordfulServer.js +26 -0
  11. package/dist/core/createRecordfulServer.js.map +1 -1
  12. package/dist/desktop.d.ts +6 -0
  13. package/dist/desktop.js +51 -0
  14. package/dist/desktop.js.map +1 -0
  15. package/dist/guide.d.ts +3 -3
  16. package/dist/guide.js +5 -2
  17. package/dist/guide.js.map +1 -1
  18. package/dist/install.d.ts +1 -1
  19. package/dist/install.js +5 -1
  20. package/dist/install.js.map +1 -1
  21. package/dist/mcp/createMcpServer.js +14 -8
  22. package/dist/mcp/createMcpServer.js.map +1 -1
  23. package/dist/mcp/localTransport.js +1 -1
  24. package/dist/mcp/localTransport.js.map +1 -1
  25. package/dist/nativeHost.d.ts +16 -0
  26. package/dist/nativeHost.js +191 -0
  27. package/dist/nativeHost.js.map +1 -0
  28. package/dist/protocol/methods.d.ts +1 -0
  29. package/dist/protocol/methods.js +2 -0
  30. package/dist/protocol/methods.js.map +1 -1
  31. package/dist/protocol/page.d.ts +15 -0
  32. package/dist/protocol/page.js +29 -0
  33. package/dist/protocol/page.js.map +1 -1
  34. package/dist/setupGuide.js +3 -0
  35. package/dist/setupGuide.js.map +1 -1
  36. package/dist/setupPrompt.d.ts +1 -1
  37. package/dist/setupPrompt.js +28 -28
  38. package/dist/skill.d.ts +1 -1
  39. package/dist/skill.js +2 -2
  40. package/dist/skill.js.map +1 -1
  41. package/package.json +64 -64
package/dist/install.js CHANGED
@@ -7,7 +7,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
7
7
  import { homedir, platform } from "node:os";
8
8
  import { dirname, join } from "node:path";
9
9
  import { SKILL_TEXT } from "./skill.js";
10
- export const TARGETS = ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini"];
10
+ export const TARGETS = ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini", "antigravity"];
11
11
  export const COMPONENTS = ["all", "mcp", "skill"];
12
12
  export const TARGET_NAMES = {
13
13
  claude: "Claude Code",
@@ -17,6 +17,7 @@ export const TARGET_NAMES = {
17
17
  vscode: "VS Code",
18
18
  windsurf: "Windsurf",
19
19
  gemini: "Gemini CLI",
20
+ antigravity: "Antigravity",
20
21
  };
21
22
  const SERVER = "recordful";
22
23
  const NPX_ARGS = ["-y", "recordful-mcp"];
@@ -145,6 +146,8 @@ const installMcp = (target, apply) => {
145
146
  return mergeJson(join(home(), ".codeium", "windsurf", "mcp_config.json"), "mcpServers", { command: "npx", args: NPX_ARGS }, apply);
146
147
  case "gemini":
147
148
  return mergeJson(join(home(), ".gemini", "settings.json"), "mcpServers", { command: "npx", args: NPX_ARGS }, apply);
149
+ case "antigravity":
150
+ return mergeJson(join(home(), ".gemini", "antigravity", "mcp_config.json"), "mcpServers", { command: "npx", args: NPX_ARGS }, apply);
148
151
  case "vscode":
149
152
  return mergeJson(join(vscodeUserDir(), "mcp.json"), "servers", { type: "stdio", command: "npx", args: NPX_ARGS }, apply);
150
153
  case "opencode":
@@ -161,6 +164,7 @@ const RESTART = {
161
164
  vscode: 'In VS Code, run "MCP: List Servers" and start recordful (or reload the window).',
162
165
  windsurf: "Restart Windsurf (or refresh MCP servers in Cascade).",
163
166
  gemini: "Restart Gemini CLI, then run /mcp to check the server.",
167
+ antigravity: "In Antigravity, open Manage MCP Servers and refresh (or restart Antigravity).",
164
168
  };
165
169
  export const install = (target, opts) => {
166
170
  const component = opts.component ?? "all";
@@ -1 +1 @@
1
- {"version":3,"file":"install.js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AuD;IACjE,MAAM,EAAE,wDAAwD;IAChE,WAAW,EAAE,+EAA+E;CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,IAA+C,EAAiB,EAAE;IACxG,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IAC1C,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QACxB,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,KAAK;YAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;AACxG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAK,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzI,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAc,EAAsB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAK,UAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { desktopCall } from "../desktop.js";
1
2
  import { createRecordfulServer } from "../core/createRecordfulServer.js";
2
3
  import { localTransport } from "./localTransport.js";
3
4
  const INSTRUCTIONS = `
@@ -5,15 +6,19 @@ Recordful records the user's browser so you can produce product demo videos. It
5
6
 
6
7
  Typical flow for "record feature X" (the record_feature prompt has the full version):
7
8
  1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
8
- 2. Ask the user to click the Recordful toolbar icon in Chrome on the tab to record. Chrome only lets an extension capture a tab after the user has invoked it there, and the same click connects Recordful to you. Nothing can do this click for them. Page tools only ever act on that tab.
9
- 3. Call get_status. It confirms the connection, shows the tab you were handed (recorder.agent.armedTab), and reports the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
10
- 4. Get to the starting page before recording: navigate(url), then snapshot() to check it loaded.
9
+ 2. Call get_status. Recordful usually connects to you by itself; if it says NOT_CONNECTED, see below. It shows the tab you were handed (recorder.agent.armedTab), the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
10
+ 3. Get to the starting page: navigate(url), then snapshot() to check it loaded. If no tab was handed to you, navigate opens a tab of your own (openedTab: true); page tools only ever act on that tab, a tab the user handed over, or the tab being recorded, never the user's other tabs.
11
+ 4. To record in tab or tab-area mode, ask the user to click the Recordful toolbar icon in Chrome on that tab once. Chrome only lets an extension capture a tab after the user has invoked it there, and nothing can do this click for them. Screen and camera modes don't need it.
11
12
  5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
12
13
  6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
13
14
  7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
14
15
  8. Call stop_recording. Recordful opens its editor with the recording automatically.
15
16
  9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
16
17
 
18
+ Screenshots to keep or share: navigate to the page (no click needed), then take_screenshot (mode "page" for the whole page). Pass look only if the user asked for one ("3d" for a 3D tilt, or a preset name); otherwise their default look is used: a wallpaper picked to match the screenshot's colours. It opens in Recordful's screenshot editor and returns no image, so you don't need screenshot to check it.
19
+
20
+ Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
21
+
17
22
  Free and Pro:
18
23
  - Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
19
24
  - Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
@@ -22,11 +27,11 @@ Free and Pro:
22
27
  Managing what's on recordful.app (Recordful Pro): update_video (rename, who may watch), get_video_activity (views, likes, comments), comment_on_video, like_video, list_folders, create_folder, move_videos, delete_video, get_storage. These change or publish things for the user, so show them exactly what you'll do and wait for their yes before update_video, comment_on_video, move_videos, create_folder or delete_video; delete_video also needs the exact video named and confirm: true. Comments are public to everyone who can watch the video: post only the text the user approved.
23
28
 
24
29
  First connection on a computer:
25
- - NOT_CONNECTED: ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
30
+ - NOT_CONNECTED: Recordful connects by itself once AI agents is on and it has paired with you. Otherwise ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
26
31
  - PAIRING_PENDING: Recordful opened a window asking the user to approve you. Tell them the 4-digit code from the error so they can check it matches, ask them to click Allow, then retry. This happens once per computer.
27
32
  - PAIRING_DENIED: the user declined. Don't retry unless they ask.
28
33
  - PERMISSIONS_NEEDED: Recordful's one-time browser permission to record hasn't been granted. Tell the user to turn AI agents off and on again in Recordful (popup → More → AI agents) and click Allow, then retry.
29
- - NOT_ARMED, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
34
+ - NOT_ARMED from a page tool: call navigate(url) first. From start_recording, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
30
35
  - NOT_SIGNED_IN or PRO_REQUIRED: uploads and transcripts need the user signed in to Recordful Pro. Relay the error's message (it says what still works); don't retry.
31
36
 
32
37
  If you have a browser tool of your own you can use it for the walkthrough instead, but Recordful's page tools make smoother videos.
@@ -38,9 +43,9 @@ export const recordFeaturePrompt = (feature, url) => `Record a product demo vide
38
43
  2. Get the app running. ${url ? `It should be at ${url}.` : "If it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves."} If it isn't running, start it in the background and wait until it answers.
39
44
  3. Prepare test data. Use test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as demo+<timestamp>@example.com with a generated password). Never type the user's real credentials or personal data; if real credentials are unavoidable, ask the user to sign in themselves first.
40
45
  4. Write a short shot list, 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.
41
- 5. Ask the user to click the Recordful icon in Chrome on the tab with the app. The first time only, they also turn on AI agents (Recordful popup → More → AI agents), and approve the pairing code you'll get back. Then call get_status, and note recorder.account.plan: links and transcripts need "pro".
42
- 6. navigate to the starting page and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
43
- 7. start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
46
+ 5. Call get_status, and note recorder.account.plan: links and transcripts need "pro". If it's NOT_CONNECTED, ask the user to click the Recordful icon in Chrome; the first time only, they also turn on AI agents (Recordful popup → More → AI agents) and approve the pairing code you'll get back.
47
+ 6. navigate to the starting page (it opens a tab of your own if none was handed over) and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
48
+ 7. If the recording mode is tab or tab area, ask the user to click the Recordful icon on that tab once (Chrome requires it before a tab can be recorded). Then start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
44
49
  8. If something goes wrong while recording (an error, the wrong page), pause, fix it, and resume. Stop and start over only if the mistake would confuse viewers.
45
50
  9. stop_recording. Recordful opens its editor with the video. Tell the user it's ready and summarise what the video shows in one or two sentences.
46
51
  10. If the plan is "pro" and the user wants to share it or check what was said: upload_recording (a cloud recording is already uploading), then get_transcript. On any other plan, don't attempt these; say once that shareable links and transcripts come with Recordful Pro.`;
@@ -50,5 +55,6 @@ export const createMcpServer = (deps) => createRecordfulServer({
50
55
  timeouts: deps.config,
51
56
  logger: deps.logger,
52
57
  version: deps.version,
58
+ desktop: desktopCall,
53
59
  });
54
60
  //# sourceMappingURL=createMcpServer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASrD,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BpB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,GAAY,EAAU,EAAE,CAAC,+DAA+D,OAAO;;;0BAG1H,GAAG,CAAC,CAAC,CAAC,mBAAmB,GAAG,GAAG,CAAC,CAAC,CAAA,6HAA6H;;;;;;;;+QAQuF,CAAC;AAEhR,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAmB,EAAa,EAAE,CAChE,qBAAqB,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE;IACzD,QAAQ,EAAE,IAAI,CAAC,MAAM;IACrB,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,OAAO,EAAE,IAAI,CAAC,OAAO;CACtB,CAAC,CAAC"}
1
+ {"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASrD,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCpB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,GAAY,EAAU,EAAE,CAAC,+DAA+D,OAAO;;;0BAG1H,GAAG,CAAC,CAAC,CAAC,mBAAmB,GAAG,GAAG,CAAC,CAAC,CAAA,6HAA6H;;;;;;;;+QAQuF,CAAC;AAEhR,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAmB,EAAa,EAAE,CAChE,qBAAqB,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE;IACzD,QAAQ,EAAE,IAAI,CAAC,MAAM;IACrB,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC"}
@@ -19,7 +19,7 @@ export const localTransport = (bridge) => ({
19
19
  },
20
20
  hint: pairing
21
21
  ? `Recordful is waiting for the user to approve this app. Ask them to check the code ${pairing.code} and click Allow.`
22
- : "Ask the user to click the Recordful toolbar icon in Chrome on the tab to record. The first time only, they also turn on AI agents (Recordful popup → More → AI agents).",
22
+ : "Ask the user to click the Recordful toolbar icon in Chrome (after that Recordful reconnects by itself). The first time only, they also turn on AI agents (Recordful popup → More → AI agents).",
23
23
  };
24
24
  },
25
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"localTransport.js","sourceRoot":"","sources":["../../src/mcp/localTransport.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAqB,EAAE,CAAC,CAAC;IACpE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;QACzB,MAAM,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC;IACjF,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QAClD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;QAC1C,OAAO;YACL,SAAS,EAAE,OAAO,KAAK,IAAI;YAC3B,MAAM,EAAE;gBACN,oEAAoE;gBACpE,qEAAqE;gBACrE,IAAI;gBACJ,KAAK;gBACL,kBAAkB,EAAE,OAAO,KAAK,IAAI;gBACpC,OAAO;gBACP,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI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ACF,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const NATIVE_HOST_NAME = "app.recordful.bridge";
2
+ export interface RegisterOptions {
3
+ extensionIds: string[];
4
+ cliPath: string;
5
+ nodePath?: string;
6
+ home?: string;
7
+ os?: NodeJS.Platform;
8
+ runReg?: (args: string[]) => {
9
+ status: number | null;
10
+ stdout: string;
11
+ };
12
+ }
13
+ export declare const registerNativeHost: (opts: RegisterOptions) => string[];
14
+ export declare const encodeFrame: (msg: unknown) => Buffer;
15
+ export declare const createFrameReader: (onMessage: (msg: unknown) => void) => (chunk: Buffer) => void;
16
+ export declare const runNativeHost: (origin: string | undefined) => void;
@@ -0,0 +1,191 @@
1
+ // The relay that lets Recordful connect with no click. Chrome starts it
2
+ // (`recordful-mcp native-host`) when the extension calls connectNative; it
3
+ // watches the bridge port without Chrome logging anything, tells the
4
+ // extension when the bridge is up, and then carries WebSocket frames between
5
+ // them. It never reads them: the pairing proof is still end to end.
6
+ //
7
+ // The MCP server registers it each time it starts (registerNativeHost), so
8
+ // the launcher always points at the recordful-mcp that is running.
9
+ import { spawnSync } from "node:child_process";
10
+ import { chmodSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
11
+ import { connect } from "node:net";
12
+ import { homedir, platform } from "node:os";
13
+ import { dirname, join } from "node:path";
14
+ import WebSocket from "ws";
15
+ export const NATIVE_HOST_NAME = "app.recordful.bridge";
16
+ const PROBE_MS = 2_000;
17
+ // Browsers read their own registry key (Windows) or folder (macOS, Linux).
18
+ const WINDOWS_KEYS = [
19
+ "Software\\Google\\Chrome",
20
+ "Software\\Microsoft\\Edge",
21
+ "Software\\BraveSoftware\\Brave-Browser",
22
+ "Software\\Chromium",
23
+ ];
24
+ const browserDirs = (home, os) => os === "darwin"
25
+ ? ["Google/Chrome", "Microsoft Edge", "BraveSoftware/Brave-Browser", "Chromium"].map((d) => join(home, "Library", "Application Support", d))
26
+ : ["google-chrome", "microsoft-edge", "BraveSoftware/Brave-Browser", "chromium"].map((d) => join(home, ".config", d));
27
+ const writeIfChanged = (path, text) => {
28
+ if (existsSync(path) && readFileSync(path, "utf8") === text)
29
+ return false;
30
+ mkdirSync(dirname(path), { recursive: true });
31
+ writeFileSync(path, text);
32
+ return true;
33
+ };
34
+ // Returns where the manifest went. Only a built recordful-mcp registers: a
35
+ // launcher can't start the TypeScript sources.
36
+ export const registerNativeHost = (opts) => {
37
+ if (!opts.cliPath.endsWith(".js") || opts.extensionIds.length === 0)
38
+ return [];
39
+ const os = opts.os ?? platform();
40
+ const home = opts.home ?? homedir();
41
+ const node = opts.nodePath ?? process.execPath;
42
+ const dir = join(home, ".recordful", "native-host");
43
+ const windows = os === "win32";
44
+ const launcher = join(dir, windows ? "recordful-native-host.cmd" : "recordful-native-host.sh");
45
+ // Claude Desktop runs .mcpb servers on its own Electron; without this the
46
+ // launcher would start the Claude app instead of the relay. Plain Node ignores it.
47
+ const launcherText = windows
48
+ ? `@echo off\r\nset ELECTRON_RUN_AS_NODE=1\r\n"${node}" "${opts.cliPath}" native-host %*\r\n`
49
+ : `#!/bin/sh\nELECTRON_RUN_AS_NODE=1 exec "${node}" "${opts.cliPath}" native-host "$@"\n`;
50
+ writeIfChanged(launcher, launcherText);
51
+ if (!windows)
52
+ chmodSync(launcher, 0o755);
53
+ const manifest = `${JSON.stringify({
54
+ name: NATIVE_HOST_NAME,
55
+ description: "Recordful agent relay (recordful-mcp)",
56
+ path: launcher,
57
+ type: "stdio",
58
+ allowed_origins: opts.extensionIds.map((id) => `chrome-extension://${id}/`),
59
+ }, null, 2)}\n`;
60
+ if (windows) {
61
+ const manifestPath = join(dir, `${NATIVE_HOST_NAME}.json`);
62
+ writeIfChanged(manifestPath, manifest);
63
+ const reg = opts.runReg ?? ((args) => {
64
+ const r = spawnSync("reg", args, { encoding: "utf8", windowsHide: true });
65
+ return { status: r.status, stdout: r.stdout ?? "" };
66
+ });
67
+ const done = [];
68
+ for (const browser of WINDOWS_KEYS) {
69
+ const key = `HKCU\\${browser}\\NativeMessagingHosts\\${NATIVE_HOST_NAME}`;
70
+ const current = reg(["query", key, "/ve"]);
71
+ if (current.status !== 0 || !current.stdout.includes(manifestPath)) {
72
+ if (reg(["add", key, "/ve", "/t", "REG_SZ", "/d", manifestPath, "/f"]).status !== 0)
73
+ continue;
74
+ }
75
+ done.push(key);
76
+ }
77
+ return done;
78
+ }
79
+ // Only browsers that are installed (their profile folder exists).
80
+ return browserDirs(home, os)
81
+ .filter((d) => existsSync(d))
82
+ .map((d) => {
83
+ const path = join(d, "NativeMessagingHosts", `${NATIVE_HOST_NAME}.json`);
84
+ writeIfChanged(path, manifest);
85
+ return path;
86
+ });
87
+ };
88
+ // ---- the relay -------------------------------------------------------------
89
+ // Chrome's framing: a 4-byte little-endian length, then UTF-8 JSON.
90
+ export const encodeFrame = (msg) => {
91
+ const body = Buffer.from(JSON.stringify(msg), "utf8");
92
+ const head = Buffer.alloc(4);
93
+ head.writeUInt32LE(body.length, 0);
94
+ return Buffer.concat([head, body]);
95
+ };
96
+ export const createFrameReader = (onMessage) => {
97
+ let buf = Buffer.alloc(0);
98
+ return (chunk) => {
99
+ buf = Buffer.concat([buf, chunk]);
100
+ while (buf.length >= 4) {
101
+ const len = buf.readUInt32LE(0);
102
+ if (buf.length < 4 + len)
103
+ return;
104
+ const body = buf.subarray(4, 4 + len).toString("utf8");
105
+ buf = buf.subarray(4 + len);
106
+ try {
107
+ onMessage(JSON.parse(body));
108
+ }
109
+ catch {
110
+ // A frame we can't read is dropped, not fatal.
111
+ }
112
+ }
113
+ };
114
+ };
115
+ const reachable = (port) => new Promise((resolve) => {
116
+ const s = connect({ host: "127.0.0.1", port });
117
+ const done = (ok) => {
118
+ s.destroy();
119
+ resolve(ok);
120
+ };
121
+ s.once("connect", () => done(true));
122
+ s.once("error", () => done(false));
123
+ s.setTimeout(1_000, () => done(false));
124
+ });
125
+ // `origin` is the first argument Chrome passes: chrome-extension://<id>/.
126
+ export const runNativeHost = (origin) => {
127
+ const send = (msg) => process.stdout.write(encodeFrame(msg));
128
+ let port = 0;
129
+ let path = "";
130
+ let ws = null;
131
+ let wasUp = false;
132
+ let probe = null;
133
+ const check = async () => {
134
+ // While a session is open the bridge is up by definition.
135
+ const up = ws !== null || (await reachable(port));
136
+ if (up && !wasUp && ws === null)
137
+ send({ t: "up" });
138
+ wasUp = up;
139
+ };
140
+ const open = () => {
141
+ ws?.terminate();
142
+ const socket = new WebSocket(`ws://127.0.0.1:${port}${path}`, {
143
+ // The bridge only takes Recordful's own origin, which Chrome vouched for.
144
+ origin: origin?.replace(/\/$/, ""),
145
+ handshakeTimeout: 5_000,
146
+ });
147
+ ws = socket;
148
+ socket.on("open", () => send({ t: "open" }));
149
+ socket.on("message", (data) => {
150
+ if (ws === socket)
151
+ send({ t: "msg", data: data.toString() });
152
+ });
153
+ socket.on("close", (code, reason) => {
154
+ // A socket the extension already replaced must not close the new one.
155
+ if (ws !== socket)
156
+ return;
157
+ ws = null;
158
+ send({ t: "close", code, reason: reason.toString() });
159
+ });
160
+ socket.on("error", () => { });
161
+ };
162
+ const handle = (raw) => {
163
+ const msg = raw;
164
+ if (msg?.t === "hello" && Number.isInteger(msg.port) && typeof msg.path === "string" && msg.path.startsWith("/")) {
165
+ port = msg.port;
166
+ path = msg.path;
167
+ if (!probe) {
168
+ void check();
169
+ probe = setInterval(() => void check(), PROBE_MS);
170
+ }
171
+ }
172
+ else if (msg?.t === "open" && port) {
173
+ open();
174
+ }
175
+ else if (msg?.t === "msg" && typeof msg.data === "string") {
176
+ if (ws?.readyState === WebSocket.OPEN)
177
+ ws.send(msg.data);
178
+ }
179
+ else if (msg?.t === "close" && ws) {
180
+ const code = Number(msg.code);
181
+ if (ws.readyState === WebSocket.OPEN)
182
+ ws.close(code === 1000 || (code >= 3000 && code < 5000) ? code : 1000, String(msg.reason ?? "").slice(0, 120));
183
+ else
184
+ ws.terminate();
185
+ }
186
+ };
187
+ process.stdin.on("data", createFrameReader(handle));
188
+ // Chrome closes our stdin when the extension disconnects or quits.
189
+ process.stdin.on("end", () => process.exit(0));
190
+ };
191
+ //# sourceMappingURL=nativeHost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeHost.js","sourceRoot":"","sources":["../src/nativeHost.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,2EAA2E;AAC3E,qEAAqE;AACrE,6EAA6E;AAC7E,oEAAoE;AACpE,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,SAAS,MAAM,IAAI,CAAC;AAE3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AACvD,MAAM,QAAQ,GAAG,KAAK,CAAC;AAcvB,2EAA2E;AAC3E,MAAM,YAAY,GAAG;IACnB,0BAA0B;IAC1B,2BAA2B;IAC3B,wCAAwC;IACxC,oBAAoB;CACrB,CAAC;AACF,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAmB,EAAY,EAAE,CAClE,EAAE,KAAK,QAAQ;IACb,CAAC,CAAC,CAAC,eAAe,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACvF,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAChD;IACH,CAAC,CAAC,CAAC,eAAe,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAA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Method: {
14
14
  readonly PageScroll: "page.scroll";
15
15
  readonly PageWaitFor: "page.waitFor";
16
16
  readonly PageScreenshot: "page.screenshot";
17
+ readonly ShotTake: "shot.take";
17
18
  readonly AccountGet: "account.get";
18
19
  readonly TakesList: "takes.list";
19
20
  readonly VideoUpload: "video.upload";
@@ -18,6 +18,8 @@ export const Method = {
18
18
  PageScroll: "page.scroll",
19
19
  PageWaitFor: "page.waitFor",
20
20
  PageScreenshot: "page.screenshot",
21
+ // A Recordful screenshot of that tab, opened in the screenshot editor.
22
+ ShotTake: "shot.take",
21
23
  // Recordings once they exist: uploads, cloud videos, transcripts (see video.ts).
22
24
  AccountGet: "account.get",
23
25
  TakesList: "takes.list",
@@ -1 +1 @@
1
- {"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/protocol/methods.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,gFAAgF;AAEhF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,yEAAyE;IACzE,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,iFAAiF;IACjF,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,kBAAkB;IACnC,yDAAyD;IACzD,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC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AY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,aAAa;CACjB,CAAC;AAGX,MAAM,CAAC,MAAM,OAAO,GAAsB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAmB,EAAE,CACxD,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
@@ -43,6 +43,21 @@ export declare const pageParams: {
43
43
  timeoutMs: z.ZodOptional<z.ZodNumber>;
44
44
  };
45
45
  "page.screenshot": {};
46
+ "shot.take": {
47
+ source: z.ZodOptional<z.ZodEnum<{
48
+ area: "area";
49
+ screen: "screen";
50
+ tab: "tab";
51
+ window: "window";
52
+ }>>;
53
+ window: z.ZodOptional<z.ZodString>;
54
+ display: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"main">]>>;
55
+ mode: z.ZodOptional<z.ZodEnum<{
56
+ page: "page";
57
+ visible: "visible";
58
+ }>>;
59
+ look: z.ZodOptional<z.ZodString>;
60
+ };
46
61
  };
47
62
  export type PageMethod = keyof typeof pageParams;
48
63
  export type PageParams<M extends PageMethod> = z.infer<z.ZodObject<(typeof pageParams)[M]>>;
@@ -122,6 +122,32 @@ export const pageParams = {
122
122
  .describe("How long to wait, in milliseconds (default 10000)."),
123
123
  },
124
124
  [Method.PageScreenshot]: {},
125
+ [Method.ShotTake]: {
126
+ source: z
127
+ .enum(["tab", "screen", "window", "area"])
128
+ .optional()
129
+ .describe('"tab" (default): the tab handed to Recordful in Chrome. With the Recordful desktop app: "screen" a whole display, "window" one window by name (see list_windows), "area" one the user drags.'),
130
+ window: z
131
+ .string()
132
+ .trim()
133
+ .max(200)
134
+ .optional()
135
+ .describe('For source "window": part of the window title or app name, e.g. "Figma" or "Pricing".'),
136
+ display: z
137
+ .union([z.number().int().min(1).max(16), z.literal("main")])
138
+ .optional()
139
+ .describe('For source "screen": 1 for the first display, or "main" (the default).'),
140
+ mode: z
141
+ .enum(["visible", "page"])
142
+ .optional()
143
+ .describe('"visible" (default): what is on screen. "page": the whole page, scrolled and stitched.'),
144
+ look: z
145
+ .string()
146
+ .trim()
147
+ .max(40)
148
+ .optional()
149
+ .describe('Only if the user asked for a look: "3d" for a 3D tilt, or a preset (Clean, Window, Glass, Spotlight, Midnight, Bold, None). Leave it out otherwise: the default puts the screenshot on a wallpaper that suits its colours, with rounded corners and a shadow.'),
150
+ },
125
151
  };
126
152
  export const isPageMethod = (method) => Object.prototype.hasOwnProperty.call(pageParams, method);
127
153
  const exactlyOne = (params, a, b) => {
@@ -166,6 +192,9 @@ export const pageExtraWaitMs = (method, params) => {
166
192
  return typeof params.timeoutMs === "number" ? params.timeoutMs : 10_000;
167
193
  case Method.PageScroll:
168
194
  return 5_000;
195
+ case Method.ShotTake:
196
+ // A full page is captured at most twice a second, frame by frame.
197
+ return params.mode === "page" ? 60_000 : 10_000;
169
198
  default:
170
199
  return 0;
171
200
  }
@@ -1 +1 @@
1
- {"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/protocol/page.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,6EAA6E;AAC7E,2EAA2E;AAC3E,qEAAqE;AACrE,mEAAmE;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,6EAA6E;AAC7E,2CAA2C;AAC3C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,EAAE;KACR,KAAK,CAAC,iBAAiB,EAAE,0DAA0D,CAAC;KACpF,QAAQ,CAAC,mDAAmD,CAAC,CAAC;AAEjE,MAAM,OAAO,GAAG,CAAC;KACd,MAAM,EAA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KAAK,CAAC;QACf,KAAK,MAAM,CAAC,QAAQ;YAClB,kEAAkE;YAClE,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;QAClD;YACE,OAAO,CAAC,CAAC;IACb,CAAC;AACH,CAAC,CAAC"}
@@ -37,6 +37,9 @@ Codex CLI (~/.codex/config.toml)
37
37
  Gemini CLI (~/.gemini/settings.json)
38
38
  { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
39
39
 
40
+ Antigravity (~/.gemini/antigravity/mcp_config.json, or Manage MCP Servers → View raw config)
41
+ { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
42
+
40
43
  Any other app that runs local (stdio) MCP servers: command "npx", arguments "-y recordful-mcp".
41
44
 
42
45
  Then, in Chrome:
@@ -1 +1 @@
1
- {"version":3,"file":"setupGuide.js","sourceRoot":"","sources":["../src/setupGuide.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,kDAAkD;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CvC,CAAC"}
1
+ {"version":3,"file":"setupGuide.js","sourceRoot":"","sources":["../src/setupGuide.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,kDAAkD;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CvC,CAAC"}
@@ -1 +1 @@
1
- export declare const SETUP_PROMPT = "Set up Recordful as my screen-recording assistant, then use it for the task at the end.\n\nBy pasting this prompt I authorize these local setup steps for the AI app you are running in, and only this one: run the official recordful-mcp package with npx and add the Recordful MCP entry and skill to your own configuration. Do them yourself; don't ask me to run or copy commands, and don't ask me to confirm them again. This does not cover recording, uploading, or changing anything on recordful.app; ask me first for each of those.\n\nDon't rely on remembered commands. Read the installed contract: run `npx -y recordful-mcp guide --json` and `npx -y recordful-mcp --help`. JSON on stdout is the source of truth, stderr is progress, exit code 1 is a failure, exit code 2 means a transcript isn't ready yet.\n\nRecordful-first routing: for anything about recording my browser, uploading the recording or reading its transcript, use the Recordful MCP tools or the recordful-mcp command line, never your own browser, computer-use or screen-capture tools. The only browser steps are ones I do myself (install Recordful, click its icon, approve pairing). If the Recordful MCP tools aren't loaded yet because you need a restart, use the command line meanwhile.\n\nSet up:\n1. Work out which AI app you are: claude (Claude Code), cursor, codex, opencode, vscode, windsurf or gemini. Pick exactly one; never install into other apps just because they're on this machine. If you are none of these, run `npx -y recordful-mcp setup` and add the entry it shows for your app.\n2. Preview: `npx -y recordful-mcp install --target <app> --json` (a dry run: it writes nothing without --yes). Read the paths and actions it returns.\n3. Apply: `npx -y recordful-mcp install --target <app> --yes --json`. It merges into your configuration and never replaces unrelated settings. If a change comes back as \"manual\", do exactly what its detail says.\n4. Run `npx -y recordful-mcp status --json`. Tell me what is installed (the exact file paths), whether you need to be restarted to load the MCP server and skill, and these steps only I can do in Chrome:\n - Install Recordful from the Chrome Web Store: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc\n - Once: open Recordful's popup \u2192 More \u2192 AI agents, and turn it on (Chrome asks to allow screen recording; click Allow).\n - Each time you want to record: click the Recordful icon on the tab. Chrome requires that click, and it connects Recordful to you.\n - Once per computer: Recordful shows a 4-digit code. Check it matches the one you tell me, then click Allow.\n5. From now on treat Recordful as the default way to record my browser. Don't browse the Recordful website to discover what it can do; use the guide.\n\nUsing Recordful:\n- Recording works on every plan. Uploading, share links and transcripts need Recordful Pro; the status shows my plan. On the free plan, say once that links and transcripts need Pro (recordful.app/upgrade) and carry on with the recording.\n- Plan a short walkthrough first and show it to me. Ask before you start recording and again before you upload anything.\n- Use test accounts and data only. Never type my real credentials or personal data into a page.\n- Never ask me to paste a password, token or key into chat. Recordful holds its own sign-in; you never see it.\n- Pause the recording while you think and resume right before you act, so the video has no dead air.\n- Report only what you verified: the stage, the links and the transcript text that came back.\n\nMy task: Complete the Recordful setup now, tell me exactly what is installed and what needs a restart, tell me what you can help me do with it, and ask what I want to record first.\n";
1
+ export declare const SETUP_PROMPT = "Set up Recordful as my screen-recording assistant, then use it for the task at the end.\n\nBy pasting this prompt I authorize these local setup steps for the AI app you are running in, and only this one: run the official recordful-mcp package with npx and add the Recordful MCP entry and skill to your own configuration. Do them yourself; don't ask me to run or copy commands, and don't ask me to confirm them again. This does not cover recording, uploading, or changing anything on recordful.app; ask me first for each of those.\n\nDon't rely on remembered commands. Read the installed contract: run `npx -y recordful-mcp guide --json` and `npx -y recordful-mcp --help`. JSON on stdout is the source of truth, stderr is progress, exit code 1 is a failure, exit code 2 means a transcript isn't ready yet.\n\nRecordful-first routing: for anything about recording my browser, uploading the recording or reading its transcript, use the Recordful MCP tools or the recordful-mcp command line, never your own browser, computer-use or screen-capture tools. The only browser steps are ones I do myself (install Recordful, click its icon, approve pairing). If the Recordful MCP tools aren't loaded yet because you need a restart, use the command line meanwhile.\n\nSet up:\n1. Work out which AI app you are: claude (Claude Code), cursor, codex, opencode, vscode, windsurf, gemini or antigravity. Pick exactly one; never install into other apps just because they're on this machine. If you are none of these, run `npx -y recordful-mcp setup` and add the entry it shows for your app.\n2. Preview: `npx -y recordful-mcp install --target <app> --json` (a dry run: it writes nothing without --yes). Read the paths and actions it returns.\n3. Apply: `npx -y recordful-mcp install --target <app> --yes --json`. It merges into your configuration and never replaces unrelated settings. If a change comes back as \"manual\", do exactly what its detail says.\n4. Run `npx -y recordful-mcp status --json`. Tell me what is installed (the exact file paths), whether you need to be restarted to load the MCP server and skill, and these steps only I can do in Chrome:\n - Install Recordful from the Chrome Web Store: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc\n - Once: open Recordful's popup \u2192 More \u2192 AI agents, and turn it on (Chrome asks to allow screen recording; click Allow).\n - When you want a tab recorded: click the Recordful icon on that tab once. Chrome requires that click. Everything else connects by itself.\n - Once per computer: Recordful shows a 4-digit code. Check it matches the one you tell me, then click Allow.\n5. From now on treat Recordful as the default way to record my browser. Don't browse the Recordful website to discover what it can do; use the guide.\n\nUsing Recordful:\n- Recording works on every plan. Uploading, share links and transcripts need Recordful Pro; the status shows my plan. On the free plan, say once that links and transcripts need Pro (recordful.app/upgrade) and carry on with the recording.\n- Plan a short walkthrough first and show it to me. Ask before you start recording and again before you upload anything.\n- Use test accounts and data only. Never type my real credentials or personal data into a page.\n- Never ask me to paste a password, token or key into chat. Recordful holds its own sign-in; you never see it.\n- Pause the recording while you think and resume right before you act, so the video has no dead air.\n- Report only what you verified: the stage, the links and the transcript text that came back.\n\nMy task: Complete the Recordful setup now, tell me exactly what is installed and what needs a restart, tell me what you can help me do with it, and ask what I want to record first.\n";