# RemoteCast (chrome-stream-mcp): Complete Technical Specification

> Source: https://remotecast.eatingdream.dev/ | Directory: https://remotecast.eatingdream.dev/llms.txt | Search: https://remotecast.eatingdream.dev/.well-known/search?q={query}

## Overview

- **Category**: Local and tunneled Chrome CDP screencast / 本地与隧道 Chrome CDP 投屏
- **Platform**: macOS and Linux
- **Canonical URL**: https://remotecast.eatingdream.dev/
- **Repository**: https://github.com/eatingDream-antigravity-plugins/RemoteCast
- **Releases**: https://github.com/eatingDream-antigravity-plugins/RemoteCast/releases
- **AI Guide**: https://github.com/eatingDream-antigravity-plugins/RemoteCast/blob/main/docs/ai-guide.md
- **License**: MIT

**Summary (EN)**: Watch and click through Chrome without leaving Antigravity, over loopback or your own tunnel, even on a slow link.
**简介 (ZH)**: 不离开 Antigravity，就能通过本机回环或自己的隧道操作 Chrome，网速慢也看得清。

**What It Is**: A native Rust relay and live MCP App that streams local Chrome tabs directly into Antigravity with interactive pointer and keyboard input, tab management, and adaptive weak-network pacing.
**定位说明**: 原生 Rust 中继与实时 MCP 应用：将本地 Chrome 标签页低延迟投屏至 Antigravity，支持精准键鼠交互、标签切换与弱网自适应帧率调度。

**What It Is Not**: Not a public remote-desktop server or exposed debugging bridge. All Chrome DevTools traffic stays strictly on loopback (127.0.0.1 / ::1) with 0600 Unix socket auth.
**边界声明**: 不是暴露公网的远程桌面服务。所有 Chrome 调试流量严格锁定本机回环（127.0.0.1 / ::1），并由 0600 Unix 套接字鉴权。

## Quick Start

Install native binary and Antigravity plugin:

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

Add portable Agent Skill (`agentskills.io`):

```sh
npx skills add eatingDream-antigravity-plugins/RemoteCast
```

## 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.

## CLI Subcommands

- `chrome-stream-mcp serve [--data-dir <path>] [--panel-html <path>]`
- `chrome-stream-mcp relay [--data-dir <path>]`
- `chrome-stream-mcp doctor [--json]`

## How It Works

### See it and use it in one place (看和用都在同一个地方)

The browser tab sits right next to your code, and clicks, typing and scrolling go straight to it. Checking a fix no longer means hunting for the right window.

调试页面就在代码旁边，点击、输入和滚动都直接发过去。验证一个改动，再也不用切来切去，到处找那一个窗口。

### Pause without asking Chrome again (暂停之后，不用再让 Chrome 授权)

Standby stops the stream when you do not need it but keeps the connection Chrome already approved. Coming back takes one click instead of another permission prompt.

待机会停掉画面传输，但保留 Chrome 已经同意过的连接。回来的时候点一下就好，不会再弹出一次授权提示。

### Spin up a clean Chrome when you need one (需要时，一键开一个干净的 Chrome)

One click starts a separate local Chrome on loopback with its own profile and remote debugging turned on. Your everyday browser, its tabs and its logins stay untouched.

点一下，就能在本机回环启动一个独立的 Chrome，用单独的配置并开好远程调试。平时用的浏览器、标签页和登录状态都不受影响。

## Connection Modes and Session Lifecycle

| Mode or State | Endpoint and Isolation | Allow Prompt and Behavior |
| --- | --- | --- |
| Personal Chrome | Reads DevToolsActivePort strictly on loopback | One-time Allow in Chrome; keeps extensions and logins |
| Remote Chrome (No Allow) | Dedicated 0700 profile bound strictly to 127.0.0.1 | Zero Allow dialog; reuses only verified isolated instance |
| Standby (Warm) | CDP control channel kept warm over 0600 Unix socket | 0 FPS capture; instant Wake without re-Allow |
| Revoke and Disconnect | Nested inside overflow menu to prevent accidental clicks | Drops CDP session cleanly; requires fresh Allow later |

## Safety and Privacy Boundaries

1. Loopback-only (127.0.0.1 / ::1): rejects non-loopback endpoints and never exposes Chrome debugging ports to LAN or WAN.
   - 中文：严格本机回环（127.0.0.1 / ::1）：拒绝非回环端点，绝不向局域网或公网暴露调试端口。
2. Peer-UID verified 0600 Unix socket: checks directory ownership and permissions before opening the relay socket or 0700 profile.
   - 中文：0600 Unix 套接字与对端 UID 校验：启动前严格验证目录属主与权限，防止本地劫持。
3. Explicit connect and 12 s idle stop: never auto-dials Chrome on panel load and halts capture during inactivity.
   - 中文：显式连接与 12 秒自动停帧：面板加载不暗中连线，闲置即刻停止画面采集。
4. Capability gating: bootstrap pixels and tabs are returned only after the host negotiates the MCP App MIME type.
   - 中文：能力协商门控：仅在宿主声明支持 MCP App MIME 类型后才注入实时首帧与标签数据。

## Suite Navigation

- **eatingDream Hub**: https://eatingdream.dev/
- **ContextRadar** (context-radar-mcp): https://contextradar.eatingdream.dev/ (Shows which turns are filling your context window and why the prompt cache went cold, so you can wrap up before things slow down.)
- **ClamGuard** (mac-clamshell-mcp): https://clamguard.eatingdream.dev/ (Watches lid state, fans and heat on your MacBook without sudo, throttles heavy builds when closed, and restores brightness when you open it.)
- **ColabDeck** (colab-mcp): https://colabdeck.eatingdream.dev/ (Lists every Colab GPU you have running and what it has cost so far from live rates, then stops the ones you forgot about.)
