# RemoteCast (chrome-stream-mcp)

> Stream and drive local Google Chrome tabs inside Antigravity—crisp and responsive even over weak mobile links. Request `Accept: text/markdown` for content negotiation or fetch `https://remotecast.eatingdream.dev/index.md` directly.

## Agent Endpoints

- [Search for Agents](https://remotecast.eatingdream.dev/.well-known/search?q={query}): Site-wide Markdown search supporting `GET ?q=...` and HTTP `QUERY` (`text/plain` or JSON `{"q":"..."}`).
- [Markdown Page Mirror](https://remotecast.eatingdream.dev/index.md): Clean Markdown mirror with YAML frontmatter.
- [Full Technical Spec](https://remotecast.eatingdream.dev/llms-full.txt): Complete self-contained technical specification, operational matrix, MCP tools, and CLI reference.
- [Agent Skills Discovery](https://remotecast.eatingdream.dev/.well-known/agent-skills/index.json): Machine-readable Agent Skills Discovery v0.2.0 index with SHA-256 digests.
- [XML Sitemap](https://remotecast.eatingdream.dev/sitemap.xml): Canonical URL index.
- [Atom Feed](https://remotecast.eatingdream.dev/feed.xml): Machine-readable Atom 1.0 feed.

## Metadata

- Official Site: https://remotecast.eatingdream.dev/
- Suite Hub: https://eatingdream.dev/
- Repository: https://github.com/eatingDream-antigravity-plugins/chrome-stream-mcp
- AI Guide: https://github.com/eatingDream-antigravity-plugins/chrome-stream-mcp/blob/main/docs/ai-guide.md
- Upstream llms.txt: https://github.com/eatingDream-antigravity-plugins/chrome-stream-mcp/blob/main/llms.txt
- Platform: macOS · Linux
- License: MIT

## Quick Install

```sh
curl -fsSL https://raw.githubusercontent.com/eatingDream-antigravity-plugins/chrome-stream-mcp/main/scripts/install.sh | sh
```

## Portable Agent Skill

```sh
npx skills add eatingDream-antigravity-plugins/chrome-stream-mcp
```

## MCP Tools

- `chrome_stream_stage`: Opens the live viewer (ui://chrome-stream-mcp/stage) and reports relay/Chrome readiness without auto-connecting.
- `chrome_stream_connect`: Connects to personal or isolated remote Chrome with adaptive quality presets and streams the active tab.
- `chrome_stream_disconnect`: Supports standby (0 FPS warm authorization) or revoke (closes CDP WebSocket).
- `chrome_stream_frame`: App-only long-poll for adaptive motion JPEG or crisp settled WebP stills with 0-byte deduplication.
- `chrome_stream_input`: App-only coalesced pointer/keyboard input bound to (targetId, targetEpoch).
- `chrome_stream_launch_remote`: App-only isolated 0700 loopback Remote Chrome launcher without local Allow prompt.

## Key Capabilities

- **Zero-Re-Allow Standby / Wake**: Header Standby freezes frame capture at 0 FPS while keeping Chrome's authorized CDP session warm across panel reloads. Destructive Revoke lives safely inside the overflow menu.
- **Personal Chrome or Isolated 0700 Remote Chrome**: Attach to your existing Chrome profile via DevToolsActivePort (logins intact), or launch an isolated 0700 loopback profile that never requires local Allow confirmation.
- **Weak-Net Crisp WebP Settle & 0-Byte Dedup**: Maintains legible motion floors while scrolling or typing, then settles into a sharp WebP frame ~380 ms after input stops—with 0-byte unchanged frame deduplication.
- **EWMA RTT Pacing & Wheel Coalescing**: Smooths mobile network jitter with asymmetric hysteresis to stop quality thrashing, while coalescing burst wheel events and double-buffering decoded canvas frames.
- **Epoch-Safe Input & Clean Tab Semantics**: Binds every click and keystroke to the active tab epoch so background tab switches never misroute input; closing the last tab renders a clean empty stage.
- **Sanitized Doctor Diagnostics & 12 s Idle Stop**: Opening the panel never auto-dials Chrome. Capture pauses automatically after 12 seconds idle, and doctor --json redacts local paths and raw DevTools URLs.

## Safety & Privacy

- Loopback-only (127.0.0.1 / ::1): rejects non-loopback endpoints and never exposes Chrome debugging ports to LAN or WAN.
- Peer-UID verified 0600 Unix socket: checks directory ownership and permissions before opening the relay socket or 0700 profile.
- Explicit connect & 12 s idle stop: never auto-dials Chrome on panel load and halts capture during inactivity.
- MCP App capability gating: bootstrap pixels and tabs are returned only after the host negotiates the SEP-1865 App MIME type.
