Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者による説明(英語の原文)
Drive Electron apps over CDP: screenshots, clicks, drags, keys, JS in renderer and main, logs.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
ELECTRON_VIEWER_URL, ELECTRON_VIEWER_PROJECT必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"electron-viewer": {
"command": "npx",
"args": [
"-y",
"@acertijosapps/electron-viewer",
"mcp"
],
"env": {
"ELECTRON_VIEWER_URL": "your-value",
"ELECTRON_VIEWER_PROJECT": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add electron-viewer --env ELECTRON_VIEWER_URL=your-value --env ELECTRON_VIEWER_PROJECT=your-value -- npx -y @acertijosapps/electron-viewer mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"electron-viewer": {
"command": "npx",
"args": [
"-y",
"@acertijosapps/electron-viewer",
"mcp"
],
"env": {
"ELECTRON_VIEWER_URL": "your-value",
"ELECTRON_VIEWER_PROJECT": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"electron-viewer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@acertijosapps/electron-viewer",
"mcp"
],
"env": {
"ELECTRON_VIEWER_URL": "your-value",
"ELECTRON_VIEWER_PROJECT": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
ELECTRON_VIEWER_URL envELECTRON_VIEWER_PROJECT envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント acertijosapps で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(1.1.0)がレジストリに届いたのは一昨日です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Spec Driven Development, Remote Desktop Commander, FactLot
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Live viewer for Electron apps in the browser, plus an MCP server so an AI agent can drive them. Built for the browser pane of AI coding tools (such as Claude Code): you and the agent watch and control the same app window, in real time.
Page.startScreencast from the Chrome DevTools Protocol (CDP) over WebSocket. It keeps streaming while the app window is covered or minimized.electron . from the viewer, or attach to any app started with --remote-debugging-port. Apps on ports 9222–9231 are found automatically.electron in its node_modules (npm install --save-dev electron); if its binary hasn't been downloaded yet, the viewer downloads it on the first launch.From your Electron project folder:
npx @acertijosapps/electron-viewer@1.1.1
Open http://localhost:8094 and click Launch. The viewer runs electron . on free debugging ports (CDP from 9222, Node inspector from 9229). Deep link to a window: ?window= .
If your app is started by another tool (electron-vite, Electron Forge, a custom script), give the viewer your own start command. {cdpPort} and {inspectPort} are replaced with free debugging ports, and the Launch button (and launch_app) runs it in the project folder:
npx @acertijosapps/electron-viewer@1.1.1 --launch-cmd "yarn dev --remoteDebuggingPort {cdpPort} --inspect {inspectPort}"
That line is for electron-vite; for an npm script that ends in electron ., pass the flags after --: --launch-cmd "npm start -- --remote-debugging-port={cdpPort} --inspect={inspectPort}". The command is only read from the command line or ELECTRON_VIEWER_LAUNCH_CMD, never from the HTTP API or the MCP.
Or start the app yourself with the flags and the viewer finds it:
electron --remote-debugging-port=9222 --inspect=9229 .
Apps on CDP ports 9222–9231 are found automatically, and so is their main process when its inspector is on 9229–9238. --inspect is optional; without it you get everything except the main-process features (evaluate_main, real window resizing and in-app DevTools). To attach on other ports, use the form in the viewer or --attach and --inspect.
electron-viewer [options] Start the viewer
electron-viewer mcp [options] Start the MCP server on stdio
--project Project to launch with "electron ." (default: current folder) --launch-cmd Launch with this shell command instead; {cdpPort} and {inspectPort} are replaced with the debugging ports -p, --port Viewer port (default 8094, env PORT) --host Interface to bind (default 127.0.0.1, env HOST) --attach Attach at startup to an app on this CDP port --inspect With --attach: the app's main process inspector port --viewer-url Viewer the MCP talks to (default http://localhost:8094)
Other environment variables: MAX_DIM (longest side of the streamed frames, default 1920), QUALITY (JPEG quality, default 80), SCREENSHOT_MAX (longest side of MCP screenshots, default 1024), CDP_PORT / INSPECT_PORT (first ports to scan and launch on, default 9222 / 9229) and ELECTRON_VIEWER_STATE_DIR (where launched and attached apps are remembered, default ~/.cache/electron-viewer).
Claude Code:
claude mcp add electron-viewer -- npx -y @acertijosapps/electron-viewer@1.1.1 mcp
Any other MCP client:
{
"mcpServers": { "electron-viewer": { "command": "npx", "args": ["-y", "@acertijosapps/electron-viewer@1.1.1", "mcp"] } } }
Also listed in the official MCP Registry as io.github.acertijosapps/electron-viewer.
The examples pin an exact version. The viewer and the MCP can run code in your app, so pin the version you reviewed instead of letting npx fetch whatever was published last, and update it on purpose.
Keep the viewer running (npx @acertijosapps/electron-viewer@1.1.1) to watch what the agent does. Without it, the MCP drives the app over CDP directly. Apps launched by either one are visible to the other.
| Tool | What it does |
|---|---|
list_windows | Running apps (with main when the main process is reachable) and their windows |
launch_app | Run electron . in the project on free debugging ports and wait for the first window |
attach | Attach to an app on a CDP port, optionally with its inspector port |
screenshot | PNG of the window content, longest side ≤ 1024 px |
click | Left, right or middle click; count: 2 for a double click; optional modifiers |
drag | Press, move in steps and release: a real drag |
hover | Move the mouse without clicking |
tap | One-finger tap (touch events, pointerType: "touch") |
swipe | One-finger swipe: scrolls touch lists and drives swipe gestures |
long_press | Hold one finger down for a while, 800 ms by default |
pinch | Two-finger pinch around a point; scale > 1 zooms in, < 1 zooms out |
scroll | Mouse wheel at a point, deltas in CSS px |
type_text | Insert text into the focused element (any Unicode) |
press_key | Enter, Tab, Escape, arrows, F1–F12… or any character, with modifiers |
resize_window | Resize the content area: the real window with the main process, an emulated viewport when the window can't reach the size (or with emulate: true) |
reload | Reload the window's page |
evaluate | Run JavaScript in the window's page and return the value |
evaluate_main | Run JavaScript in the main process, with require('electron') available |
get_accessibility_tree | Roles, names, values and states; interactive elements carry their normalized center |
get_console_logs | Console messages and exceptions from renderer windows and the main process, or the raw stdout |
Coordinates are normalized to 0–1 over the content screenshot (x = pixel_x / image_width), so they hold at any window size. window is optional when only one window is open; it takes the target id from list_windows or part of the window title.
Add the viewer to .claude/launch.json and open it with preview_start electron-viewer:
{
"version": "0.0.1", "configurations": [ { "name": "electron-viewer", "runtimeExecutable": "npx", "runtimeArgs": ["-y", "@acertijosapps/electron-viewer@1.1.1"], "port": 8094, "autoPort": false } ] }
The MCP uses the viewer's API; you can call it too. window (target id or part of the title) goes in the query string or the body and is optional with a single window. The server only listens on 127.0.0.1, only accepts a local Host and origin, and POST requests require content-type: application/json, so other websites can't drive your apps.
Parameters are validated with the same limits as the MCP tools. A missing, unknown or out-of-range field gets a 400 that names it, e.g. {"error": "POST /api/swipe: missing x1, y1, x2, y2; unknown fromX, fromY, toX, toY (fields: window, x1, y1, x2, y2, ms)"}. Coordinates are normalized 0–1 and query string values are converted to numbers and booleans.
| Endpoint | |
|---|---|
GET /api/windows | [{ id, name, cdpPort, inspectPort, main, windows: [{ id, title, url }] }] |
GET /api/project | The project the viewer launches and whether it has Electron installed |
GET /api/screenshot?max= | PNG; viewport size in X-Viewport-Width / X-Viewport-Height |
GET /api/ax-tree?interactiveOnly=true | { tree } |
GET /api/logs?level=&source=&limit= | { logs } or { stdout } |
POST /api/launch | { project? } |
POST /api/attach | { port, inspectPort? } |
POST /api/click | { x, y, button?, count?, modifiers? } |
POST /api/drag | { x1, y1, x2, y2, ms? } |
POST /api/hover | { x, y } |
POST /api/tap | { x, y } |
POST /api/swipe | { x1, y1, x2, y2, ms? } |
POST /api/long-press | { x, y, ms? } |
POST /api/pinch | { x?, y?, scale, ms? } |
POST /api/scroll | { x, y, dx, dy } |
POST /api/text | { text } |
POST /api/key | { key, modifiers? } |
POST /api/resize | { width, height, emulate? } (0 × 0 restores the window size) |
POST /api/reload | { ignoreCache? } |
POST /api/evaluate | { expression } |
POST /api/evaluate-main | { expression, app? } |
POST /api/devtools | Toggles DevTools; without the main process returns the DevTools url |
ws: no Playwright, no Puppeteer, nothing injected into the app. The renderer is reached through --remote-debugging-port (one page target per window) and the main process through the Node inspector (--inspect), where the console API provides require.Input.dispatchKeyEvent, and text that arrives without key events (IME, dictation) with Input.insertText. On macOS, ⌘A, ⌘C, ⌘V, ⌘X and ⌘Z are sent as editing commands, because the native menu that normally handles them never sees CDP events.Input.dispatchTouchEvent. The first touch action on a window also turns on touch emulation (navigator.maxTouchPoints 5, pointer: coarse) until the viewer or MCP that sent it exits.--inspect in that range gets one short connection (it logs Debugger attached.) and is left alone.~/.cache/electron-viewer, so the viewer and the MCP see the same apps. Launched apps write their output to a log file there and keep running if the viewer or MCP exits.evaluate_main to drive it from the main process. Capturing it would mean capturing the screen, and with it any冒頭だけを表示しています。続きはリポジトリで読めます