mcp-clickcast
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ποΈ clickcast β Playwright browser automation, screenshots, and GIF/MP4/WebP recording for AI agents
Give AI agents visual + structured feedback about live web UIs β and give humans deterministic demo reels while you're at it.
What's new (v0.5.0) β
clickcast exploremaps an app's shape (pages, link targets, clickable elements) without paying for a reel, and the MCP registry now advertises the npm install path (npx -y clickcast-mcp) alongside PyPI β on top of the v0.4.4npxwrappers (clickcast+clickcast-mcp) and the v0.3.0 highlights: live agent control via an MCP server, pixel-levelclickcast diff, accessibility semantics fused with the pixel-grid overlay, an official CI GitHub Action, Homebrew/apt packaging, and a self-healing first run. SeeCHANGELOG.mdfor the full notes.

βΆ Watch the full 30 fps MP4 (8.7 s, 275 KB) β recorded with
--capture screencast --smooth: continuous page motion plus reel grammar (speed-capped cursor glides, click ripples, per-step captions, a timeline). 55.8% unique frames vs 22.9% for the same scenario on the stills backend. Reproduce it fromdemo/screencast-reel/β its own page, no network. How it works:docs/smooth-video.md.An auto-discovered tour of react.dev is in
docs/demo.gif.
See
docs/ONE_PAGE_NAVIGATION_ORDER_TIPS.mdfor the nine principles behind why this reel reads as legibly as it does β and the scenario template you can copy for your own reels.
clickcast drives a real browser through a website and hands back two things:
A watchable reel β GIF / MP4 / WebP / raw frames.
A machine-readable JSON sidecar β every step's selector, timings, per-step frame paths, discovered elements, and post-action page state (title, URL, console errors, failed requests). Versioned. See
docs/feedback-schema.md.
Point it at a URL and it will auto-discover the interactive elements and build a tour for you, or hand it a small YAML scenario for a scripted, repeatable walkthrough.
Install
One line, ready to run immediately after:
pip install clickcast && clickcast install --with-deps chromium && clickcast doctorBroken down β pip install clickcast (requires Python β₯ 3.10) gets you the
CLI; clickcast install downloads Chromium (~one-time, ~180MB β kept out of
the pip package itself since it's versioned independently and every project
doesn't need every engine); --with-deps also pulls the system libraries
Chromium needs (Linux only, may prompt for sudo); clickcast doctor
confirms everything above actually worked.
Forgot the second step? Any command that needs a browser (auto, run,
shot, elements, mcp) detects a missing engine itself and offers to
install it right then instead of failing β say yes once and it retries
automatically. That prompt only fires in an interactive terminal; CI/scripted
runs fail fast with the exact fix command instead of hanging on stdin.
Homebrew (macOS/Linux)
brew install --build-from-source ./Formula/clickcast.rb # works today, clone this repo first
brew install AlexKay28/clickcast/clickcast # tap not bootstrapped yet -- see docs/packaging/homebrew.mdapt (Debian/Ubuntu, .deb)
bash scripts/build_deb.sh 0.2.9 && sudo dpkg -i dist-deb/clickcast_0.2.9_amd64.deb # works today, clone this repo first
sudo apt install clickcast # hosted repo not bootstrapped yet -- see docs/packaging/apt.mdBoth native packages skip the Chromium download (~180MB, versioned
independently of clickcast) and never install a second ffmpeg (clickcast
already bundles one via imageio[ffmpeg]) -- run clickcast install --with-deps chromium once after either install path. Full design rationale,
what's live today vs. what needs one-time bootstrapping, and the exact
bootstrap steps: docs/packaging/homebrew.md,
docs/packaging/apt.md.
npm (clickcast + clickcast-mcp)
Two npm packages -- thin Node wrappers whose postinstall provisions an
isolated Python venv and pip-installs the pinned PyPI clickcast, since
there's no way to ship clickcast's Playwright/Pillow/ffmpeg runtime as pure
JS. Built specifically because the MCP ecosystem's install pattern is
npx <package>, not pip install:
npx -y clickcast-mcp # MCP entry point -- execs `clickcast mcp`
npx clickcast --version # general CLI wrapperBoth are published on the npm registry. To run against your working copy instead of the published version:
cd npm/clickcast-mcp && npm pack && npm install -g ./clickcast-mcp-*.tgz && clickcast-mcp --help
cd npm/clickcast && npm pack && npm install -g ./clickcast-*.tgz && clickcast --versionFull design rationale
(including why the shared provisioning code is a vendored copy rather than
a file: dependency), what's live today vs. what needs bootstrapping, and
the exact bootstrap steps: docs/packaging/npm.md.
Related MCP server: pagelens
For AI agents β copy this prompt into your chat
Paste the block below into your coding agent (Claude Code, Cursor, Copilot Chat, Codex, etc.) to teach it clickcast in one message. The agent will install the tool, verify the environment, generate a visual + machine-readable report for your project, and know how to gate CI on the results. If your harness supports the Agent Skills format, install this repository as a skill; the root-level SKILL.md is the manifest and references/REFERENCE.md holds the deeper runbook.
You are going to use `clickcast` (https://pypi.org/project/clickcast/) to visually verify
this project's frontend. It produces a watchable GIF reel + a JSON sidecar with
per-step selectors, timings, page state, error codes, and a graph of the app's
pages. Follow this exact sequence:
1. INSTALL
pip install clickcast
clickcast install --with-deps chromium # first time only, ~180 MB
clickcast doctor # bail out if this fails
2. LOAD FULL CAPABILITIES
Run `clickcast skill --json` and read the output. It lists every subcommand,
flag, docs URL, and sidecar schema pointer. Prefer this over guessing.
3. RUN A QUICK TOUR OF THE APP
If we have a running URL (dev server / staging / production):
clickcast auto <URL> --for-humans --emit-events --out tour.gif
If we have a specific flow to verify, write a YAML scenario and run:
clickcast run tour.yml --emit-events --out tour.gif
`--for-humans` gives a legible reel for the user to watch;
`--emit-events` prints a machine-readable JSONL line you can parse.
4. READ THE SIDECAR (JSON at `<gif>.json`, schema v5)
For each step, gate on the structured fields β NOT regex over prose:
- `status` : "ok" | "failed" | "skipped"
- `error_code` : "timeout" | "locator_missing" | "cross_origin" |
"navigation_error" | "selector_ambiguous" | "other"
- `skip_reason` : "optional_no_reaction" | "pre_action_failed" |
"element_vanished" | "cross_origin_bounce"
- `page_state` : title, url_after, console_errors, page_errors,
network_failed
The top-level `graph` block gives page nodes + navigation edges you can
use to reason about the app's shape, not just the sequence you ran.
5. WATCH STDERR FOR ADVISORIES
clickcast prints `β <message> β see <docs-url>` lines for known anti-
patterns (nav-heavy tour, click without DOM reaction, very short reel,
cross-origin bounce, incoherent cursor styling). Each has a stable
kebab-case id you can dedupe or gate on.
6. FOR CI REGRESSION GATES
`clickcast assertions <sidecar>.json --baseline golden.json` diffs the
run against a committed baseline; nonzero exit on drift. Byte-identical
across runs (timestamps, frame paths, and URL query strings excluded).
Reference docs (all in-repo, load lazily as needed):
- Sidecar shape: https://github.com/AlexKay28/clickcast/blob/main/docs/feedback-schema.md
- Human-legible reel authoring: https://github.com/AlexKay28/clickcast/blob/main/docs/ONE_PAGE_NAVIGATION_ORDER_TIPS.md
- Agent integration: https://github.com/AlexKay28/clickcast/blob/main/docs/ai-integration.md
If something is unclear, run `clickcast <subcommand> --help` before asking me.Once the agent has this, ask it something concrete like "run clickcast auto against http://localhost:3000 and tell me which clicks had DOM reactions" β it now has everything it needs.
Live agent control (MCP)
Everything above is batch mode: record a whole tour, then read back a GIF + sidecar. clickcast mcp is the live counterpart β an MCP server that drives one action at a time (goto/click/type/scroll/...) and hands back clickcast's richer per-call payload (annotated frame, page_state, grid coordinates, an enumerated error_code) instead of a bare screenshot, so an agent can react before deciding the next step.
pip install 'clickcast[mcp]'{
"mcpServers": {
"clickcast": { "command": "clickcast", "args": ["mcp"] }
}
}Reach for mcp when an agent needs to explore and react live; reach for auto/run for a repeatable, one-shot artifact (CI, docs, release notes). Full tool reference, client config for Claude Code / Claude Desktop, and the schema doc: docs/mcp.md Β· docs/mcp-tool-schema.md.
The agent loop: observe β act β settle β receipt
Live driving is token-bounded end to end, so an agent can iterate dozens of times without its context filling with DOM dumps and screenshots:
Call | What you get |
| a ranked snapshot of what you can act on, addressed by stable |
| one action, plus a |
| "has the page stopped changing?" across network, DOM mutations and compositor activity β timeouts reported, never hangs |
| one artifact directory (reel, v5 sidecar, assertions, visual diff) and a β€200-token summary with the first failed step's |
Every primitive is also on the Python SDK (Reel.observe(), Reel.receipt()). Loop doc and artifact layout: docs/perception.md.
If you are an agent or a crawler, llms.txt is a single-file index of the install path, CLI, SDK, MCP tools, the loop and the schema β and the docs also build as a static site at alexkay28.github.io/clickcast.
First run β 30 seconds
clickcast auto https://example.com --out tour.gifProduces two files:
tour.gifβ the reeltour.gif.jsonβ the AI-consumable sidecar (schema_version: 5, spec atdocs/feedback-schema.md)
For a walkthrough of how an LLM agent consumes both, see docs/ai-integration.md.
Modes
Mode | Command | When |
Auto |
| Quick tour of a site; you don't care about the exact script. |
Scenario |
| Precise, repeatable walkthrough. Docs, release notes, CI. |
Shot |
| One screenshot, viewport or full-page. |
Explore |
| The app's shape only β nodes, edges, per-page discoveries β no reel. |
Every mode is deterministic, headless-by-default, and CI-friendly.
Commands
auto <url>
Discover interactive elements and record a click-tour.
Flag | Default | Notes |
|
| Extension picks the format. |
|
| Total click budget across every visited page. |
|
| Cap on pages visited; |
|
| Hard wall-time cap; on hit the tour stops and frames are encoded. |
|
| Per-click timeout so one stuck click can't stall the tour. |
|
|
|
| β | Repeatable; tour visits exactly the start URL + seeds, no auto-enqueue. |
|
| Sets |
|
| Post-click crop-and-scale around the click point (e.g. |
| off | Composite: flips |
| off | Pulsing ring around each click target before the ripple. |
| off | Prepend a title card; masks the pre-first-paint flash. |
| off | Append a pages Β· clicks Β· duration stats card. |
|
| Hold time after each action. |
|
| Post- |
|
| |
| β | Playwright preset (e.g. |
|
|
|
| off | Show a real browser window. |
| β | e.g. |
| off | Emulate |
|
| |
|
| Override extension-derived format. |
|
| Lower = better (higher fidelity, bigger file). |
|
|
|
| off | Skip the JSON. |
| off | Attach a |
| β | Repeatable regex; matches in the sidecar become |
| off | Drop query strings from every recorded sidecar URL. |
| off | Print a JSONL |
| off | On step failure, dump the full discover() list to stderr. |
| off | Ignore TLS cert errors (self-signed / private CA). |
| β | Repeatable extra header; scope auth tokens with |
| β | Restrict |
| off | Pixel-grid overlay on every frame with readable coordinate labels. |
|
| Major-line spacing in px; minor lines at pitch/10. |
|
| RGBA hex. |
|
|
|
| β | Repeatable. |
run <scenario.yml>
Execute a YAML scenario. See Scenario format.
clickcast run docs/scenarios/spa.yml \
--out release-notes.mp4 --format mp4 \
--var base_url=https://staging.example.comFlags: --out, --format, --headful, --slowmo MS, --url URL (retarget the first goto step β see below), --var key=value (repeatable β substitute {{ key }} inside the scenario), --no-sidecar.
CLI flags override the scenario's meta: block.
Point an existing scenario at a different environment with --url β no YAML edits, no {{ URL }} templating:
clickcast run tour.yml --url https://staging.example.com/app--url rewrites the first goto step's URL and wins over --var URL=.... Only the first goto is touched β later goto steps are usually intra-app navigation from the entry point, so they stay put.
shot <url>
Single screenshot.
clickcast shot https://example.com --full-page --out home.pngFlags: --out, --full-page, --wait (load / domcontentloaded / networkidle / a selector / a number of seconds), --viewport, --device, --engine, --dark.
init [path]
Scaffold a starter YAML scenario. --from-auto runs discovery once and seeds the file with the top-scoring click steps.
clickcast init tour.yml --url https://example.com --from-autoFlags: --url, --name, --out, --from-auto, --force.
elements <url>
Dump the discovered interactive elements β useful for authoring selectors.
Each entry additionally carries an accessibility block (Playwright's own
role / accessible name / interactive state, fused with the pixel-grid
overlay's grid_cell when --grid is on) β see
docs/feedback-schema.md.
clickcast elements https://example.com --json > elements.json
clickcast elements https://example.com --grid --grid-pitch 50 --jsonFlag | Default | Notes |
|
| Cap on returned elements. |
| off | Emit machine-readable JSON on stdout. |
|
| |
| β | Playwright preset (e.g. |
|
|
|
| off | Show a real browser window. |
| β | e.g. |
| off | Emulate |
|
| Delay each Playwright op by N ms. |
| β | Repeatable. |
| off | Populate each element's |
|
| Major-line spacing in px, used for |
|
| Unused by |
|
| Unused by |
explore <url>
Map the site's state graph and emit explore.json β auto --traversal bfs minus everything that records (no frames, no annotator, no encoder), so mapping an app costs seconds instead of a reel shoot. Output shape: docs/explore-schema.md.
clickcast explore https://example.com --out map.jsonFlag | Default | Notes |
|
| The exploration map. |
|
| Cap on pages visited. |
|
| Total click budget across every visited page. |
|
| Hard wall-time cap. |
|
| Per-click timeout. |
|
| Post- |
|
| BFS = site-map coverage (exploration default); DFS = narrative order. |
|
| Top-N discovered elements pinned per page in the output. |
| as | Same session flags as the other browser commands. |
report-bug <sidecar.json>
Turn a sidecar into an actionable bug report β redacted by default, shareable as-is, or --open to launch a prefilled GitHub issue.
clickcast report-bug tour.gif.json
clickcast report-bug tour.gif.json --json # machine-readable Track-C payload
clickcast report-bug tour.gif.json --open --note "behind corporate proxy; TLS interception on"Flags: --json, --open, --redact/--no-redact (default on β sanitizes URLs, selectors, and visible text), --note.
feedback
Long-form usage feedback: record a session, then summarize it.
clickcast feedback start
clickcast feedback status
clickcast feedback summary --json
clickcast feedback stopSubcommands: start, stop, status, list, summary.
doctor
Check Python version, playwright, engine binaries, ffmpeg, config path.
clickcast doctor # human-readable
clickcast doctor --json # machine-readable, non-zero exit on failureconfig
Read / write persistent defaults.
clickcast config path # print the user config file path
clickcast config list # every effective value + source
clickcast config get engine
clickcast config set engine firefoxSet values land in the user TOML at clickcast config path. See Configuration for precedence.
install [enginesβ¦]
Wrapper over playwright install. Default engine: chromium.
clickcast install # chromium only
clickcast install firefox webkit # add more
clickcast install --with-deps chromium # Linux: pull system libs (needs sudo)mcp
Start a stdio MCP server for live agent control β see Live agent control (MCP) above and docs/mcp.md. Requires pip install 'clickcast[mcp]'.
clickcast mcp --grid # every action tool's returned frame carries the coordinate overlayFlags: --engine, --viewport, --device, --headful, --lang, --dark, --grid/--grid-pitch/--grid-color/--grid-style β all defaults for start_session when the connecting agent doesn't override them.
Scenario format
A scenario is plain YAML: a meta: block and a list of steps:. Full worked examples: docs/scenarios/.
meta:
name: WorldSight broad tour
engine: chromium # chromium | firefox | webkit
viewport: 1280x800
device: null # or "iPhone 15", "Pixel 8", "iPad Pro"
fps: 12
dwell: 1.0 # default seconds after each step
format: gif # gif | mp4 | webp | frames
out: worldsight.gif
steps:
- goto: https://worldsight-weld.vercel.app
wait: networkidle
label: Open WorldSight
- click: "text=3D"
label: Switch to 3D globe
dwell: 2.0
- hover: "[aria-label='Rankings']"
- click: "[aria-label='Rankings']"
label: Open Rankings
- type:
into: "#search"
text: "Japan"
label: Search Japan
- select:
in: "#metric"
value: "GDP"
- scroll:
to: footerSupported actions
Action | Example | Notes |
|
| Navigate. Pair with |
|
| CSS, |
|
| Also accepts |
|
| Reveals CSS |
|
|
|
|
| Or |
|
|
|
|
| Element or pixel scroll. |
|
| Number = seconds, string = load-state or selector. |
|
| Force a frame capture. |
Every step also accepts label, dwell, optional: true (don't fail the run if the selector is missing β sidecar records status: "skipped"), and repeat: N.
Variable substitution: {{ key }} inside any string, injected via --var key=value.
Python API
Fluent, chainable β every builder returns self:
from clickcast import Reel
reel_path = (
Reel("https://worldsight-weld.vercel.app", viewport=(1280, 800), fps=12)
.goto(wait="networkidle")
.click("text=3D", label="Switch to 3D globe", dwell=2.0)
.click("[aria-label='Rankings']", label="Open Rankings")
.scroll(to="footer")
.save("worldsight.gif") # or .save("tour.mp4", quality=8)
)Async variant for callers already inside a running event loop:
from clickcast import AsyncReel
reel = AsyncReel("https://example.com").goto(wait="networkidle").click("#cta")
path = await reel.save("tour.gif")Discovery only, no reel:
from clickcast import discover
elements = discover("https://example.com", limit=10)Skip the sidecar with save(..., no_sidecar=True).
Pre-push iteration on a local static build
Building a static site and reeling it locally before pushing? Use Reel.serve_dir (or the standalone serve_directory helper) as a context manager β it starts a threaded HTTP server on a free port, yields the base URL, and tears the server down on exit. No more python3 -m http.server 8091 & invocations that leak past your shell session and collide with the next iteration.
from clickcast import Reel
with Reel.serve_dir("./public") as url:
Reel(url).goto().click(".chip").save("out.gif")
# Server is gone; the port is free.Defaults are safe for dev iteration: loopback-only bind (127.0.0.1), OS-picked free port, ThreadingHTTPServer so parallel browser requests don't queue. Override any of them explicitly:
from clickcast.serving import serve_directory # importable without going through Reel
with serve_directory("./dist", port=8091, bind="0.0.0.0", threading=False) as url:
...bind="0.0.0.0" exposes the server to your LAN β opt-in, not the default.
Reading the sidecar
Every recording run writes <out>.json alongside the media file.
from clickcast.feedback import load
report = load("tour.gif.json")
for step in report.steps:
if step.status == "failed":
print(f"step {step.index} ({step.action}) failed: {step.error}")
print(" frames:", step.frames)
if step.page_state:
print(" console errors:", step.page_state.console_errors)Consumers that don't want to import clickcast can parse the JSON directly against the schema at src/clickcast/feedback/schema/v5.json. A standalone reference implementation lives at tests/consumer/read_sidecar.py.
See docs/ai-integration.md for the two-line agent-integration example and docs/feedback-schema.md for the full field-by-field walkthrough.
Measured cost, not claimed cost
Two numbers matter and both are reproducible with one command:
M1 β
pip installβ verified report: 31.4 s measured (fresh venv β schema-validated sidecar, cold pip, browser already present; the ~180 MB browser download is timed separately).M2 β context per step: 1,530 B of sidecar per step (β382 estimated tokens at 4 chars/token); the live-loop calls are capped separately (observe β€800, delta β€300, receipt β€200).
python scripts/bench_metrics.py re-measures both, validates the sidecar through the shipped schema, and fails on a 2Γ regression. Methodology, exclusions and ceilings: docs/benchmarks.md.
CI: 2-line regression gate
On GitHub Actions? .github/actions/clickcast
packages this recipe (plus the visual diff gate below, browser caching,
and a PR comment with the reel + a summary table) as a reusable Action β
see docs/ci/README.md. This section stays the
canonical recipe for every other CI platform, and for anyone who'd rather
not depend on a third-party Action for two lines of shell.
Every reel writes a JSON sidecar, but raw sidecars carry timestamps, frame
filenames, and query-string tokens β none of which are stable across runs.
For a proper CI regression gate, use clickcast assertions (or
Reel.assertions()) to distill the sidecar down to the shape that
actually matters: step count, per-step action / label / status, and the
per-step error counters.
The distilled shape is byte-identical across runs of the same scenario
against the same URL (schema: docs/assertions-schema/v1.json).
Diff it against a committed baseline; non-zero exit on drift.
Bootstrap the baseline once:
clickcast run tour.yml --out reel.gif
clickcast assertions reel.gif.json > tests/golden-tour.json # commit thisThen in CI (2 lines):
clickcast run tour.yml --out reel.gif
clickcast assertions reel.gif.json --baseline tests/golden-tour.jsonExit 0 means the target UI produced the same step ordering, statuses, and
error-signal counts as when the baseline was captured; anything else is
real drift and the command prints per-line descriptions like
step 2: status changed 'ok' -> 'failed'.
Same signal from Python:
from clickcast import Reel
reel = Reel(url).goto().click(".cta").save("reel.gif")
drift, is_clean = reel.assertions_diff("tests/golden-tour.json")
if not is_clean:
raise SystemExit("\n".join(drift))Excluded from the distilled shape on purpose: wall-clock timestamps,
per-step duration_ms, frames filenames, resolved URLs (including
query-string tokens), cursor_xy. If you need those in your gate too,
diff the raw sidecar with your own tooling β the assertion set is the
narrow "did the UI still behave" contract, not the wire-level snapshot.
Its visual companion: clickcast diff
assertions is structural β it never looks at a pixel. clickcast diff
(and Reel.visual_diff()) is the pixel-level companion: it pairs up two
sidecars' steps and pixel-diffs their frames, reporting a percent-changed
and a list of changed bounding regions per step, plus region-highlighted
diff images. Reach for assertions to catch "the flow broke" (wrong step
count, a step that started failing); reach for diff to catch "the flow
ran fine but the button moved / the color changed / the layout shifted."
The two compose β run both in CI for full coverage, or diff alone if
pixel drift is your only concern.
clickcast diff reel.gif.json tests/golden-tour.gif.json \
--out diff-report --fail-above 5Exits non-zero when any step's changed pixel percentage exceeds
--fail-above, or when a step couldn't be paired with its baseline
counterpart at all (mismatched step counts fall back to label matching;
anything still unmatched is flagged rather than silently skipped).
--out collects the region-highlighted diff images plus a summary.json
for CI artifacts; --threshold tunes the per-pixel noise floor. Clickcast's
own overlays (progress bar, action label, actions panel, cursor + ripple)
are excluded from the diff by default β otherwise every run would flag its
own chrome as a regression β pass --no-exclude-overlays for a strict
raw-pixel diff. Same signal from Python via reel.visual_diff(run_path, baseline_path).
Configuration
Precedence (highest β lowest):
CLI flags
Scenario
meta:blockCLICKCAST_*environment variablesProject
./clickcast.tomlUser TOML (path via
clickcast config path)Built-in defaults
Every Config field can be set at any of these layers: engine, viewport, device, headful, slowmo, lang, dark, proxy, fps, dwell, format, quality, loop.
Project TOML β flat or [defaults]-wrapped both work:
# clickcast.toml
engine = "chromium"
viewport = "1280x800"
fps = 12
dwell = 1.0
format = "gif"Env vars:
CLICKCAST_ENGINE=firefox
CLICKCAST_VIEWPORT=1440x900
CLICKCAST_HEADFUL=true
CLICKCAST_PROXY=http://proxy.internal:8080Output formats
Format | Best for | Notes |
| READMEs, chat, quick shares | Widest compatibility; larger files. |
| Docs sites, social, long tours | Smallest for length; uses |
| Web embedding | Great size/quality; animated. |
| Custom pipelines | Numbered PNGs + a |
--quality 1..30 trades size for fidelity (lower = better). --loop 0 loops forever; --loop 1 plays once.
For a smooth 30/60-fps MP4 without capturing 30/60 browser screenshots per
second, add --smooth --video-fps 30. Smooth mode eases cursor movement and
crossfades page transitions while preserving reel duration. On screencast
capture the cursor is additionally speed-capped (1600 px/s by default) so it
glides across the page instead of teleporting between clicks. Declarative
rectangles, arrows, callouts, circles, and spotlights can be added with
--annotations annotations.yml; see Smooth MP4 reels and region
annotations and the annotated scenario
example.
How it works
URL ββΆ Session ββΆ Actions ββΆ Recorder ββΆ Encoder ββΆ .gif/.mp4/.webp
(chromium) (auto or (per-step (Pillow /
YAML) PNGs + imageio-
manifest) ffmpeg)
β β
βΌ βΌ
PageStateCollector ββΆ ReportBuilder ββΆ <out>.json
(console errors,
page errors,
failed requests)Session launches a Playwright browser at the requested viewport/device.
Actions run one step at a time (
click,type,scroll, β¦) with normalised timings and cursor tracking.Recorder captures a pre-frame + N padding frames per step (deterministic filenames, byte-identical copies for padding).
PageStateCollector subscribes to page events for the sidecar.
Encoder produces the final artifact; ReportBuilder finalises the JSON.
The annotator (clickcast.annotate.Annotator β click ripples, cursor trail, caption bar, progress bar) ships as a library API in v0.1. Automatic wiring into auto / run outputs is planned for v0.2 (see Roadmap).
Troubleshooting
Blank frames β the site is a SPA; increase
--initial-wait, or addwait: networkidle(or a specific selector) to the first step.ffmpeg not foundβimageio-ffmpegbundles a static binary; falls back if missing. Choosegif/webpif you'd rather skip MP4 entirely.Selector not found β
clickcast elements <url>shows what's actually clickable. Or mark the stepoptional: true.Can't reach an internal site β set
CLICKCAST_PROXY, orproxyin the scenariometa:block.Chromium missing β
clickcast install. On Linux CI add--with-deps.Sidecar shape changed β the current schema is versioned at
src/clickcast/feedback/schema/v5.json; every bump from v1 has been strictly additive (thegraphblock landed in v2,steps[].deltain v5), so older sidecars keep parsing. Seedocs/feedback-schema.mdfor each version's additive contract.
Contributing
See CONTRIBUTING.md for dev setup, the lint/format/mypy/pytest loop, test markers, and the label taxonomy. In short:
git clone https://github.com/AlexKay28/clickcast
cd clickcast
pip install -e ".[dev]"
clickcast install
ruff check .
ruff format --check .
mypy
pytest -m "not integration" # fast; no browser needed
pytest # full; needs chromiumSecurity issues go through .github/SECURITY.md β privately, never a public issue.
Cutting a release is documented in RELEASING.md.
Roadmap
v0.1 β Session Β· Actions Β· Recorder Β· Encoder Β· Discovery Β· YAML scenarios Β· CLI Β· Python API Β· Sidecar (schema v1) Β· Config precedence Β· Fixture test site Β· Docs.
v0.2 β everything on the original v0.2 list shipped during the v0.2βv0.4 line:
On-frame HUD β shipped as the
--for-humanscomposite (--highlight-target,--title-card,--summary-card,--zoom-on-click, onboarding pace) with the annotation pipeline wired intoauto/run.BFS UI exploration β shipped as
auto --traversal bfs(plus--seed-urlfor deterministic paths,visited-dedup, and the top-levelgraphsidecar block). No separateexplorecommand yet β see below.Sidecar schema v2 with the
graphblock β shipped (schema is now at v5; every bump strictly additive).Automatic annotation of
auto/runoutputs β shipped (annotate.pipeline+AnnotateConfig).
v0.5 (in development on the v0.5 line):
Flagship: first-class
clickcast explore <url>β implemented (see Unreleased in the CHANGELOG): the state-graph command the v0.2 plan only gestured at. Same traversal/dedup internals asauto --traversal bfs, minus recording + encoding β returns a fastexplore.json(nodes = distinct page states, edges =(from, to, action, transition_kind), plus top discoveries per state). Structured-only, agent-first β the reel is opt-in. Contract:docs/explore-schema.md.Pillow 14 deprecation cleanupβ done: the 28Image.getdatadeprecation warnings in pixel-assertion tests migrated to aflattened_pixelshelper (tests/_stubs.py) that prefersget_flattened_dataand falls back across the supportedPillow>=10.0range.Sidecar schema maturity β the v0.1-era plan for a graph block (originally tracked in #29) landed at schema v2 and the schema has since matured to v5 with strictly additive bumps; any future v6 keeps that contract.
Related projects
vercel-labs/webreel β a TypeScript tool for authoring polished demo videos. Easy to confuse with this project given the similar name and overlapping output, so: clickcast is a Python tool aimed primarily at AI agents that need a visual modality onto a live web UI, and secondarily at humans who want reproducible demo reels. If you want hand-authored marketing videos, webreel is the better fit.
License
MIT Β© 2026 Alex Kay. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Visual testing for coding agents: your agent sees every UI change it makes and triages each diff.
Captured web interfaces, screenshots, flows and structured evidence for AI coding agents.
Give agents eyes on any web page: structured context, and changes explained in plain language.
Browser-based QA for AI-built software. Test pages with real browsers via agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to capture screen and voice recordings, extract timestamped frames, and receive structured Markdown reports with context for bug fixing and UI feedback.19MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to visually interact with frontend apps by taking screenshots, clicking elements, reading console logs, and performing visual diffs.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI agent to operate a web app, record a deterministic session, and compile an editable project into a polished MP4 with zooms, cuts, captions, callouts, and reproducible renders.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to run an evidence-backed visual QA loop for browser interfaces, including inspecting a running app, retrieving findings with screenshots, and rechecking only the captures affected by a fix.MIT