ISCV Live Preview
OfficialLive-previews and live-edits CSS styles in previewed pages, including zero-flash hot-swapping of external and inline CSS, color/typography/effect/layout adjustments, and WCAG 2.1 contrast recalculation.
Previews and inspects standalone .svg files in a Light/Checker/Dark vector host, supports SVG element/shape boundary inspection and live visual editing, and can sync static SVG edits back to disk.
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.
ISCV Live Preview turns Antigravity's Side Pane (aux_pane), Inline Chat, and Full-Page Sidebar (global) into a hardened live web and motion-stage preview studio—replacing external browser context-switching with zero-flash CSS hot-swap, 1-click viewport/aspect scaling (Fit, Desktop, 16:9, 9:16, 1:1), click-to-agent DOM & live-editable WCAG 2.1 visual inspection (updateModelContext + opt-in Sync to File), standalone .svg element inspection, and automatic window.seekToFrame(frame, fps) timeline scrubbing.
Narrow Side Pane ( | Inline Chat Preview Card ( |
⚡ TL;DR — Capabilities & Verified Receipts
4 Core Differentiating Features (Zero External Browser Needed):
Targeted Auto Live-Reload: Watches only the entry directory and served asset folders (
≤ 16dirs) over same-origin SSE (0outerconnectDomains,0 / 4callServerToolslots); hot-swaps external.css<link>tags and inline<style>-only edits with zero flash, and restores scroll + motionframe/fpsafter full HTML reloads.Viewport & Aspect Switcher (
Fit,Desktop,16:9,9:16,1:1):ResizeObserver-driven crisp zoom-to-fit (Math.floor(W × s) × Math.floor(H × s),0overflow), auto-scaling fixed1920×1080stages inside narrow Side Panes and syncing dual-aspect?aspect=9x16/?aspect=16x9stages.Click-to-Agent DOM Inspector & Live Visual Editor (
updateModelContext+ Opt-inSync to File): Piercespointer-events: nonemotion scenes and outer CSSbox-shadowframes (elementsFromPoint+ exactgetClientRects()fragment hit-testing + shadow-rect hit-testing + clickable DOM ancestor breadcrumb & Figma-style Layers dropdown with live hover preview), renders exact multi-line fragment & SVG vector shape boundaries (getScreenCTM()), lets you live-edit FG/BG colors (with instant WCAG 2.1 (0.04045) contrast recalculation), Box W/H, Typography (Size/Line-Height/Weight), data-driven Active Effects & Styles (auto-detects activebox-shadow,text-shadow, SVGstroke/stroke-width/dasharray,border/border-radius/outline,opacity,filter/backdrop-filter,mix-blend-mode,transform,clip-path, or any valid CSS property viaCSS.supports()+ generic+ Style, zero hardcoded empty cards), multiline Text (Enter→<br>), and safe-parsed Outer HTML (0 mslive DOM sync +Reset), attaches automaticBefore → Afterdiffs to your next prompt (strictly capability-gated viaapp.getHostCapabilities()), and optionally writes static.html/.svgedits back to disk viaSync to File(atomic write + watcher self-write echo suppression, failing safely on dynamic JS DOM).Auto Motion Stage Scrubber & Standalone SVG Preview: Automatically detects
window.seekToFrame(frame, fps)across inline,defer, andtype="module"scripts to reveal Play/Pause,-1f/+1fstepping, timeline scrubbing, and editable FPS (24/30/60) + duration controls; wraps standalone.svgfiles in a Light/Checker/Dark inspectable vector host.
Hardened Loopback Containment & Dual-OS Parity: Strictly binds
127.0.0.1(never0.0.0.0) withHostDNS-rebinding rejection,timingSafeEqualsession tokens,Referrer-Policy: no-referrer,realpathSync.nativesymlink/junction containment, UNC/ADS/reserved-device rejection, dual-path.env/.git/key denylist, RFC 9110206/416mediaRange, and cleanstdinEOF zero-zombie shutdown on Windows, macOS, and Linux.Zero-Dependency Runtime Bundles (
7.62%of10 MiBCap): Ships standalonebin/server.cjs(1,656.9 KiB),ui/pane.html(780.1 KiB), andui/inline.html(780.1 KiB) with0external CDNs and0node_modulesrequired at plugin runtime.Release & Marketplace Status: LIVE on GitHub (
v1.0.0, GitHub Actions CI4 / 4green across Linux, Windows, macOS, and Playwright E2E) • Antigravity Marketplace IN PIPELINE (submitted2026-11-28).
One-Prompt Universal Agent Install
Compatible with Any AI Agent (Cloud • IDE • CLI • Local LLM)—paste this prompt into your agent or run the Antigravity CLI command below:
Install the ISCV Live Preview Antigravity plugin from https://github.com/iscvlab/iscv-live-preview:
1. If the `agy` CLI is available, run `agy plugin install https://github.com/iscvlab/iscv-live-preview` and verify with `agy plugin validate --strict ~/.gemini/config/plugins/iscv-live-preview` (or `%USERPROFILE%\.gemini\config\plugins\iscv-live-preview` on Windows) and `agy plugin list --json`.
2. Otherwise, detect my OS and global plugin directory (`~/.gemini/config/plugins/iscv-live-preview` on Linux/macOS or `%USERPROFILE%\.gemini\config\plugins\iscv-live-preview` on Windows), clone `https://github.com/iscvlab/iscv-live-preview` there (runtime bundles require zero `node_modules`), and verify `npm test` passes.agy plugin install https://github.com/iscvlab/iscv-live-previewVerified Bundle Footprint & 4-Gate Scorecard
Evaluation Dimension | Component / Verification Gate | Visual Comparison Bar ( | Measured Result & Spec Receipt |
1. UI Bundle Size vs. |
|
|
|
2. Tool Payload vs. | Loopback Metadata ( |
|
|
3. Security & Protocol Gates ↑ | Gate 1: |
|
|
4. Browser E2E & Plugin Gates ↑ | Gate 3: |
|
|
Related MCP server: redpen
1. Architecture & Surface Workflow
ISCV Live Preview binds an isolated 127.0.0.1 loopback HTTP server before MCP handshake so _meta.ui.csp.frameDomains declares only the exact ephemeral origin (connectDomains: [], resourceDomains: []). All previewed pages and raw HTML/SVG strings load under tokenized /s/<sid>/<tok>/... paths with an injected external same-origin bridge.js communicating with the outer MCP App shell over an inverted MessageChannel port (fully compatible with opaque "null" sandbox origins).
%%{init: {'theme': 'neutral'}}%%
flowchart LR
subgraph Canvas [" "]
Host["Antigravity Host and Agent"] --> MCP["Stdio MCP Server (bin/server.cjs)"]
MCP --> Shell["MCP App Shell (pane.html / inline.html)"]
MCP --> Session["Session Engine and Root Resolver"]
subgraph Loopback ["Hardened 127.0.0.1 Static Server"]
HTTP["Tokenized HTTP and Range Server"]
Watch["Targeted Served-Dir Watcher"]
end
Session --> HTTP
Session --> Watch
HTTP --> Frame["Preview Iframe (HTML, SVG, Motion Stage)"]
Watch --> Frame
Shell <--> Frame
Shell --> Context["Gated updateModelContext and FileView"]
end
classDef default fill:#ffffff,stroke:#475569,color:#0f172a,stroke-width:1px
style Canvas fill:#ffffff,stroke:#cbd5e1,stroke-width:1.5px,color:#0f172a
style Loopback fill:#f8fafc,stroke:#94a3b8,color:#0f172a%%{init: {'theme': 'neutral'}}%%
flowchart LR
subgraph Canvas [" "]
subgraph Step1 ["1. Open or Update"]
Tool["iscv_preview_open or iscv_preview_inline"]
Picker["Empty Launch File Picker"]
end
subgraph Step2 ["2. Live Preview and Inspect"]
View["Viewport Scale and Live Reload"]
Inspect["DOM Pierce, WCAG 2.1 and Motion Scrub"]
end
subgraph Step3 ["3. Agent Context Loop"]
Attach["Attach Selector and Contrast to Chat"]
Edit["Agent Edits Source and Auto-Reloads"]
end
Tool --> View
Picker --> View
View --> Inspect
Inspect --> Attach
Attach --> Edit
Edit --> View
end
classDef default fill:#ffffff,stroke:#475569,color:#0f172a,stroke-width:1px
style Canvas fill:#ffffff,stroke:#cbd5e1,stroke-width:1.5px,color:#0f172a
style Step1 fill:#f8fafc,stroke:#94a3b8,color:#0f172a
style Step2 fill:#f8fafc,stroke:#94a3b8,color:#0f172a
style Step3 fill:#f8fafc,stroke:#94a3b8,color:#0f172a2. Quick Start & Installation
Option A — Antigravity CLI Install
agy plugin install https://github.com/iscvlab/iscv-live-preview
agy plugin list --jsonOption B — Local Clone, Build & Sync
git clone https://github.com/iscvlab/iscv-live-preview.git
cd iscv-live-preview
npm ci
npm run build:sync
agy plugin validate --strict .
npm testExample Prompts in Antigravity
"Preview
index.htmllive in the side pane with auto-reload and switch to16:9.""Open
assets/logo.svgin ISCV Live Preview so I can inspect its vector elements.""Preview
canopygis_v4_motion_stage.htmlat frame80with the motion scrubber."
3. Benchmarks, Security Model & Tool Reference
MCP Tool | Visibility | Surface Entrypoints | Primary Responsibility |
|
|
| Open or live-update the Side Pane / Full-Page previewer (empty |
|
| Inline chat only | Render a bounded ( |
|
| — | Scan allowed workspace root for previewable |
|
| — | Switch active file from in-app File Picker or recover stale sessions after server restart |
|
| — | Pause/resume watcher, persist stage FPS/duration overrides, or apply opt-in fail-safe |
Shared Optional Input Schema (iscv_preview_open & iscv_preview_inline)
All inputs are strictly optional so Antigravity + and sidebar launches ({}) work seamlessly:
Parameter | Type | Description |
|
| Absolute or workspace-relative path to |
|
| Raw HTML or SVG string served from an in-memory buffer ( |
|
| Optional asset serving root (auto-resolved via 5-tier cascade when omitted) |
|
|
|
|
|
|
|
| Start with DOM Inspect Mode & Inspector sidebar active ( |
|
| Initial motion frame ( |
|
| Override FPS ( |
|
| Override stage duration in seconds ( |
|
| Optional display title for the preview tab or inline card |
|
| Force a full iframe reload even if the same file is already open ( |
|
| Enable automatic live-reload file watching ( |
|
| Enable live-reload watching on the inline card ( |
|
| Inline card viewport height ( |
5-Tier rootDir Resolution & Security Invariants
Explicit
rootDir(must be canonical ancestor of entry file; rejects system/profile/drive roots).MCP Client Roots (
listRoots()guarded by client capabilities +1500 mstimeout +fileURLToPath).Project Marker Walk-Up (
.git,package.json,pyproject.toml,Cargo.toml,go.mod,AGENTS.md,GEMINI.md,.vscode,.antigravitystrictly belowhomedir/Desktop/drive roots).Static Relative-Ref Ceiling (scans
src=,href=, CSSurl(...), JSimport../hops up to8levels, clamped strictly below forbidden roots—supporting deeply nested stages reaching shared font libraries).Entry Directory Fallback (fails closed if entry directory is a forbidden system/profile/temp root).
All HTTP requests enforce 127.0.0.1 loopback peer address, exact Host: 127.0.0.1:<port>, constant-time timingSafeEqual token matching, Referrer-Policy: no-referrer, X-Content-Type-Options: nosniff, Cache-Control: no-store, pre-fs rejection of UNC/ADS/reserved Windows device names, canonical fs.realpathSync.native containment, dual-path sensitive-file denylist (.env, .git, .ssh, *.pem, *.key, id_rsa*), and a server-wide cap of 3 active SSE connections with event: hlp-paused eviction.
4. License & Credits
Released under the MIT License. Created and maintained by ISCV | Isocurve Research Lab (@iscvlab) — Napat Tan (@napattan).
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
Build, edit and preview browser games and web apps in your Amplify account from your AI agent.
Give agents instant OG image generation, social metadata audits, and rendering guidance.
Agents publish self-contained HTML to a stable review link, with page-level feedback and revoke.
Edit your live web app by chatting: preview changes in a sandbox, then open a pull request.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceBridges AI coding agents with the browser to provide visual debugging, real-time error capture, screenshot capabilities, DOM inspection, and interactive wireframing through a reverse proxy with injected developer tools.22Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to capture pixel-accurate screenshots and DOM state from localhost apps, receive user-drawn instructions and reference images, and manage implementation review cycles.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to inspect live web and responsive UIs across mobile and desktop sessions, returning measured text findings on contrast ratios, touch-target sizes, overflow, and theme drift instead of screenshot guesses. It also lets a human and the agent share one live panel, so the agent can navigate, tap, and type while reading the user's pinned notes and frames.155 npmMIT
- AlicenseAqualityCmaintenanceEnables AI coding agents to visually inspect and test local frontend apps by taking screenshots, comparing changes, inspecting DOM styles, interacting with UI elements, capturing console logs, and running accessibility audits.111MIT