
Android Viewer
io.github.acertijosapps由 GitHub 帳號 acertijosapps 發布v1.0.2更新於 Nov 3, 2026
驅動 Android 模擬器:截圖、點選、滑動、按鍵、文字輸入、旋轉和摺疊姿態。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Drive Android emulators: screenshots, taps, swipes, keys, text, rotation and foldable postures.
概覽
Android Viewer 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Android Viewer,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@acertijosapps/android-viewer
Live Android emulator viewer for the browser, plus an MCP server so an AI agent can drive it. Built for the browser pane of AI coding tools (such as Claude Code): you and the agent watch and control the same emulator, in real time, including foldable postures.
[Android Viewer streaming a Pixel 10 Pro Fold emulator: AVD selector on top, the live screen in the middle, and the navigation, hardware, rotation, screenshot and posture controls at the bottom]- Live video:
adb exec-out screenrecord(H.264) over WebSocket, decoded in the browser with WebCodecs. - Input: click, drag, long press and scroll become
adb shell inputcommands. - Every AVD on your machine: pick a running emulator or start a stopped one from the viewer.
- Emulator controls: Back, Home, Recents, Power, Volume, Rotate, full-resolution screenshot.
- Foldables: Closed / Half-opened / Opened / Rear display. On emulators they move the simulated hinge, like the emulator's own controls; the stream follows the active display when you fold or rotate.
- MCP server: the same actions as tools, so the agent's taps show up live in the viewer.
- Nothing to install on the device: no APK, no server push; only
adb.
Requirements
- Node.js 18 or later.
- Android SDK platform tools (
adb) and, to list and start AVDs, the emulator. Found throughANDROID_HOME,ANDROID_SDK_ROOTor the default SDK location; override withADBandEMULATOR. - A browser with WebCodecs (Chromium-based browsers, Safari 16.4+, Firefox 130+).
- Works on macOS, Linux and Windows.
Quick start
Open http://localhost:8093 and pick a device. Deep links: ?avd=Pixel_10 or ?serial=emulator-5554.
Other environment variables: MAX_DIM (longest side of the encoded video, default 1024),
BIT_RATE (default 6M), SCREENSHOT_MAX (longest side of MCP screenshots, default 1024) and
DEBUG=1 (logs every input command).
Use it with an AI agent (MCP)
Claude Code:
Any other MCP client:
Also listed in the official MCP Registry as
io.github.acertijosapps/android-viewer.
Keep the viewer running (npx @acertijosapps/android-viewer) to watch what the agent does. Without
it, the MCP drives the device through adb directly.
Coordinates are normalized to 0–1 over the screenshot (x = pixel_x / image_width), so they hold
in any posture or orientation. serial is optional when only one device is connected.
In the Claude Code browser pane
Add the viewer to .claude/launch.json and open it with preview_start android-viewer:
HTTP API
The MCP uses the viewer's API; you can call it too. serial goes in the query string or the body
and is optional with a single device. POST requests require content-type: application/json and a
local origin, so other websites can't drive your devices.
When a viewer tab is watching the device, actions go through its live session: the viewer updates at once and a watchdog restarts the stream if a gesture produces no frames.
How it works
- One session per device, shared by every tab, stopped when the last one closes.
- Every second it reads
dumpsys display(size, rotation and the physical display behind logical display 0) andcmd device_state state. When the display changes, it waits for it to settle and restartsscreenrecordwith--display-idof the new panel: folding a device switches panels. screenrecordonly emits frames when the screen changes, so the viewer keeps the GOP since the last IDR for late joiners and sends a screenshot while there is no video.- Only one
screenrecordruns per device at a time: two of them exhaust the emulator's software encoder (err=-38). Restarts requested by clients are rate-limited. - Screenshots use raw
screencap(compressing PNG inside the emulator is slow under load), are scaled down by area averaging and encoded as PNG withnode:zlib, with no native dependencies.
Limitations
- Drags are sent on release (one
input swipewith the real duration), not live. - No keyboard passthrough or audio yet; use
type_textandpress_key. - Higher latency than a native client such as scrcpy.
- The software encoder slows down with several emulators recording at once; with little free RAM
(emulators paged out to swap) every
adb shellcall can take seconds. - If an app requests its own posture (
DeviceStateManager.requestState), it wins overset_posturewhile it is in the foreground. Flip_Horizontal_Foldstyle AVDs with a single physical display change state when closed, but the picture stays the same.
Why not ws-scrcpy?
ws-scrcpy was tried first: streaming and input work, but the video freezes on a posture change until you reload (its scrcpy 1.19 server stays bound to the previous display), and it has no posture controls.
Contributing
Branching model (main · beta), Conventional Commits and releases are described in
CONTRIBUTING.md; changes are listed in CHANGELOG.md.
Author
Made by AcertijosApps. See the rest of our libraries at acertijosapps.com/librerias.
Questions or proposals: [email protected] or open an issue.
License
MIT
來源:README.md,提交 4b5ab1f
工具
0版本歷史
1- v1.0.2最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
