diff --git a/.github/scripts/build-plugin-mirror.mjs b/.github/scripts/build-plugin-mirror.mjs index 977586516..ab1cad46e 100644 --- a/.github/scripts/build-plugin-mirror.mjs +++ b/.github/scripts/build-plugin-mirror.mjs @@ -49,7 +49,19 @@ const DIRECTORY_DROPS = [".mcp.json", "scripts"]; // reads `network` (the hosts the plugin reaches), but the directory does not list it. const DIRECTORY_MANIFEST_DROPS = ["network"]; // Words that would point Claude at something the directory edition does not ship. -const DANGLING = [/\.mjs\b/, /openscreenSetup/, /\/reload-plugins/, /\b(the|plugin.s) launcher\b/]; +// The directory also refuses text that registers an MCP server the plugin does not declare, +// or that downloads and runs code without a pinned version and checksum. +const DANGLING = [ + /\bmcp add\b/, + /\bwinget\b/, + /\bgh release\b/, + /releases\/latest/, + /\/plugin marketplace add\b/, + /\.mjs\b/, + /openscreenSetup/, + /\/reload-plugins/, + /\b(the|plugin.s) launcher\b/, +]; function walk(dir, root = dir) { return readdirSync(dir).flatMap((name) => { diff --git a/plugin/README.md b/plugin/README.md index e17a1c279..5d0fed1b5 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -4,7 +4,7 @@ This plugin turns one sentence into a finished demo video of an app or a feature OpenScreen is a free, open-source (MIT) screen recorder and video editor for Windows, macOS and Linux. The plugin carries several skills and OpenScreen's MCP server, so the recording and editing tools are there as soon as the plugin is enabled. The tools themselves come from the desktop app's own executable, started with `mcp`. ## The skills @@ -24,9 +24,9 @@ This edition of the plugin carries the skills. The recording and editing tools c - **Explains instead of failing when the app is missing.** If OpenScreen is not installed, is older than 2.1.0 or cannot start, the script serves one tool, `openscreenSetup`, that tells Claude what it checked and how to set OpenScreen up. -- **Installs OpenScreen, only after you agree.** If the app is missing, a skill offers to download the latest installer from [the project's GitHub releases](https://github.com/getopenscreen/openscreen/releases/latest), or the Microsoft Store on Windows, and install it. +- **Installs OpenScreen, only after you agree.** If the app is missing, a skill offers to download the latest installer from [the project's GitHub releases](https://github.com/getopenscreen/openscreen/releases/latest), or the Microsoft Store on Windows, and install it. - **Records the window you choose.** The recording and the project stay on your machine. The exported video leaves it only when you share it, as below. - **Attaches the video to a pull request** with `gh`, on the repository you work in, when you ask for a pull request video. - **Drafts a post on X** for a launch demo, and posts it only after your explicit yes. @@ -47,9 +47,7 @@ The server needs Node.js on the PATH. Without it, or in an agent without plugin Documentation: [Letting an agent make the whole video](https://getopenscreen.com/docs/ai-editing/#letting-an-agent-make-the-whole-video). diff --git a/plugin/skills/openscreen-demo/SKILL.md b/plugin/skills/openscreen-demo/SKILL.md index 25188da7a..a114358d3 100644 --- a/plugin/skills/openscreen-demo/SKILL.md +++ b/plugin/skills/openscreen-demo/SKILL.md @@ -24,16 +24,6 @@ If you have only the tool `openscreenSetup`, the plugin's launcher is running bu - **The agent has no plugin support,** or you work in Codex, Cursor or another agent: register the server by hand, as below. **The app.** Its executable is the MCP server. The launcher checks these locations, and the environment variable `OPENSCREEN_EXE` overrides them: - - | OS | Executable | |---|---| @@ -48,22 +38,17 @@ Check every location in the table before you call OpenScreen missing: the Store - **Windows:** the Microsoft Store (`winget install --source msstore OpenScreen`), or the `Openscreen.Setup..exe` installer, run with `/S /currentuser` for a silent install for the current user. - **Linux:** the `.deb`, `.rpm` or `.pacman` for the distribution, or the `.AppImage` made executable. 2. Check `help` again. If even the latest release does not list `mcp`, this OpenScreen feature is not released yet: say so and stop. - 3. With the plugin, run `/reload-plugins` or start a new session: the launcher now finds the app. **The MCP server by hand,** only without the plugin's server: add it to the agent, then the tools load in the next session. - **Claude Code:** `claude mcp add openscreen -- "" mcp`. Not alongside the plugin's server, which would give you every tool twice. +- **Codex:** `codex mcp add openscreen -- "" mcp` +- **Cursor and others:** a stdio server with the executable as `command` and `["mcp"]` as `args`. -- **Codex:** `codex mcp add openscreen -- "" mcp` -- **Cursor and others:** a stdio server with the executable as `command` and `["mcp"]` as `args`. **Permissions.** - **macOS:** the app that runs the agent needs, in System Settings → Privacy & Security, the Screen Recording permission to record at all, and the Accessibility permission for OpenScreen to record the pointer's clicks and shapes. Without Accessibility a take driven with the real mouse gets no zoom on its clicks: grant it, or hand the clicks over with `setPointerTrack` as for a scripted take. @@ -172,7 +157,7 @@ Keep the rest as it is: the background, padding, shadow and cursor style are cho While you edit, you can call `getFrames` and `getContactSheet` with the `projectId` before exporting: without a current export they render the frames the export would show. -If a tool named here is not in your tool list (`getContactSheet`, `getAudioReport`, or `region`, `startSec` and `endSec` on `getFrames`), the installed OpenScreen is older than this skill: offer to update it as in step 1, or fall back to `getFrames` with `atSec`. +If a tool named here is not in your tool list (`getContactSheet`, `getAudioReport`, or `region`, `startSec` and `endSec` on `getFrames`), the installed OpenScreen is older than this skill: offer to update it as in step 1, or fall back to `getFrames` with `atSec`. ## 8. Deliver diff --git a/plugin/skills/openscreen-effects/SKILL.md b/plugin/skills/openscreen-effects/SKILL.md index 275ff7703..7dc4c8984 100644 --- a/plugin/skills/openscreen-effects/SKILL.md +++ b/plugin/skills/openscreen-effects/SKILL.md @@ -11,7 +11,7 @@ compositor runs it on every output pixel, in the preview and in the export alike user asked; reach for settings first (`setEditorSettings`, zooms, annotations). If a tool this skill names is not in your tool list, the installed OpenScreen is older than this -skill: offer to update it (see the `openscreen-demo` skill, step 1), or fall back to what exists, +skill: offer to update it (see the `openscreen-demo` skill, step 1), or fall back to what exists, `getFrames` with `atSec` in place of `getContactSheet`, of `getBeforeAfter` and of `getFrames` `region`. diff --git a/plugin/skills/openscreen-motion/SKILL.md b/plugin/skills/openscreen-motion/SKILL.md index ad969b943..40156fc46 100644 --- a/plugin/skills/openscreen-motion/SKILL.md +++ b/plugin/skills/openscreen-motion/SKILL.md @@ -10,7 +10,7 @@ them time to read it, and get out of the way. Every rule below serves that. Appl place zooms, callouts and speed changes, and when you review an edit that looks busy or cheap. If a tool this skill names is not in your tool list, the installed OpenScreen is older than this -skill: offer to update it (see the `openscreen-demo` skill, step 1), or use `getFrames` with +skill: offer to update it (see the `openscreen-demo` skill, step 1), or use `getFrames` with `atSec` where this skill says `getContactSheet`. ## 1. One focus per shot diff --git a/plugin/skills/openscreen-review/SKILL.md b/plugin/skills/openscreen-review/SKILL.md index 44bda75de..e70ddfdc3 100644 --- a/plugin/skills/openscreen-review/SKILL.md +++ b/plugin/skills/openscreen-review/SKILL.md @@ -9,7 +9,7 @@ Run this on every film before it leaves the machine, and again after every fix. **Tools.** `getFrames` returns up to 12 frames per call; with `region` it returns only that part of the frame at the video's own resolution (up to 1280 px wide), and with `startSec` / `endSec` and `count` it spreads frames inside that window. `getContactSheet` returns one image of a grid of frames, each with its time printed on it, up to 36 per sheet, for the cost of one image. `getAudioReport` measures the sound as the export mixes it. `getBeforeAfter` pairs up to 6 moments as they were at a checkpoint and as they are now, and says where each pair differs: after a fix, it shows that the fix landed and that nothing else moved. With `projectId`, times are ruler seconds, the ones the document tools use. With `path`, they are the file's own seconds. -If `getContactSheet`, `getAudioReport` or `getBeforeAfter` is not in your tool list, or `getFrames` refuses `region`, `startSec` or `endSec`, the installed OpenScreen is older than this skill: offer to update it (the `openscreen-demo` skill's setup), or fall back to `getFrames` with `atSec` (up to 12 times per call, 0.1 s apart for a dense window). For the sound, the fallback is `exportAudio` then `ffmpeg -i -af ebur128=peak=true -f null -`, and it needs both: `exportAudio` in your tool list (older installs lack it too) and ffmpeg installed. Without them the sound cannot be measured: say so in the report. +If `getContactSheet`, `getAudioReport` or `getBeforeAfter` is not in your tool list, or `getFrames` refuses `region`, `startSec` or `endSec`, the installed OpenScreen is older than this skill: offer to update it (the `openscreen-demo` skill's setup), or fall back to `getFrames` with `atSec` (up to 12 times per call, 0.1 s apart for a dense window). For the sound, the fallback is `exportAudio` then `ffmpeg -i -af ebur128=peak=true -f null -`, and it needs both: `exportAudio` in your tool list (older installs lack it too) and ffmpeg installed. Without them the sound cannot be measured: say so in the report. ## Before you look diff --git a/plugin/skills/openscreen-sound/SKILL.md b/plugin/skills/openscreen-sound/SKILL.md index dcdb463aa..d4f3c0f91 100644 --- a/plugin/skills/openscreen-sound/SKILL.md +++ b/plugin/skills/openscreen-sound/SKILL.md @@ -10,7 +10,7 @@ Decide what leads, place it, then measure the mix instead of trusting it: you ca preview, and a render you did not measure is a guess. If a tool this skill names is not in your tool list, the installed OpenScreen is older than this -skill: offer to update it (see the `openscreen-demo` skill, step 1), or measure as in +skill: offer to update it (see the `openscreen-demo` skill, step 1), or measure as in "Without getAudioReport" below. ## 1. Keep it simple