electron-agent-bridge
[npm]
[CI]
[License: MIT]
Let AI agents, scripts and tests see and drive any Electron app: its pages, IPC, logs, network, state
and main process. One bridge, three ways in: an MCP server for agents (Claude Code and other MCP
hosts), the eab CLI, and a typed Node API, plus YAML flows for tests.
- See the app the way a user does. Compact accessibility snapshots with stable refs (
button "Save" [e12]), deltas of what changed, frames, views, webviews and offscreen windows, screenshots; console and network of workers and service workers too.
- Act like a user. Trusted clicks, typing, filling forms, keys, drag and drop, uploads, with
auto-waiting and errors that say why (
OCCLUDED by dialog "Confirm"), plus what the app did in
response: dialogs, toasts, console errors, failed requests, IPC.
- See inside. IPC on both sides with request/response correlation, renderer and main logs, crashes,
network metadata, Redux / Zustand / MobX state, application menus, native dialogs.
- Safe by default. Off unless
EAB_ENABLE=1; refuses packaged builds unless opted in; local socket
plus token; capability tiers (eval never by default); secrets redacted; page content marked
untrusted for agents.
Electron 35+ on Windows, macOS and Linux.
Quick start
Integrated (the app imports the bridge, which does nothing unless enabled):
Launch (no code change; the launcher injects the bridge into an unmodified, unfused app):
For agents: add the MCP server to your MCP host, e.g.
claude mcp add eab -- npx -y @electron-agent-bridge/mcp (or npx eab-mcp where @electron-agent-bridge/mcp is installed). The
agent then has 14 tools: session, targets, snapshot, find, act, wait_for, screenshot,
logs, network, ipc, state, app, and, where the app grants eval, dialogs and eval.
For tests:
From code:
Documentation
Packages
Development
See CONTRIBUTING.md. MIT licensed.