<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: longhun12346</title>
    <description>The latest articles on DEV Community by longhun12346 (@longhun12346).</description>
    <link>https://dev.to/longhun12346</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4268690%2F5312136f-6c58-4766-af13-600eb1b67b5d.png</url>
      <title>DEV Community: longhun12346</title>
      <link>https://dev.to/longhun12346</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/longhun12346"/>
    <language>en</language>
    <item>
      <title>Electron-agent-debug: 10-tool MCP + Agent Skill for Electron (and JS-to-Native C++ breakpoints)</title>
      <dc:creator>longhun12346</dc:creator>
      <pubDate>Fri, 27 Nov 2026 10:23:18 +0000</pubDate>
      <link>https://dev.to/longhun12346/electron-agent-debug-10-tool-mcp-agent-skill-for-electron-and-js-to-native-c-breakpoints-4mjm</link>
      <guid>https://dev.to/longhun12346/electron-agent-debug-10-tool-mcp-agent-skill-for-electron-and-js-to-native-c-breakpoints-4mjm</guid>
      <description>&lt;p&gt;When using coding agents (Claude Code, Codex, etc.) on Electron apps, I kept hitting two walls:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Renderer-only browser MCPs&lt;/strong&gt; (&lt;code&gt;chrome-devtools-mcp&lt;/code&gt;, Playwright) can't see the Main process (Node Inspector) or utility processes, so preload / IPC / window creation bugs turn into guesswork. Splitting Main and Renderer into two MCPs breaks timeline alignment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;All-in-one Electron MCPs&lt;/strong&gt; expose 50–100+ tools and try to manage app startup/shutdown, bloating context and breaking on real-world toolchains (&lt;code&gt;electron-vite&lt;/code&gt;, Forge, monorepos).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So I built &lt;strong&gt;electron-agent-debug&lt;/strong&gt; (MIT, Node.js 20+, zero-install bundled runtime):&lt;br&gt;
&lt;a href="https://github.com/longhun12346/electron-agent-debug" rel="noopener noreferrer"&gt;https://github.com/longhun12346/electron-agent-debug&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  What makes it different
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tri-channel + 1 unified &lt;code&gt;seq&lt;/code&gt; timeline&lt;/strong&gt;: Main Inspector, Renderer CDP, and optional Utility Process share one monotonic event sequence. One &lt;code&gt;electron_click&lt;/code&gt; returns an &lt;code&gt;afterSeq&lt;/code&gt; that aligns both Main IPC logs (including &lt;code&gt;argCount&lt;/code&gt; &amp;amp; compact &lt;code&gt;argTypes&lt;/code&gt; shapes) and Renderer errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10 lightweight tools, attach-only&lt;/strong&gt;: Your agent starts the app with your own dev command (&lt;code&gt;--inspect&lt;/code&gt; / &lt;code&gt;--remote-debugging-port&lt;/code&gt;). No lifecycle magic, 3 runtime dependencies, loopback-only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JS-to-Native debugging loop (&lt;code&gt;koffi&lt;/code&gt; &amp;amp; &lt;code&gt;.node&lt;/code&gt; addons)&lt;/strong&gt;: When a native call returns the wrong value or crashes locally (Access Violation / &lt;code&gt;SIGSEGV&lt;/code&gt;), the Skill captures JS-side evidence first, then guides an external debugger (&lt;code&gt;mcp-windbg&lt;/code&gt; + &lt;code&gt;cdb&lt;/code&gt; on Windows, &lt;code&gt;gdb&lt;/code&gt;/&lt;code&gt;lldb&lt;/code&gt; on Linux &amp;amp; macOS) with user consent to hit source-line breakpoints, inspect variables/raw bytes, patch, rebuild, and re-verify.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0jf0wu5ntqu5gzar2rk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0jf0wu5ntqu5gzar2rk.gif" alt="Live demo walkthrough" width="799" height="567"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Try it
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add longhun12346/electron-agent-debug --skill electron-debug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Or as a Claude Code plugin (installs Skill + registers MCP in one step):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add longhun12346/electron-agent-debug
/plugin install electron-debug@electron-agent-debug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Would love feedback from folks running Electron with &lt;code&gt;electron-vite&lt;/code&gt;, Forge, or native C++/Rust (&lt;code&gt;napi-rs&lt;/code&gt;) addons!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>electron</category>
      <category>mcp</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
