mcpField
πŸš€
πŸš€ Electron Debug MCP Server

πŸš€ Electron Debug MCP Server

Local
github.com/amafjarkasiDeveloper Tools92Updated 3d ago

About πŸš€ Electron Debug MCP Server

Electron Debug MCP is an MCP server for coding agents that inspect and debug running Electron applications. It connects through Chrome DevTools Protocol and Node inspector, combining visual inspection, UI automation, runtime diagnostics, and main-process IPC observability.

Key features

  1. 01Inspect windows, DOM, and accessibility trees
  2. 02Automate UI actions and verify results
  3. 03Capture console, network, and process logs
  4. 04Profile performance and inspect memory
  5. 05Observe and invoke main-process IPC
  6. 06Audit Electron security settings

Use cases

  1. 01Diagnose an Electron runtime exception
  2. 02Automate and verify a desktop workflow
  3. 03Investigate failed network requests
  4. 04Check app performance and security

MCP support

Exposes Electron lifecycle, inspection, automation, debugging, and diagnostic tools to MCP clients. It communicates with renderer windows over CDP and can inspect the main process through Node inspector.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README
Electron Debug MCP Logo

Electron Debug MCP

Real Chrome DevTools Protocol superpowers for AI coding agents.
Give Cursor, Claude & autonomous agents eyes, hands, and deep runtime inspection inside Electron desktop applications.

version 111 tools 9 resources 6 prompts Node Electron license

Quick Start β€’ Superpowers β€’ Tool Matrix β€’ Recipes β€’ Resources & Prompts β€’ Changelog β€’ Troubleshooting


🌟 Why Electron Debug MCP?

Most AI coding agents struggle with desktop applications: they can edit source code, but they cannot see the resulting window, click buttons, read console errors, or diagnose silent main-process crashes.

Electron Debug MCP bridges your agent directly into your Electron runtime via the Chrome DevTools Protocol (CDP) and Node inspector, unlocking full visual, interactive, and diagnostic autonomy.

flowchart LR
    A["πŸ€– AI Agent (Cursor / Claude)"] <-->|"stdio JSON-RPC"| B["⚑ Electron Debug MCP"]
    B <-->|"CDP (WebSocket)"| C["πŸ–ΌοΈ Renderer Windows\n(DOM Β· AXTree Β· Network Β· V8)"]
    B <-->|"Node Inspector / V8"| D["βš™οΈ Main Process\n(IPC Β· WebContents Β· Windows Β· Fuses)"]

✨ Key Superpowers

πŸ›‘οΈ Runtime Security Audit

electron_security_audit evaluates running windows against official Electron security guidelines. Flags nodeIntegration, missing contextIsolation, disabled sandbox, unsafe CSP, missing setWindowOpenHandler, unguarded will-navigate, and executable binary fuses.

πŸ”’ Zero-Leak Secret Automation

Automate logins and API forms without leaking credentials. type_text({ text: "{{secret:VAR}}" }) resolves from process.env and automatically redacts the secret from return values, console logs, network entries, and HAR exports with [REDACTED].

🧩 Autonomous Composite Workflows

High-level single-turn workflows reduce round trips:

  • act_and_verify: Action β†’ network idle β†’ UI assertion β†’ automatic failure screenshot if assertion fails.
  • triage: Instant health overview with page state, console errors, network failures, and resolved top exception stack.
  • network_failure_report: Aggregates failed HTTP calls with response bodies inline plus an exported HAR artifact.
πŸ”Œ Deep IPC Observability
  • ipc_tap: Intercepts main-process ipcMain.handle and webContents.send calls.
  • ipc_invoke: Call any registered main-process handle channel directly with custom arguments.
  • ipc_schema_inference: Analyzes traffic patterns and automatically emits inferred TypeScript interfaces for your preload bridge.
πŸ—ΊοΈ Source-Mapped Stack Traces

resolve_stack decodes inline base64 and external v3 source maps. When your bundled app throws an exception, the agent gets original .ts and .tsx file names, line numbers, and original source snippets rather than minified bundle noise.

⚑ Frictionless Agent Ergonomics
  • Optional processId: Automatically defaults to the single active app session.
  • Tool Annotations: Tools declare standard MCP hints (readOnlyHint, destructiveHint) so clients can auto-approve safe queries.
  • Artifacts Resource: Output files are indexed as electron://artifact/{id}.

⚑ Quick Start

1. Configure Your MCP Client
πŸš€ In Cursor (~/.cursor/mcp.json or .cursor/mcp.json)
{
  "mcpServers": {
    "electron-debug": {
      "command": "npx",
      "args": ["-y", "electron-debug-mcp@latest"]
    }
  }
}
πŸ’¬ In Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "electron-debug": {
      "command": "npx",
      "args": ["-y", "electron-debug-mcp@latest"]
    }
  }
}

Tip

Developing locally? Run npm run build and configure "command": "node" with "args": ["/path/to/electron-mcp-server/build/index.js"].


πŸ› οΈ Tool Matrix (111 Tools)

All tools accept an optional processId. When only one app is running, it automatically resolves to the active process.

πŸš€ Lifecycle & Connection (8)
ToolDescription
start_appLaunch Electron app with remote debugging port. Set inspectMain: true to enable main-process debugging.
stop_appTerminate launched app or detach from an attached session.
attachConnect to a running Electron app via DevTools port or WebSocket URL.
attach_by_pidDetect DevTools port from an Electron OS PID's command line and attach.
find_appsEnumerate all running Electron processes on the host machine.
discover_appsScan local TCP ports (default 9222–9322) to discover live CDP debug endpoints.
find_installed_appsScan standard OS application directories for installed packaged Electron apps.
list_appsEnumerate all active and managed sessions with uptime, PID, and target counts.
πŸ‘οΈ See & Visual Inspection (8)
ToolDescription
visionRecommended one-shot snapshot: viewport screenshot, page URL/title, console errors, and network failures. Supports markElements: true for Set-of-Marks visual badges.
snapshotComplete semantic accessibility tree (Accessibility.getFullAXTree) with stable element refs (ref: "e1"), roles, names, and backend IDs. Supports markElements: true.
screenshotCapture viewport PNG or JPEG base64 payload.
save_screenshotCapture screenshot to disk (supports CSS selector clipping); registers an artifact.
diff_screenshotVisual regression comparison against a baseline screenshot.
start_screencastStream live viewport frames into a bounded ring buffer.
stop_screencastStop screencasting and optionally save the final frame to disk.
highlightVisually highlight a DOM element in the viewport with border and background overlays.
πŸ–±οΈ Act & UI Automation (13)
ToolDescription
act_and_verifyComposite: Executes an action (click, type, click_ax), waits for network idle, verifies assertion, and captures failure screenshot if failed.
clickClick the center of an element matching a CSS selector or accessibility ref (e.g. "e1").
click_axRobust click locating an element by its accessibility name and optional role.
type_textType text into focused element, selector, or ref. Supports {{secret:VAR}} resolution and redaction.
type_axFocus an element by accessibility name and type text with secret placeholder support.
press_keyDispatch keypress or keyboard shortcut (Enter, Escape, Tab, Arrows, Ctrl+A, etc.).
hoverMove mouse pointer over a CSS selector or ref without clicking.
scrollScroll page or element by delta coordinates, or scroll a selector or ref into view.
dragDrag-and-drop between two selectors or refs with native HTML5 dataTransfer payload.
select_optionSelect an option in a <select> dropdown by value or label.
set_file_inputProgrammatically set files on an <input type="file">.
handle_dialogAutomatically accept or dismiss JavaScript alerts, confirms, and prompts.
open_deep_linkDispatch a custom protocol deep link (e.g. myapp://action) into the application.
πŸ“„ Page State & Navigation (20)
ToolDescription
fill_formComposite: Smart multi-field form solver (text, select, checkbox, radio, file) with {{secret:VAR}} resolution, auto-submit, and UI assertion.
responsive_theme_matrixComposite: Multi-theme (light, dark) and viewport sweep detecting text clipping & horizontal overflow scrollbars.
repro_bundleComposite: Self-contained bug repro bundle (screenshot, MHTML DOM, HAR replay, console errors, logs, health) zipped into an artifact.
page_infoBasic page details: URL, title, dimensions, readyState, and user agent.
navigateNavigate the active page target to a URL with configurable load-state waiting.
reloadReload the active page target (supports cache busting).
wait_forWait for a CSS selector, page title, URL substring, or custom JS expression.
get_domRetrieve page HTML markup (supports CSS selector root and maxLength token protection).
query_selectorEvaluate CSS query and inspect matching elements' attributes and text content.
evaluateEvaluate arbitrary JavaScript in the renderer page context.
get_console_messagesRetrieve buffered console messages and exceptions (supports level and tail filtering).
get_logsRetrieve captured process stdout and stderr logs.
get_cookiesInspect cookies for specified URLs or across all targets.
set_cookieSet browser cookies with domain, path, and security flags.
delete_cookieDelete a specific cookie by name.
get_storageRead items from localStorage or sessionStorage.
set_storageWrite items to localStorage or sessionStorage.
assert_uiVerify page URL, title, element visibility, text matches, and absence of console errors.
save_storage_stateExport cookies, localStorage, and sessionStorage into a Playwright-compatible JSON artifact (electron://artifact/{id}).
load_storage_stateRestore cookies and origin storage state back into the live Electron session for instant auth bypass and state replay.
🌐 Network & Downloads (12)
ToolDescription
offline_resilience_checkComposite: Network chaos and fault recovery audit (simulating offline, high latency, or HTTP 500 faults) and Resilience Grade (A–F).
network_failure_reportComposite: Gathers failed HTTP requests (status β‰₯ 400 or network failure), inlines response bodies, and registers an exported HAR artifact.
get_network_logBuffered HTTP requests and responses. Supports status, failure, and URL pattern filters.
get_response_bodyFetch raw response body for a completed requestId (text or base64).
export_harExport buffered network traffic to an official HAR 1.2 file and register artifact.
wait_network_idleBlock until zero network requests are in flight and the network has been quiet.
network_stubIntercept and mock HTTP requests matching a pattern with custom status, headers, or body.
clear_network_stubsRemove all active network interception stubs.
block_urlsBlock network requests matching wildcard URL patterns.
set_extra_headersInject custom HTTP headers into all subsequent requests.
emulate_networkEmulate offline conditions, added round-trip latency, and download/upload throughput caps.
get_downloadsArm download listeners across all sessions and capture downloaded files without save dialogs.
πŸ“ˆ Performance, Profiling & Debugger (16)
ToolDescription
perf_snapshotComposite: Coordinates CDP tracing, CPU profiling, and code coverage over an interaction or reload, returning an aggregated performance bundle and artifact URIs.
leak_checkComposite: Memory leak detector measuring DOM node, event listener, document, and heap growth across iterations post-GC.
get_performance_metricsRenderer performance counters (JS heap used/total, DOM node count, layout count, etc.).
perf_auditLightweight performance audit analyzing LCP, CLS, paint timing, and audit issues.
get_audit_issuesBuffered Chromium security, mixed content, and deprecation audit issues.
start_tracing / stop_tracingRecord and export Perfetto/DevTools JSON timeline traces.
start_cpu_profile / stop_cpu_profileRecord and export V8 .cpuprofile files.
heap_snapshotCapture complete V8 heap snapshot file artifact.
start_coverage / stop_coverageTrack JavaScript and CSS code coverage and report unused code percentage.
resolve_stackResolves stack frames back to source snippets; automatically decodes v3 source maps.
set_breakpoint / remove_breakpointSet or clear JavaScript breakpoints by script URL and line number.
pause / resumeSuspend or resume V8 JavaScript execution via Debugger domain.
πŸ›‘οΈ Main Process, Native Mocks, Menus & Security (23)
ToolDescription
ipc_fuzz_and_verifyComposite: IPC security and crash hardening fuzzer probing active handlers with boundary & attack payloads (null, __proto__, path traversal, oversized buffers).
mock_electron_apiIntercept and mock any Electron native module (dialog, shell, app, clipboard, autoUpdater) with custom return values or async implementations.
get_mock_callsInspect recorded call history, argument signatures, and timestamps for mocked Electron APIs.
restore_electron_mocksRestore original native Electron implementations and purge mock call records.
get_application_menuInspect the native Menu.getApplicationMenu() tree with roles, labels, enabled/checked states, and accelerator shortcuts.
click_menu_itemProgrammatically dispatch .click() on native application menu items by path ("File > Save"), role, or id.
trigger_shortcutInspect and trigger native global accelerators (globalShortcut) in the Electron application.
get_process_healthWatchdog monitoring process exits, crashes (render-process-gone), window hangs (unresponsive), memory RSS/heap, and stderr logs.
electron_security_auditComprehensive security audit of webPreferences, context isolation, sandboxing, window handlers, navigation guards, and binary fuses.
ipc_invokeDirectly invoke a main-process IPC handle channel or emit an IPC event with arguments.
ipc_schema_inferenceInfer IPC channel contracts, payload types, and auto-generate TypeScript definitions.
ipc_tap / get_ipc_logHook main-process IPC to capture traffic between renderer and main.
evaluate_mainEvaluate JavaScript inside the Electron main/Node context (requires inspectMain).
main_stateInspect Electron application state: open windows, metrics, versions, and system paths.
webcontents_topologyMap BrowserWindows and webContents IDs to their respective CDP targets.
focus_windowShow and bring a specific BrowserWindow to the foreground.
set_window_boundsMove or resize an Electron BrowserWindow.
set_permissionProgrammatically allow or deny permissions (notifications, media, geolocation, etc.).
get_clipboard / set_clipboardRead or write text and image data on the OS clipboard.
print_pdfRender the page to a PDF document artifact.
capture_mhtmlSave the page DOM, stylesheets, and images into an MHTML archive artifact.
🩺 Meta & Diagnostics (11)
ToolDescription
run_scriptComposite: Server-side workflow engine with templating ({{vars}}, {{steps[id].result}}), conditional branching (if), step retries, assertions, failure diagnostics, and Playwright codegen.
triageComposite: One-shot diagnosis aggregating page state, console errors, network failures, audit issues, log tails, and resolved exception stacks.
doctorVerify environment health, Node/Electron binaries, and test ephemeral port binding.
diagnoseHealth check across all active sessions, target counts, and buffer sizes.
clear_buffersReset buffered console messages, network requests, logs, or IPC entries.
list_targetsEnumerate all CDP targets (pages, workers, iframes, node).
emulateOverride viewport, user agent, geolocation, device scale factor, and color scheme.
virtual_clockFreeze or advance virtual time to test deterministic timers and animations.
set_console_liveStream live console and log messages directly as MCP notifications.
cdp_commandRaw CDP escape hatch: execute any Domain.method with custom parameters.

πŸ“¦ Resources & Prompts

πŸ“‘ Standard MCP Resources

Expose real-time state and exported artifacts directly via standard MCP resources:

  • electron://server β€” Server status, version, and host environment.
  • electron://info β€” Active process IDs, target breakdown, and recent error counts.
  • electron://targets β€” Live CDP targets across all connected processes.
  • electron://artifacts β€” Index of all exported screenshots, traces, heap snapshots, and HARs.
  • electron://artifact/{id} β€” Fetch an exported artifact by its ID.
  • electron://process/{id} Β· electron://logs/{id} Β· electron://console/{id} Β· electron://cdp/{proc}/{target}
πŸ’¬ Built-in MCP Prompts

Interactive debugging recipes ready for one-click invocation:

  • debug_blank_window β€” Systematically diagnose white/blank renderers.
  • find_renderer_exception β€” Isolate unhandled exceptions, inspect audits, and resolve source stacks.
  • ui_smoke_check β€” End-to-end UI verification: wait, interact, and assert.
  • attach_and_screenshot β€” Discover local apps, attach, and capture visual status.
  • vision_then_act β€” Visual-first agent loop: see, locate semantic target, act, and verify.
  • ax_then_assert β€” Accessibility-first action loop: locate by accessible name and assert state.

πŸ“š Agent Recipes

1. Vision β†’ Act β†’ Verify Loop
// Step 1: Look at the screen and check for errors
{ "name": "vision", "arguments": {} }

// Step 2: Act and verify in a single turn (captures failure screenshot if assertion fails)
{
  "name": "act_and_verify",
  "arguments": {
    "action": { "type": "click_ax", "name": "Sign In" },
    "assertion": { "textIncludes": "Welcome back" }
  }
}
2. Secret Redaction in Automation Forms
{
  "name": "type_text",
  "arguments": {
    "selector": "#api-key",
    "text": "{{secret:MY_APP_API_KEY}}"
  }
}

Note

Resolves process.env.MY_APP_API_KEY, inserts it via CDP, returns typed: "[REDACTED]", and automatically sanitizes the secret from all subsequent logs, console events, and HAR files.

3. Automated Security Audit
{ "name": "electron_security_audit", "arguments": {} }

Returns checklist score (0–100), letter grade (A–F), and actionable remediation guidance for webPreferences and Electron binary fuses.

4. IPC Contract Inference
// 1. Arm tap -> 2. Run app interactions -> 3. Infer TypeScript contracts
{ "name": "ipc_schema_inference", "arguments": {} }

Generates ready-to-use TypeScript definitions for your preload APIs directly from observed runtime communication.

5. Multi-Step Workflow Engine & Playwright Codegen (run_script)

Execute complex, multi-action automations server-side in a single MCP roundtrip with variable interpolation, conditional branching, retries, assertion checks, and code generation.

{
  "name": "run_script",
  "arguments": {
    "vars": {
      "targetWorkspace": "workspace-alpha",
      "expectedItems": 3
    },
    "steps": [
      {
        "id": "authenticate",
        "tool": "type_text",
        "args": {
          "selector": "input#token",
          "text": "{{secret:APP_API_TOKEN}}"
        },
        "expect": { "status": "success" }
      },
      {
        "id": "switch_workspace",
        "tool": "click",
        "args": { "selector": "button.workspace-switch" },
        "retry": { "retries": 3, "delayMs": 250 }
      },
      {
        "id": "check_banner",
        "tool": "eval_js",
        "args": { "expression": "Boolean(document.querySelector('.promo-modal'))" }
      },
      {
        "id": "dismiss_banner",
        "if": "{{steps.check_banner.result.value}} == true",
        "tool": "click",
        "args": { "selector": ".promo-modal .close-btn" }
      },
      {
        "id": "verify_workspace_state",
        "tool": "eval_js",
        "args": {
          "expression": "({ active: document.querySelector('#current-ws').textContent.trim(), count: document.querySelectorAll('.item').length })"
        },
        "expect": {
          "js": "result.value.active === 'workspace-alpha' && result.value.count >= 3"
        }
      }
    ],
    "exportAs": "playwright"
  }
}
Capabilities & Options
FeatureSyntax / OptionPurpose
Variables & Context{{vars.key}}Reference values from the script's vars object with preserved primitive types (strings, numbers, booleans, objects).
Step Dependencies{{steps.id.result.path}}Pass outputs, IDs, or tokens computed in earlier steps directly into subsequent tool arguments.
Environment & Secrets{{env.KEY}} Β· {{secret:KEY}}Inject process environment variables; secrets are automatically masked in logs, console events, and outputs as [REDACTED].
Conditional Branchingif: "{{steps.check.result.open}} == true"Skips step execution unless condition evaluates to true (==, !=, <, >, &&, `
Expectation Assertionsexpect: { contains, equals, status, js }Validates step outcome; custom js expressions evaluate against result to verify app invariants.
Automatic Retriesretry: { retries: 3, delayMs: 250 }Automatically retries flaky operations with exponential backoff before failing.
Failure DiagnosticsAutomatedIf a step fails, captures viewport screenshot artifact (electron://artifact/{id}), console errors, and network errors.
Playwright CodegenexportAs: "playwright"Generates a standalone, runnable Playwright _electron test script (.spec.ts) reflecting the executed sequence.
View Generated Playwright Codegen Output
import { test, expect, _electron as electron } from "@playwright/test";

test("executed script workflow", async () => {
  const electronApp = await electron.launch({ args: ["."] });
  const window = await electronApp.firstWindow();

  // Step: authenticate
  await window.locator("input#token").fill(process.env.APP_API_TOKEN || "");

  // Step: switch_workspace
  await window.locator("button.workspace-switch").click();

  // Step: dismiss_banner
  await window.locator(".promo-modal .close-btn").click();

  // Step: verify_workspace_state
  const evalResult = await window.evaluate("({ active: document.querySelector('#current-ws').textContent.trim(), count: document.querySelectorAll('.item').length })");
  expect(evalResult).toBeDefined();

  await electronApp.close();
});
6. Ref Locators & Set-of-Marks Visual Prompting

Inspect accessibility targets with compact refs (e1, e2) and drive interactions without fragile CSS selectors:

// 1. Take snapshot with Set-of-Marks badges in the screenshot
{ "name": "vision", "arguments": { "markElements": true } }

// 2. Click directly by ref token
{ "name": "click", "arguments": { "ref": "e3" } }

// 3. Type text into ref
{ "name": "type_text", "arguments": { "ref": "e4", "text": "Hello Desktop!" } }
7. Native Electron API Mocking (Dialogs, Shell, Clipboard)

Bypass OS file dialogs, external URL opens, or update checks during automated test runs:

// 1. Mock dialog.showOpenDialog to return test fixtures
{
  "name": "mock_electron_api",
  "arguments": {
    "module": "dialog",
    "method": "showOpenDialog",
    "returns": { "canceled": false, "filePaths": ["/fixtures/document.pdf"] }
  }
}

// 2. Mock shell.openExternal
{
  "name": "mock_electron_api",
  "arguments": {
    "module": "shell",
    "method": "openExternal",
    "returns": true
  }
}

// 3. Inspect tracked invocations
{ "name": "get_mock_calls", "arguments": { "module": "shell", "method": "openExternal" } }

// 4. Restore original implementation
{ "name": "restore_electron_mocks", "arguments": { "module": "shell", "method": "openExternal" } }
8. Native Application Menu & Accelerator Trigger

Automate native OS menus and global keyboard shortcuts:

// 1. Inspect the full native menu tree
{ "name": "get_application_menu", "arguments": {} }

// 2. Click menu item by path or role
{ "name": "click_menu_item", "arguments": { "path": "File > Save" } }

// 3. Dispatch an Electron accelerator directly
{ "name": "trigger_shortcut", "arguments": { "accelerator": "CommandOrControl+Shift+P" } }
9. Process Health Watchdog & Crash Diagnostics
{ "name": "get_process_health", "arguments": {} }

Returns real-time status ("healthy", "unresponsive", or "crashed"), tracking OOM terminations, child process failures, window hangs, and memory metrics.

10. Storage State Snapshot & Auth Replay

Save full session state (cookies, localStorage, sessionStorage) into Playwright-compatible storage state artifacts to bypass repeated login flows across tests:

// 1. Export storage state to an artifact
{ "name": "save_storage_state", "arguments": {} }

// 2. Restore state into any new Electron session
{
  "name": "load_storage_state",
  "arguments": {
    "state": { "cookies": [...], "origins": [...] }
  }
}
11. One-Shot Bug Repro Bundle & Issue Generator (repro_bundle)

Package a complete, self-contained zip archive containing viewport screenshot, full MHTML DOM archive, HAR network replay, source-mapped console errors, stderr tail, health metrics, and a GitHub-ready Markdown issue report in one turn:

{
  "name": "repro_bundle",
  "arguments": {
    "notes": "Regression on checkout flow after OAuth upgrade"
  }
}

Returns artifactUri: "electron://artifact/...", destination path, and the complete markdown summary ready to paste into GitHub issues or Jira.

12. Smart Multi-Field Accessible & Secret Form Solver (fill_form)

Fill complete multi-input forms in a single tool call from either a key-value dictionary or structured field specs:

{
  "name": "fill_form",
  "arguments": {
    "fields": {
      "Username or Email": "[email protected]",
      "Password": "{{secret:APP_PASSWORD}}",
      "Environment": "Staging",
      "Remember Me": true
    },
    "submit": true,
    "expect": {
      "textIncludes": "Welcome back"
    }
  }
}

Resolves fields via accessibility tree labels, ARIA attributes, placeholders, or refs (e1), resolves secrets securely, selects dropdown options, toggles checkboxes, clicks submit, and verifies post-submit UI assertions.

13. Network Chaos & Resilience Scorecard (offline_resilience_check)

Simulate real-world network failure conditions (offline, latency, or HTTP 500) during interaction, monitor app health and error bursts, restore network, and compute an executive Resilience Grade (A–F):

{
  "name": "offline_resilience_check",
  "arguments": {
    "faultType": "offline",
    "durationMs": 1500,
    "action": { "type": "click", "selector": "#save-btn" }
  }
}
14. Responsive Theme & Viewport Matrix Sweep (responsive_theme_matrix)

Audit how layouts adapt across color schemes (light, dark) and viewport sizes, catching horizontal scrollbar leaks (scrollWidth > innerWidth):

{
  "name": "responsive_theme_matrix",
  "arguments": {
    "themes": ["light", "dark"],
    "viewports": [
      { "width": 800, "height": 600, "name": "compact" },
      { "width": 1280, "height": 800, "name": "desktop" }
    ]
  }
}
15. IPC Security & Crash Hardening Fuzzer (ipc_fuzz_and_verify)

Harden renderer-to-main IPC communication against malicious or malformed payloads (null, prototype pollution, path traversal, oversized buffers) and verify process crash resistance:

{
  "name": "ipc_fuzz_and_verify",
  "arguments": {
    "iterations": 6
  }
}

πŸ“‹ Changelog & Releases

VersionRelease HighlightsTest Suite
v1.15.0Composite Superpowers & Resilience Workflows: One-Shot Bug Repro Bundle (repro_bundle), Smart Accessible & Secret Form Solver (fill_form), Network Chaos Resilience Scorecard (offline_resilience_check), Responsive Theme Sweep (responsive_theme_matrix), IPC Security Fuzzer (ipc_fuzz_and_verify). Pure Node zero-dependency PKZip generator. 111 tools.140 unit Β· 111 smoke
v1.14.0Ref Locators & Set-of-Marks (ref: "e1", markElements: true), Native Electron API Mocking (mock_electron_api, get_mock_calls, restore_electron_mocks), Native Application Menu Driver (get_application_menu, click_menu_item, trigger_shortcut), Process Health Watchdog (get_process_health), Storage State Save & Load (save_storage_state, load_storage_state). 106 tools.135 unit Β· 106 smoke
v1.13.0Server-Side Workflow Engine & Codegen (run_script with context variables, conditional branching, expectation assertions, retries, failure diagnostics, and Playwright test codegen). 97 tools.130 unit Β· 97 smoke
v1.12.0Runtime Security Audit (electron_security_audit), Zero-Leak Secret Redaction ({{secret:VAR}}), IPC Schema Inference (ipc_schema_inference), Memory Leak Hunter (leak_check), Source Maps (resolve_stack), Composite Workflows (act_and_verify, triage, network_failure_report, perf_snapshot). 96 tools.125 unit Β· 96 smoke
v1.11.0Tool Annotations (readOnlyHint, destructiveHint), Optional processId, Artifacts System (electron://artifacts), Network Log Filtering, DOM Guard, llms.txt. 88 tools.120 unit Β· 88 smoke

Tip

Complete historical release notes, API migration notes, and dependency updates are tracked in CHANGELOG.md.


🧯 Troubleshooting

SymptomSolution
Electron failed to install correctlyRun npm run ensure-electron to verify and download the platform binary.
Process not foundOmit processId when debugging a single app; the server resolves it automatically.
Terminal hangs on node build/index.jsNormal: the server communicates over stdio JSON-RPC. Spawn it from your MCP client.
Main-process tools failLaunch the app with inspectMain: true to open the Node inspector port.
Port in use / WSAEACCES on WindowsThe server dynamically probes and selects ephemeral bindable ports to avoid Hyper-V/WSL conflicts.

πŸ“œ Development & Verification

npm test            # Run build, 140 unit tests, and full 111-tool smoke suite
npm run doctor      # Verify environment health and port binding
npm run sync:readme # Automatically synchronize badge counts with registered tools

πŸ“„ License

ISC Β© Electron Debug MCP contributors

Electron Debug MCP
Built for autonomous agents that need eyes β€” and hands β€” inside Electron.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.