@tmhs/screencast-mcp 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -82
- package/assets/cursor/arrow.png +0 -0
- package/dist/cli.js +360 -0
- package/dist/index.js +10 -2
- package/dist/prompts.js +16 -3
- package/dist/server.js +18 -0
- package/dist/tools/addMarker.js +6 -2
- package/dist/tools/bugReport.js +2 -2
- package/dist/tools/chapters.js +1 -1
- package/dist/tools/cursor.js +87 -0
- package/dist/tools/cutByTranscript.js +86 -0
- package/dist/tools/doctor.js +14 -1
- package/dist/tools/indexRecording.js +173 -0
- package/dist/tools/listVideoDevices.js +26 -0
- package/dist/tools/narrate.js +84 -0
- package/dist/tools/overlay.js +2 -0
- package/dist/tools/pauseRecording.js +44 -0
- package/dist/tools/pipeline.js +215 -19
- package/dist/tools/readEvents.js +1 -1
- package/dist/tools/resumeRecording.js +46 -0
- package/dist/tools/reviewRecording.js +1 -1
- package/dist/tools/searchRecording.js +73 -0
- package/dist/tools/startRecording.js +106 -67
- package/dist/tools/stepGuide.js +193 -0
- package/dist/tools/stopRecording.js +38 -3
- package/dist/tools/transcribe.js +4 -3
- package/dist/tools/zoom.js +1 -1
- package/dist/utils/audio.js +12 -4
- package/dist/utils/audioDevices.js +34 -4
- package/dist/utils/bugReport.js +1 -75
- package/dist/utils/captions.js +19 -6
- package/dist/utils/chapters.js +5 -0
- package/dist/utils/cursor.js +317 -0
- package/dist/utils/events.js +22 -4
- package/dist/utils/gpu.js +173 -0
- package/dist/utils/idle.js +10 -3
- package/dist/utils/keystrokes.js +2 -17
- package/dist/utils/lifecycle.js +85 -2
- package/dist/utils/media.js +4 -0
- package/dist/utils/monitors.js +5 -2
- package/dist/utils/narrate.js +224 -0
- package/dist/utils/pause.js +176 -0
- package/dist/utils/pipeline.js +154 -14
- package/dist/utils/recipes.js +67 -0
- package/dist/utils/recorder.js +163 -0
- package/dist/utils/recordingIndex.js +266 -0
- package/dist/utils/sessions.js +29 -5
- package/dist/utils/stepGuide.js +205 -0
- package/dist/utils/steps.js +88 -0
- package/dist/utils/targets.js +31 -7
- package/dist/utils/timeline.js +85 -0
- package/dist/utils/toolsets.js +17 -6
- package/dist/utils/transcriptCut.js +134 -0
- package/dist/utils/wgc.js +2 -2
- package/dist/wgcRecorder.js +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**An MCP server that lets an agent record the screen, _watch_ the footage, and make minimal ffmpeg edits — over stdio, on Windows.**
|
|
6
6
|
|
|
7
|
-
Capture the desktop, a monitor, a window, or a region; sample a recording into frames the agent can actually look at; trim, crop, redact, annotate, zoom toward clicks, and export for GitHub or social. No cloud service, no telemetry: ffmpeg and ffprobe behind
|
|
7
|
+
Capture the desktop, a monitor, a window, or a region; sample a recording into frames the agent can actually look at; trim, crop, redact, annotate, zoom toward clicks, and export for GitHub or social. No cloud service, no telemetry: ffmpeg and ffprobe behind <!--tool-count-->58<!--/tool-count--> typed tools.
|
|
8
8
|
|
|
9
9
|
**For developers who want their coding agent to see and prove UI changes on Windows**: bug repros, UI verification, and demo clips the agent records, checks, and edits itself. Capture is Windows-only; the watch and edit tools work on any OS with ffmpeg. Free for non-commercial use ([CC BY-NC-ND 4.0](#license)); [why not OBS, Playwright, or a screenshot MCP?](#why-not-just)
|
|
10
10
|
|
|
@@ -44,7 +44,7 @@ Capture the desktop, a monitor, a window, or a region; sample a recording into f
|
|
|
44
44
|
|
|
45
45
|
| Client | How |
|
|
46
46
|
| --- | --- |
|
|
47
|
-
| Claude Code | `claude mcp add screencast -- cmd /c npx -y @tmhs/screencast-mcp` |
|
|
47
|
+
| Claude Code | `claude mcp add screencast -- cmd /c npx -y @tmhs/screencast-mcp`, or the plugin (the server plus bug-repro, README-demo, and UI-verify skills): `/plugin install screencast --marketplace TMHSDigital/screencast-mcp` (older Claude Code: `/plugin marketplace add TMHSDigital/screencast-mcp`, then `/plugin install screencast@screencast-mcp`) |
|
|
48
48
|
| Claude Desktop | Download [`screencast-mcp.mcpb`](https://github.com/TMHSDigital/screencast-mcp/releases/latest/download/screencast-mcp.mcpb) from the latest release and open it (one click) |
|
|
49
49
|
| Cursor, VS Code, others | The JSON config below, or step-by-step on [Connect your client](https://tmhsdigital.github.io/screencast-mcp/connect.html) |
|
|
50
50
|
|
|
@@ -79,7 +79,7 @@ What it can do beyond record-and-look:
|
|
|
79
79
|
- **Zoom toward clicks.** Record with `events: true` and `zoom` glides in on each click and rings it, Screen Studio style.
|
|
80
80
|
- **Review before sharing.** In clients with MCP Apps, `review_recording` opens an inline player where a person trims and draws redaction boxes.
|
|
81
81
|
- **Find and cover secrets.** `find_text` reads the screen with Windows OCR and returns rectangles for `redact_region`.
|
|
82
|
-
- **One call, one encode.** `pipeline` runs trim, crop, redact, callouts, and an export as a single ffmpeg pass.
|
|
82
|
+
- **One call, one encode.** `pipeline` runs trim, crop, redact, callouts, and an export as a single ffmpeg pass; `recipe: "tutorial"` turns a raw recording into a cut, zoomed, normalized, captioned mp4.
|
|
83
83
|
- **Record a covered window.** `backend: "wgc"` records a window's own surface through Windows Graphics Capture.
|
|
84
84
|
|
|
85
85
|
### Why not just...
|
|
@@ -92,94 +92,113 @@ What it can do beyond record-and-look:
|
|
|
92
92
|
|
|
93
93
|
## Tools
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
<!-- tools:start -->
|
|
96
|
+
58 tools in 6 toolsets, generated from the server's own schemas by `npm run docs` (do not edit between the markers). Each name links to its reference page with every parameter, an example call, and what it returns; [`mcp-tools.json`](mcp-tools.json) is the same list as JSON, and [`llms-full.txt`](https://tmhsdigital.github.io/screencast-mcp/llms-full.txt) all of it in one file.
|
|
97
|
+
|
|
98
|
+
### Core
|
|
99
|
+
|
|
100
|
+
Always loaded, whatever `SCREENCAST_TOOLSETS` selects.
|
|
101
|
+
|
|
102
|
+
| Tool | What it does |
|
|
103
|
+
| --- | --- |
|
|
104
|
+
| [`get_media_info`](https://tmhsdigital.github.io/screencast-mcp/tools/get_media_info.html) | Probe a media file with ffprobe and return duration, resolution, frame rate, codecs, container format, and size. |
|
|
105
|
+
| [`doctor`](https://tmhsdigital.github.io/screencast-mcp/tools/doctor.html) | Check the setup: ffmpeg/ffprobe (FFmpeg 8+?), optional filters, capture devices, Windows OCR, settings, and enabled toolsets; `problems` says what is missing and how to fix it. Call on first use or when a tool reports a missing feature. |
|
|
96
106
|
|
|
97
107
|
### Capture
|
|
98
108
|
|
|
99
|
-
|
|
109
|
+
Record or screenshot the desktop, a monitor, a window, or a region. Every capture is an explicit tool call: nothing records on its own.
|
|
110
|
+
|
|
111
|
+
| Tool | What it does |
|
|
100
112
|
| --- | --- |
|
|
101
|
-
| `start_recording` | Start a background recording.
|
|
102
|
-
| `stop_recording` | Stop a
|
|
103
|
-
| `
|
|
104
|
-
| `
|
|
105
|
-
| `
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
108
|
-
| `read_events` | Read
|
|
109
|
-
| `add_marker` |
|
|
110
|
-
| `screenshot` | Capture
|
|
111
|
-
| `list_audio_devices` | List
|
|
112
|
-
| `
|
|
113
|
-
| `
|
|
113
|
+
| [`start_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/start_recording.html) | Start a background screen recording. Returns a session id; finalize it with stop_recording. Never auto-starts. |
|
|
114
|
+
| [`stop_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/stop_recording.html) | Stop a recording gracefully so the file is finalized; returns the path and duration. |
|
|
115
|
+
| [`pause_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/pause_recording.html) | Pause a recording; until resume_recording nothing is captured, and the gap is left out of the file, events, and markers. |
|
|
116
|
+
| [`resume_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/resume_recording.html) | Resume a paused recording (same target and settings). |
|
|
117
|
+
| [`save_replay`](https://tmhsdigital.github.io/screencast-mcp/tools/save_replay.html) | Save the last N seconds of a replay buffer (start_recording replayBufferSec) to an mp4; the buffer keeps running. |
|
|
118
|
+
| [`list_sessions`](https://tmhsdigital.github.io/screencast-mcp/tools/list_sessions.html) | List all recording sessions (active and finished) with their status, target, output path, and whether the process is still alive. |
|
|
119
|
+
| [`get_session`](https://tmhsdigital.github.io/screencast-mcp/tools/get_session.html) | Inspect a single recording session by id, including live status and whether its output file exists on disk. |
|
|
120
|
+
| [`read_events`](https://tmhsdigital.github.io/screencast-mcp/tools/read_events.html) | Read the input events (clicks, scroll, cursor, shortcuts, typing bursts) of a recording made with events: true, in video seconds and pixels; e.g. types: ['down'], then sample_frames there. |
|
|
121
|
+
| [`add_marker`](https://tmhsdigital.github.io/screencast-mcp/tools/add_marker.html) | Mark a labelled moment on a recording, live or at a second. Kept in the session and a sidecar; chapters and pipeline turn markers into chapters. |
|
|
122
|
+
| [`screenshot`](https://tmhsdigital.github.io/screencast-mcp/tools/screenshot.html) | Capture one PNG of the screen, a monitor, a window, or a region, returned inline and by path. |
|
|
123
|
+
| [`list_audio_devices`](https://tmhsdigital.github.io/screencast-mcp/tools/list_audio_devices.html) | List DirectShow audio devices and flag a likely loopback (Stereo Mix or a virtual-audio driver), for start_recording's audio.device. |
|
|
124
|
+
| [`list_video_devices`](https://tmhsdigital.github.io/screencast-mcp/tools/list_video_devices.html) | List DirectShow cameras for start_recording's webcam.device. |
|
|
125
|
+
| [`list_targets`](https://tmhsdigital.github.io/screencast-mcp/tools/list_targets.html) | List the desktop, monitors, and visible windows (topmost first, with capturability per backend). Each entry has a `target` string to pass as-is to capture tools; use it instead of guessing a title. |
|
|
114
126
|
|
|
115
127
|
### Watch
|
|
116
128
|
|
|
117
|
-
|
|
129
|
+
Turn footage into something a model can read: frames, contact sheets, diffs, OCR, and a searchable text timeline.
|
|
130
|
+
|
|
131
|
+
| Tool | What it does |
|
|
118
132
|
| --- | --- |
|
|
119
|
-
| `
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
133
|
+
| [`review_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/review_recording.html) | Open a recording for a person to review: in MCP Apps clients an inline player to scrub, trim, and redact, then export; elsewhere just the video's details. |
|
|
134
|
+
| [`player_frames`](https://tmhsdigital.github.io/screencast-mcp/tools/player_frames.html) | Preview frames for the review player: JPEGs on an even grid over the video plus frames at scene changes, with their real times. Used by the inline player; agents should use sample_frames or contact_sheet instead. *(app-only: called by the review player, not the agent)* |
|
|
135
|
+
| [`sample_frames`](https://tmhsdigital.github.io/screencast-mcp/tools/sample_frames.html) | Sample PNG frames from a video (by fps, timestamps, or scene changes) and return the first few inline so the model can see what happened. |
|
|
136
|
+
| [`contact_sheet`](https://tmhsdigital.github.io/screencast-mcp/tools/contact_sheet.html) | Tile timestamped frames of a video into one image to see a whole recording at a glance (the cheapest first look). |
|
|
137
|
+
| [`screen_diff`](https://tmhsdigital.github.io/screencast-mcp/tools/screen_diff.html) | Compare two screenshots or frames: SSIM score, changed share, and changed boxes in b's pixels, to check a UI change happened only where expected. |
|
|
138
|
+
| [`wait_for_change`](https://tmhsdigital.github.io/screencast-mcp/tools/wait_for_change.html) | Wait until part of the screen changes or settles, instead of guessing a sleep. Returns the elapsed time, changed regions (screenshot pixels; add `origin` for desktop), and the final state. |
|
|
139
|
+
| [`find_text`](https://tmhsdigital.github.io/screencast-mcp/tools/find_text.html) | OCR (built into Windows) on the screen, an image, or video frames, with line and match boxes in image pixels (add `origin` for desktop coordinates). Locate UI text or secrets (e.g. regex 'sk-\|ghp_\|api.?key') to redact. Best-effort: review results. |
|
|
140
|
+
| [`index_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/index_recording.html) | Build a recording's text timeline (<video>.index.json: OCR per scene, events, markers, transcript) for search_recording. |
|
|
141
|
+
| [`search_recording`](https://tmhsdigital.github.io/screencast-mcp/tools/search_recording.html) | Search an index_recording timeline (screen text, events, markers, transcript): timecoded hits, best first, secrets masked. No frames unless asked. |
|
|
142
|
+
|
|
143
|
+
### Edit
|
|
125
144
|
|
|
126
|
-
|
|
145
|
+
Cut, convert, compress, and redact. A tool that writes a file refuses to replace an existing `output` unless `overwrite: true`; default output paths are always unique.
|
|
127
146
|
|
|
128
|
-
| Tool |
|
|
147
|
+
| Tool | What it does |
|
|
129
148
|
| --- | --- |
|
|
130
|
-
| `trim` | Cut a sub-clip by
|
|
131
|
-
| `concat` | Join
|
|
132
|
-
| `convert` | Convert
|
|
133
|
-
| `export_gif` |
|
|
149
|
+
| [`trim`](https://tmhsdigital.github.io/screencast-mcp/tools/trim.html) | Cut a video down to one sub-clip by start + (end or duration). For several segments use clip; to combine with other edits use pipeline. |
|
|
150
|
+
| [`concat`](https://tmhsdigital.github.io/screencast-mcp/tools/concat.html) | Join videos end to end with hard cuts: stream copy when they match, else a re-encode (`mode` says which). For transitions use xfade_transition or assemble_highlights. |
|
|
151
|
+
| [`convert`](https://tmhsdigital.github.io/screencast-mcp/tools/convert.html) | Convert media to mp4, webm, or gif. For a size-bounded GIF/WebP prefer export_gif; for a smaller mp4, compress or export_preset. |
|
|
152
|
+
| [`export_gif`](https://tmhsdigital.github.io/screencast-mcp/tools/export_gif.html) | Export an animated GIF or WebP that fits a size budget (for PRs, issues, READMEs), stepping fps, width, and quality down until it fits. |
|
|
153
|
+
| [`crop`](https://tmhsdigital.github.io/screencast-mcp/tools/crop.html) | Crop a video to a pixel rectangle; one running off the frame is rejected. |
|
|
154
|
+
| [`scale`](https://tmhsdigital.github.io/screencast-mcp/tools/scale.html) | Resize a video to a target width and/or height and re-encode. Provide one side to keep the aspect ratio, or both to set an exact size. |
|
|
155
|
+
| [`speed`](https://tmhsdigital.github.io/screencast-mcp/tools/speed.html) | Change playback speed by a factor (>1 faster, <1 slower) and re-encode. Audio is retempo'd to match when the source has an audio track. |
|
|
156
|
+
| [`compress`](https://tmhsdigital.github.io/screencast-mcp/tools/compress.html) | Re-encode a video smaller (H.264 CRF ladder, optional width cap). For a platform target use export_preset. |
|
|
157
|
+
| [`clip`](https://tmhsdigital.github.io/screencast-mcp/tools/clip.html) | Extract several frame-exact segments, each to its own file. For one segment, trim does the same. |
|
|
158
|
+
| [`cut_idle`](https://tmhsdigital.github.io/screencast-mcp/tools/cut_idle.html) | Remove dead air: cut stretches where the screen is frozen (and silent), keeping a short pad. Returns the time saved. |
|
|
159
|
+
| [`cut_by_transcript`](https://tmhsdigital.github.io/screencast-mcp/tools/cut_by_transcript.html) | Edit a video by its transcript: cut quoted text, cue numbers, or fillers. Also writes the re-timed .srt. |
|
|
160
|
+
| [`redact_region`](https://tmhsdigital.github.io/screencast-mcp/tools/redact_region.html) | Cover given rectangles in a video (e.g. secrets on screen). Not automatic detection: find them with find_text redact: true. Off-frame regions are rejected. |
|
|
161
|
+
| [`pipeline`](https://tmhsdigital.github.io/screencast-mcp/tools/pipeline.html) | Run several edits (trim, crop, scale, speed, cut_idle, redact, callout, keystroke_overlay, cursor, reframe, zoom, backdrop, audio, burn_subtitles, then optionally export_preset or export_gif) in one ffmpeg pass: one re-encode, no intermediate files. Prefer it over chaining edit tools; a recipe does the usual polish in one call. |
|
|
134
162
|
|
|
135
|
-
###
|
|
163
|
+
### Produce
|
|
136
164
|
|
|
137
|
-
|
|
165
|
+
Annotate, frame, and assemble a finished piece. Tools that combine clips normalize each input to a common resolution, fps, and audio rate first.
|
|
138
166
|
|
|
139
|
-
| Tool |
|
|
167
|
+
| Tool | What it does |
|
|
140
168
|
| --- | --- |
|
|
141
|
-
| `
|
|
142
|
-
| `
|
|
143
|
-
| `
|
|
144
|
-
| `
|
|
145
|
-
| `
|
|
146
|
-
| `
|
|
147
|
-
| `
|
|
148
|
-
| `
|
|
149
|
-
| `
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
152
|
-
| `
|
|
153
|
-
| `
|
|
154
|
-
| `
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
169
|
+
| [`overlay`](https://tmhsdigital.github.io/screencast-mcp/tools/overlay.html) | Composite an image or video (logo, watermark, picture-in-picture) onto a video at a pixel position, optionally scaled and time-limited; keeps the base's audio and length. |
|
|
170
|
+
| [`callout`](https://tmhsdigital.github.io/screencast-mcp/tools/callout.html) | Annotate a video with timed boxes, text labels, and arrows. Fallback fonts used are listed in fallbackFonts; characters no font covers are reported in warnings. |
|
|
171
|
+
| [`keystroke_overlay`](https://tmhsdigital.github.io/screencast-mcp/tools/keystroke_overlay.html) | Burn keycast-style badges for shortcuts, clicks, and typing from the recording's input event log (start_recording events: true). Never shows typed text: the log has none. |
|
|
172
|
+
| [`cursor`](https://tmhsdigital.github.io/screencast-mcp/tools/cursor.html) | Draw a smoothed, scaled cursor that hides when idle from the event log of a start_recording cursor: "events" recording (no OS cursor in the video), with click ripples and an optional spotlight. |
|
|
173
|
+
| [`backdrop`](https://tmhsdigital.github.io/screencast-mcp/tools/backdrop.html) | Frame a video or screenshot on a gradient, color, or wallpaper with padding, rounded corners, and a drop shadow, optionally on a 16:9/1:1/9:16/4:5 canvas. |
|
|
174
|
+
| [`burn_subtitles`](https://tmhsdigital.github.io/screencast-mcp/tools/burn_subtitles.html) | Burn SRT/ASS subtitles (e.g. from transcribe) into a video in the bundled font. |
|
|
175
|
+
| [`chapters`](https://tmhsdigital.github.io/screencast-mcp/tools/chapters.html) | Write chapters (markers, scene changes, transcript, or a list) into an mp4/mkv/mov copy without re-encoding; returns YouTube chapter text. Can mux an SRT as soft subtitles. |
|
|
176
|
+
| [`xfade_transition`](https://tmhsdigital.github.io/screencast-mcp/tools/xfade_transition.html) | Join two videos with an xfade transition (audio crossfaded); they need not match in size, fps, or audio. For more clips use assemble_highlights. |
|
|
177
|
+
| [`assemble_highlights`](https://tmhsdigital.github.io/screencast-mcp/tools/assemble_highlights.html) | Stitch clips (including title cards) into one video with cuts or xfade transitions; they need not match in size, fps, or audio. |
|
|
178
|
+
| [`title_card`](https://tmhsdigital.github.io/screencast-mcp/tools/title_card.html) | Generate a title card clip (centered text on a solid background, silent audio track) to stitch in with assemble_highlights. Uncoverable characters are reported in warnings. |
|
|
179
|
+
| [`reframe`](https://tmhsdigital.github.io/screencast-mcp/tools/reframe.html) | Re-aspect a video to 16:9, 9:16, 1:1, or 4:5 by padding or cropping. |
|
|
180
|
+
| [`zoom`](https://tmhsdigital.github.io/screencast-mcp/tools/zoom.html) | Smooth animated zoom-and-pan into the action and back out, from keyframes or planned from logged clicks or screen changes. |
|
|
181
|
+
| [`export_preset`](https://tmhsdigital.github.io/screencast-mcp/tools/export_preset.html) | Encode a platform-ready H.264 file (aspect, fps, bitrate, faststart) for a named platform. |
|
|
182
|
+
| [`bug_report`](https://tmhsdigital.github.io/screencast-mcp/tools/bug_report.html) | Package a recording as a paste-ready repro folder: secret-scanned, redacted clip and GIF, contact sheet, steps from the event log, OCR'd errors, environment, report.md for gh issue create --body-file. |
|
|
183
|
+
| [`step_guide`](https://tmhsdigital.github.io/screencast-mcp/tools/step_guide.html) | Turn a recording's event log into a numbered how-to: a ringed screenshot and caption per step, marker headings; Markdown and/or one HTML file. Never includes typed text. |
|
|
184
|
+
|
|
185
|
+
### Audio
|
|
186
|
+
|
|
187
|
+
Extract, clean up, level, transcribe, and score the soundtrack.
|
|
188
|
+
|
|
189
|
+
| Tool | What it does |
|
|
159
190
|
| --- | --- |
|
|
160
|
-
| `
|
|
191
|
+
| [`extract_audio`](https://tmhsdigital.github.io/screencast-mcp/tools/extract_audio.html) | Extract the audio track of a media file to its own file (mp3, aac, wav, or copy). Returns the output path. |
|
|
192
|
+
| [`normalize_audio`](https://tmhsdigital.github.io/screencast-mcp/tools/normalize_audio.html) | Normalize loudness to a delivery target (two-pass EBU R128 loudnorm); video is copied. Reports loudness before and after. |
|
|
193
|
+
| [`denoise`](https://tmhsdigital.github.io/screencast-mcp/tools/denoise.html) | Reduce steady background noise (fan, hum, hiss) in a recording's audio with an adaptive FFT denoiser. Video is copied untouched. Returns the output path. |
|
|
194
|
+
| [`transcribe`](https://tmhsdigital.github.io/screencast-mcp/tools/transcribe.html) | Transcribe a recording's speech to an SRT subtitle file, locally, with FFmpeg 8's whisper filter (needs a whisper.cpp model file). Returns the SRT path and the text. Pair with burn_subtitles to caption the video. |
|
|
195
|
+
| [`music_bed`](https://tmhsdigital.github.io/screencast-mcp/tools/music_bed.html) | Lay music under a video: looped or trimmed to length, faded, leveled, and mixed with any existing audio. Video is stream-copied. |
|
|
196
|
+
| [`narrate`](https://tmhsdigital.github.io/screencast-mcp/tools/narrate.html) | Offline voiceover with the built-in Windows voices: speaks each line at its time or marker over the audio, plus an SRT. |
|
|
197
|
+
<!-- tools:end -->
|
|
161
198
|
|
|
162
199
|
> [!IMPORTANT]
|
|
163
200
|
> `redact_region` covers the regions **you** declare. It is not automatic secret detection, so it cannot find a secret you did not point it at. The default `box` style is a solid fill, which is irreversible; `blur` and `pixelate` are softer but can be partially recovered, so prefer `box` for real secrets. They have minimum strengths: blur uses a radius of at least 8 px (or half the region's smaller side) applied three times, and pixelate uses blocks of at least 16 px. Coordinates are in the displayed frame, after any rotation the file carries, and `pipeline` refuses a `redact` placed after `zoom`. A region that falls outside the frame is rejected rather than silently doing nothing.
|
|
164
201
|
|
|
165
|
-
### Produce
|
|
166
|
-
|
|
167
|
-
The production layer turns raw clips into a finished piece. Tools that combine clips auto-normalize each input to a common resolution, fps, and audio rate first, so heterogeneous sources compose cleanly.
|
|
168
|
-
|
|
169
|
-
| Tool | Purpose |
|
|
170
|
-
| --- | --- |
|
|
171
|
-
| `xfade_transition` | Crossfade two videos into one with an `xfade` transition (`fade`, `wipeleft`, `slideup`, ...). Audio is crossfaded when both clips have a track. |
|
|
172
|
-
| `assemble_highlights` | Stitch two or more clips into one, with hard cuts (`transition: "cut"`) or an xfade transition between each. |
|
|
173
|
-
| `title_card` | Generate a standalone title card (centered text on a solid background, with a silent track so it composes). Text uses the bundled Inter, so Latin, Greek and Cyrillic need no system font; other scripts and emoji fall back to a Windows system font (or pass `fontFile`), with `warnings` for anything no font covers. |
|
|
174
|
-
| `music_bed` | Lay a music track under a video: looped/trimmed to length, faded in and out, leveled, and mixed with any existing audio (optionally ducked). |
|
|
175
|
-
| `reframe` | Re-aspect to `16:9`, `9:16`, `1:1`, or `4:5` with `pad` (letterbox, no content lost) or `crop` (fill, trims overflow). |
|
|
176
|
-
| `zoom` | **Smooth zoom-and-pan** (Screen Studio style) into where the action is and back out. Give keyframes (rectangles by time), or let it plan them from the clicks in the input event log (`start_recording` `events: true`; `highlightClicks` rings each click) or from where the screen changes; `dryRun` returns the plan to adjust. |
|
|
177
|
-
| `keystroke_overlay` | **Keycast-style badges** ("Ctrl + Shift + P", "Double click", "Typing…") burned in from the input event log, one at a time, each lingering `lingerSec` (default 1.2). Repeats merge (`Ctrl + Z ×3`); `position`, `size`, `clicks`, `typing`. It can only show what the log holds: never typed text, and shortcuts only from `keys: "shortcuts"` recordings; `keys: "masked"` here shows a chord's modifiers only. |
|
|
178
|
-
| `backdrop` | **Frame a clip or screenshot** (Screen Studio / CleanShot style): padding, a gradient, solid, or wallpaper `image` background, rounded corners, and a soft drop shadow, optionally on a `16:9`/`9:16`/`1:1`/`4:5` canvas. Presets in the project palette: `desktop` (default, dark slate), `rec` (record red), `amber` (amber to red), `light`. A PNG/JPG input writes a framed still. |
|
|
179
|
-
| `export_preset` | Encode a platform-ready file (`youtube`, `instagram_reel`, `tiktok`, `x`, `square`, `steam_trailer`, `vertical_reel`): reframes, caps fps, and encodes H.264 at the platform bitrate with faststart. `steam_trailer` is 1080p H.264 High at a padded 5.5 Mbps CBR (above Steam's 5 Mbps floor) with 48 kHz audio at -14 LUFS; `vertical_reel` centres the footage over a blurred copy of itself with audio at -14 LUFS. |
|
|
180
|
-
| `pipeline` | **Several edits in one ffmpeg process**: `steps` of `trim`, `crop`, `scale`, `speed`, `redact`, `callout`, `keystroke_overlay`, `reframe`, `zoom` (keyframes), `backdrop`, ending optionally in `export_preset` or `export_gif`, each with its tool's options. One re-encode, no intermediate files, and a recipe you can save and re-run on the next recording; `dryRun` returns the planned command; `chapters: true` keeps the input's markers as chapters, re-timed through trims and speed changes. |
|
|
181
|
-
| `bug_report` | **A paste-ready repro package in one call**: from a recording path or `sessionId`, writes a folder with a trimmed clip (the last 30 s by default) and a GIF under 10 MB, a timecoded contact sheet, numbered steps rebuilt from the input event log, OCR'd error and dialog text, environment details (OS, displays and DPI, window, ffmpeg), and a `report.md` for `gh issue create --body-file` (plus `report.json`). Before anything is encoded, a whole-clip OCR secret scan boxes out API keys, tokens, and `password:` values in every output and masks them in the quoted text; it needs Windows OCR (`redact: false` skips it). |
|
|
182
|
-
|
|
183
202
|
### Targets
|
|
184
203
|
|
|
185
204
|
Every capture tool takes a single `target` string, so an agent never has to juggle quoting:
|
|
@@ -220,14 +239,16 @@ Edit and produce tools write to a `<name>.partial.<ext>` file next to the output
|
|
|
220
239
|
|
|
221
240
|
**Toolsets.** The full tool list (`tools/list`) is about 70 KB, roughly 17k tokens of context; `capture` alone is about 16 KB. Set `SCREENCAST_TOOLSETS` to load only the groups an agent needs, for example `capture,watch` for a QA agent that records and looks but never edits. `core` (`doctor`, `get_media_info`) is always on; unset, empty, `all`, or a value naming no known toolset loads everything, and unknown names are ignored with a warning (and listed by `doctor`).
|
|
222
241
|
|
|
242
|
+
<!-- toolsets:start -->
|
|
223
243
|
| Toolset | Tools |
|
|
224
244
|
| --- | --- |
|
|
225
|
-
| `capture` | `start_recording`, `stop_recording`, `save_replay`, `list_sessions`, `get_session`, `read_events`, `add_marker`, `screenshot`, `
|
|
226
|
-
| `watch` | `sample_frames`, `contact_sheet`, `screen_diff`, `wait_for_change`, `find_text`, `
|
|
227
|
-
| `edit` | `
|
|
228
|
-
| `produce` | `
|
|
229
|
-
| `audio` | `extract_audio`, `normalize_audio`, `denoise`, `transcribe`, `music_bed` |
|
|
230
|
-
| `core` (always) | `
|
|
245
|
+
| `capture` | `start_recording`, `stop_recording`, `pause_recording`, `resume_recording`, `save_replay`, `list_sessions`, `get_session`, `read_events`, `add_marker`, `screenshot`, `list_audio_devices`, `list_video_devices`, `list_targets` |
|
|
246
|
+
| `watch` | `review_recording`, `player_frames`, `sample_frames`, `contact_sheet`, `screen_diff`, `wait_for_change`, `find_text`, `index_recording`, `search_recording` |
|
|
247
|
+
| `edit` | `trim`, `concat`, `convert`, `export_gif`, `crop`, `scale`, `speed`, `compress`, `clip`, `cut_idle`, `cut_by_transcript`, `redact_region`, `pipeline` |
|
|
248
|
+
| `produce` | `overlay`, `callout`, `keystroke_overlay`, `cursor`, `backdrop`, `burn_subtitles`, `chapters`, `xfade_transition`, `assemble_highlights`, `title_card`, `reframe`, `zoom`, `export_preset`, `bug_report`, `step_guide` |
|
|
249
|
+
| `audio` | `extract_audio`, `normalize_audio`, `denoise`, `transcribe`, `music_bed`, `narrate` |
|
|
250
|
+
| `core` (always) | `get_media_info`, `doctor` |
|
|
251
|
+
<!-- toolsets:end -->
|
|
231
252
|
|
|
232
253
|
The server also sends MCP `instructions` at initialize: the record, look, edit workflow, which tool to reach for when, and the toolsets in effect, so each tool's own description stays short.
|
|
233
254
|
|
|
@@ -287,10 +308,38 @@ bug_report { "sessionId": "rec-…", "title": "Save fails on a read-only folder"
|
|
|
287
308
|
gh issue create --title "Save fails on a read-only folder" --body-file …/report.md
|
|
288
309
|
```
|
|
289
310
|
|
|
311
|
+
Documenting a task as a how-to (record with `events: true`; `add_marker` between phases gives section headings):
|
|
312
|
+
|
|
313
|
+
```jsonc
|
|
314
|
+
step_guide { "sessionId": "rec-…", "title": "Export a report as PDF" }
|
|
315
|
+
// -> { "outputDir": "…/edits/step-guide-…", "markdownPath": "…/guide.md", "htmlPath": "…/guide.html",
|
|
316
|
+
// "steps": [{ "n": 1, "caption": "Click File", "section": "Open the report", "image": "step-01.png" }, …] }
|
|
317
|
+
```
|
|
318
|
+
|
|
290
319
|
Inline images are downscaled JPEGs (`maxImageWidth`, default 1280) and capped per call (`maxInlineImages`, default 8, max 20); the full-resolution PNGs stay on disk. Pass `returnImage: false` / `returnImages: false` to get paths only.
|
|
291
320
|
|
|
292
321
|
`sample_frames` writes at most `maxFrames` frames per call (default 100, max 1000). In `fps` mode it probes the video first; if the rate would exceed the cap, it samples at a lower rate so the frames still span the whole video, and the result's `capNote` says what it did.
|
|
293
322
|
|
|
323
|
+
### Command line and CI
|
|
324
|
+
|
|
325
|
+
The same binary is a headless CLI when the first argument is a subcommand (no arguments still starts the MCP server). `record` records the screen while a command runs, exits with that command's code, and on failure writes a GIF of the last 30 s and a contact sheet:
|
|
326
|
+
|
|
327
|
+
```bash
|
|
328
|
+
npx -y @tmhs/screencast-mcp record --target full -- npm run test:e2e
|
|
329
|
+
npx -y @tmhs/screencast-mcp call doctor # any tool, JSON args inline or @file.json
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
`record` options: `--target`, `--fps`, `--out` (default `screencast-evidence`), `--artifacts failure|always|never`, `--last <sec>`, `--no-gif`, `--no-contact-sheet`, `--discard-on-success`, `--max-duration`; it writes `evidence.json` alongside. For GitHub Actions on `windows-latest`, the composite action in [`action.yml`](action.yml) wraps it and uploads the evidence as an artifact:
|
|
333
|
+
|
|
334
|
+
```yaml
|
|
335
|
+
- uses: TMHSDigital/screencast-mcp@main # pin a release tag or SHA
|
|
336
|
+
with:
|
|
337
|
+
command: npm run test:e2e
|
|
338
|
+
target: window:exe=MyApp.exe
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
More on the [CI page](https://tmhsdigital.github.io/screencast-mcp/ci.html).
|
|
342
|
+
|
|
294
343
|
## Prompts and resources
|
|
295
344
|
|
|
296
345
|
Beyond tools, the server offers **prompts**: ready-made workflows that clients such as Claude Code and VS Code show as slash commands.
|
|
@@ -299,6 +348,7 @@ Beyond tools, the server offers **prompts**: ready-made workflows that clients s
|
|
|
299
348
|
| --- | --- |
|
|
300
349
|
| `bug-repro-clip` | Record, find the bug moment, check for secrets, trim, annotate, and export a GIF for an issue. |
|
|
301
350
|
| `file-bug-report` | Record a repro with input events, package it with `bug_report` (redacted clip, GIF, steps, error text, `report.md`), review it, and file it with `gh issue create` once you confirm. |
|
|
351
|
+
| `document-steps` | Record a task with input events and markers, turn it into a step-by-step guide with `step_guide`, and tidy the captions. |
|
|
302
352
|
| `demo-gif` | Record a feature walkthrough and export a GIF small enough for a README or PR. |
|
|
303
353
|
| `verify-ui-change` | Screenshot before, make the change, wait for the screen to settle, diff, and confirm the text. |
|
|
304
354
|
| `review-recording` | Summarize what happens in a recording, with timestamps. |
|
|
@@ -316,7 +366,7 @@ It also offers **resources**, so a client can list and attach recordings without
|
|
|
316
366
|
|
|
317
367
|
## Privacy
|
|
318
368
|
|
|
319
|
-
- **The server makes no network requests and has no telemetry.** It runs ffmpeg, ffprobe, and PowerShell on your machine and talks to your MCP client over stdio.
|
|
369
|
+
- **The server makes no network requests and has no telemetry.** It runs ffmpeg, ffprobe, and PowerShell on your machine and talks to your MCP client over stdio. OCR (`find_text`) and speech (`narrate`) use the engines built into Windows, so screen text and narration scripts are processed locally and never sent anywhere.
|
|
320
370
|
- **What a tool returns goes to your model provider.** Inline screenshots and frames, OCR text, event summaries, and every other tool result reach your agent, and your client sends them to the model like any other tool result. Files on disk stay on disk unless a tool returns them or you share them.
|
|
321
371
|
- **What is stored, and where.** Everything goes under `SCREENCAST_HOME` (default `<homedir>/.screencast-mcp`) unless a call names another path:
|
|
322
372
|
- `recordings/`: recordings, plus each one's `.events.jsonl` when the event log is on
|
|
@@ -326,7 +376,7 @@ It also offers **resources**, so a client can list and attach recordings without
|
|
|
326
376
|
- `sessions.json`: the session registry (ids, targets, paths, times)
|
|
327
377
|
|
|
328
378
|
`find_text`, `wait_for_change`, and `screen_diff` delete their captures after the call by default, since a secret scan's screenshot shows the secret.
|
|
329
|
-
- **What the event log records.** Only with `start_recording` `events: true`, and only while that recording runs. Mouse input is recorded system-wide, not only over the recorded window: clicks, scrolls, and the cursor position (sampled about 30 times a second), each with its time. Typing is recorded only as bursts, a start time and a length on a 0.5 s grid, with no key names and no per-key times: `masked` (default) records nothing more. `shortcuts` also records chords made with Ctrl, Alt, or Win by name (`Ctrl+S`), with their times; Ctrl+Alt+key that types a character on AltGr layouts stays typing. No mode records typed text. If the log has gaps (Windows removed the hook, input went to an elevated window or the lock screen, or the helper stopped), `read_events` reports `truncated: true` and lists them.
|
|
379
|
+
- **What the event log records.** Only with `start_recording` `events: true` (or `cursor: "events"`, which also leaves the OS cursor out of the video for the `cursor` tool to redraw), and only while that recording runs. Mouse input is recorded system-wide, not only over the recorded window: clicks, scrolls, and the cursor position (sampled about 30 times a second), each with its time. Typing is recorded only as bursts, a start time and a length on a 0.5 s grid, with no key names and no per-key times: `masked` (default) records nothing more. `shortcuts` also records chords made with Ctrl, Alt, or Win by name (`Ctrl+S`), with their times; Ctrl+Alt+key that types a character on AltGr layouts stays typing. No mode records typed text. If the log has gaps (Windows removed the hook, input went to an elevated window or the lock screen, or the helper stopped), `read_events` reports `truncated: true` and lists them.
|
|
330
380
|
- **Microphone capture is not supported.** System audio is recorded only with `audio.source` = `system`.
|
|
331
381
|
- **Deleting stored data.** Delete files under `SCREENCAST_HOME`, or the whole folder while nothing is recording. Set `SCREENCAST_RETENTION_DAYS` to delete screenshots, frames, and leftover raw event logs older than that each time the server starts. Recordings and edits are never deleted automatically.
|
|
332
382
|
|
|
@@ -349,6 +399,7 @@ It also offers **resources**, so a client can list and attach recordings without
|
|
|
349
399
|
.
|
|
350
400
|
├── src/
|
|
351
401
|
│ ├── index.ts # MCP server entry (stdio); registers every tool, reaps orphans
|
|
402
|
+
│ ├── cli.ts # headless CLI: record -- <command>, call <tool>
|
|
352
403
|
│ ├── prompts.ts # MCP prompts (workflows as slash commands)
|
|
353
404
|
│ ├── resources.ts # MCP resources (sessions, posters)
|
|
354
405
|
│ ├── wgcRecorder.ts # recorder process for backend: "wgc"
|
|
@@ -356,9 +407,11 @@ It also offers **resources**, so a client can list and attach recordings without
|
|
|
356
407
|
│ ├── utils/ # pure builders and helpers (ffmpeg args, targets, sessions, ...)
|
|
357
408
|
│ └── __tests__/ # vitest: unit, ffmpeg integration, guarded local-capture harness
|
|
358
409
|
├── assets/ # bundled fonts and the review player (assets/ui)
|
|
359
|
-
├── docs/ # GitHub Pages site
|
|
360
|
-
├── scripts/ # Claude Desktop bundle (.mcpb) and docs
|
|
361
|
-
├──
|
|
410
|
+
├── docs/ # GitHub Pages site; tools/, llms.txt, and the recipe pages are generated
|
|
411
|
+
├── scripts/ # Claude Desktop bundle (.mcpb) and the docs generators (npm run docs)
|
|
412
|
+
├── plugin/ # Claude Code plugin: the server plus workflow skills
|
|
413
|
+
├── action.yml # GitHub Action: record a test run on windows-latest
|
|
414
|
+
├── mcp-tools.json # tool manifest, generated from the registry by npm run docs
|
|
362
415
|
├── server.json # MCP Registry listing (name matches package.json mcpName)
|
|
363
416
|
├── .github/workflows/ # CI, release, npm publish, Pages, ecosystem drift check
|
|
364
417
|
├── ROADMAP.md · CONTRIBUTING.md · SECURITY.md · LICENSE
|
|
@@ -374,8 +427,11 @@ npm install
|
|
|
374
427
|
npm run build # tsc -> dist/
|
|
375
428
|
npm test # vitest: unit tests, plus the ffmpeg integration suite when ffmpeg is on PATH
|
|
376
429
|
npm run dev # tsx watch
|
|
430
|
+
npm run docs # regenerate mcp-tools.json, the tool tables, docs/tools/, llms.txt
|
|
377
431
|
```
|
|
378
432
|
|
|
433
|
+
The tool tables in this README and on the site, `mcp-tools.json`, and the per-tool pages are generated from the registered tools' schemas; after adding or changing a tool, run `npm run docs` (the docs test fails on a stale copy; `npm run docs:check` checks without writing).
|
|
434
|
+
|
|
379
435
|
To run your build from a client, point it at `dist/index.js`: `"command": "node"`, `"args": ["C:/path/to/screencast-mcp/dist/index.js"]`.
|
|
380
436
|
|
|
381
437
|
The integration suite (`src/__tests__/integration`) runs the real edit and produce builders through ffmpeg against lavfi-generated fixtures and checks the probed result (durations, dimensions, streams, loudness). It skips when ffmpeg is missing; set `REQUIRE_FFMPEG=1` to make a missing ffmpeg fail instead, as CI's Linux job does.
|
|
Binary file
|