
amafjarkasi/electron-mcp-server 是从 https://github.com/amafjarkasi/electron-mcp-server. 导入的 MCP 服务器候选
概览
amafjarkasi/electron-mcp-server 是从 https://github.com/amafjarkasi/electron-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
电子调试MCP
Eyes, Hands 和 DevTools 用于 Electron 应用。 一个MCP服务器,你的代理用来启动或附加,查看窗口并驱动它。
NPM · GitHub · 更新日志
一个只能读取你仓库的代理看不到Electron窗口。这台服务器就是那个调试器。它本地运行,通过stdio通信MCP,并通过Chrome DevTools协议驱动应用。
你把它添加到光标或Claude,用正常语言询问。客户端向代理展示所有工具及其参数。本页是这些工具用途的地图。
参见 Vision的截图、错误和失败请求都集中在一通电话中。 当 CSS 是错误的句柄时,快照无障碍树。 diff_screenshot把窗口和PNG基线做对比。
驱动 点击悬停滚动拖动 click_ax type_ax可访问的名称。 assert_ui返回是通过或失败,而不是崩溃的工具。
检查 控制台、网络、HAR、跟踪、CPU 配置文件、堆、覆盖。 主进程、IPC、剪贴板、下载、权限。 cdp_command任何上面没有包装的开发工具方法。
更新日志
完整的历史,包括1.6和1.5,都见GitHub上的CHANGELOG.md。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
🌟 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].
安装
npx -y electron-debug-mcp@latest配置
{
"mcpServers": {
"electron-debug": {
"command": "npx",
"args": ["-y", "electron-debug-mcp@latest"]
}
}
}