Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<a href="https://www.npmjs.com/package/@vlabsoftware/easyeda-pro-mcp"><img alt="npm" src="https://img.shields.io/npm/v/@vlabsoftware/easyeda-pro-mcp?label=npm"></a>
<a href="https://github.com/VLab-Software/easyeda_mcp/releases"><img alt="Release" src="https://img.shields.io/github/v/release/VLab-Software/easyeda_mcp?include_prereleases&label=release"></a>
<a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-blue"></a>
<a href="https://github.com/VLab-Software/HEA"><img alt="HEA Skills" src="https://img.shields.io/badge/Agent_Skills-HEA-8A2BE2?logo=github&logoColor=white"></a>
<img alt="Node" src="https://img.shields.io/badge/node-%3E%3D20-339933">
<img alt="Platforms" src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey">
<a href="https://github.com/sponsors/vafreitas"><img alt="Sponsor" src="https://img.shields.io/badge/Sponsor-%E2%99%A5-ea4aaa?logo=githubsponsors&logoColor=white"></a>
Expand All @@ -34,6 +35,10 @@
·
<a href="https://vlabsoft.org/easyeda_mcp/ai-client-setup">AI Client Setup</a>
·
<a href="https://vlabsoft.org/easyeda_mcp/workflows">Workflows</a>
·
<a href="https://vlabsoft.org/easyeda_mcp/hea-skills">HEA Skills</a>
·
<a href="https://vlabsoft.org/easyeda_mcp/tools">Tools</a>
·
<a href="https://vlabsoft.org/easyeda_mcp/troubleshooting">Troubleshooting</a>
Expand All @@ -53,6 +58,18 @@
- **Editor navigation & fabrication exports** — Focus components or regions directly in EasyEDA Pro and export BOM, Netlist, Gerber, and PDF files.
- **Local & read-first by default** — Runs locally over `stdio` and `ws://127.0.0.1:8765`. Inspection is read-only; mutating actions require explicit human confirmation.

## 🧠 Supercharge with HEA (Hardware Engineering Assistant)

While **EasyEDA Pro MCP** gives your AI agent programmatic hands to inspect and manipulate schematics and PCBs, **[HEA (Hardware Engineering Assistant)](https://github.com/VLab-Software/HEA)** gives it an engineering brain.

HEA is VLab Software's companion open-source suite of **Agent Skills** (compatible with Antigravity, Claude Code, Cursor, Codex, and others):
- 🏭 **`pcb-dfm-jlcpcb`** — Design for Manufacturing checks, clearance rules, and SMT Basic vs. Extended parts optimization.
- ⚡ **`power-tree-and-thermal`** — Regulator efficiency (LDO vs. Buck), thermal dissipation limits, and decoupling capacitor placement.
- 🔬 **`mcu-strapping-and-pinout`** — Bootstrapping pin safety (ESP32, STM32, RP2040) and logic-level translation.
- 📋 **`schematic-review-audit`** — Pre-layout audits for floating nets, bus pull-ups, and USB-C CC termination.

👉 Pair them together for an end-to-end hardware engineering agent: read the **[HEA Integration Guide](https://vlabsoft.org/easyeda_mcp/hea-skills)** or star the **[VLab-Software/HEA Repository](https://github.com/VLab-Software/HEA)**.

## Requirements

- **Node.js** `20` or newer
Expand Down Expand Up @@ -229,6 +246,7 @@ Full parameter schemas and examples: **[Tools Reference](https://vlabsoft.org/ea
| **[Quick Start](https://vlabsoft.org/easyeda_mcp/quick-start)** | Shortest path from zero to a working bridge |
| **[AI Client Setup](https://vlabsoft.org/easyeda_mcp/ai-client-setup)** | Detailed setup for Claude Code, Codex, Claude Desktop, Cursor, VS Code, Antigravity & others |
| **[Practical Workflows](https://vlabsoft.org/easyeda_mcp/workflows)** | Copy-pasteable prompts for schematic review, circuit assertions, DRC, and exports |
| **[HEA Skills Integration](https://vlabsoft.org/easyeda_mcp/hea-skills)** | Supercharge your agent with hardware engineering knowledge, DFM, and schematic review skills |
| **[Upgrading & Compatibility](https://vlabsoft.org/easyeda_mcp/upgrading)** | Server/Extension version matrix and 3-step upgrade checklist |
| **[Troubleshooting](https://vlabsoft.org/easyeda_mcp/troubleshooting)** | Common fixes and bridge error code reference |
| **[Architecture](https://vlabsoft.org/easyeda_mcp/architecture)** & **[Safety Model](https://vlabsoft.org/easyeda_mcp/safety)** | How the local WebSocket bridge and confirmation gates work |
Expand Down
7 changes: 7 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineConfig({
{ text: "AI Clients", link: "/ai-client-setup" },
{ text: "Workflows", link: "/workflows" },
{ text: "Tools", link: "/tools" },
{ text: "HEA Skills", link: "/hea-skills" },
{ text: "Upgrading", link: "/upgrading" },
{ text: "Changelog", link: "/changelog" },
{ text: "GitHub", link: "https://github.com/VLab-Software/easyeda_mcp" }
Expand All @@ -39,6 +40,12 @@ export default defineConfig({
{ text: "Changelog", link: "/changelog" }
]
},
{
text: "Ecosystem",
items: [
{ text: "Hardware Engineering Assistant (HEA)", link: "/hea-skills" }
]
},
{
text: "Project",
collapsed: true,
Expand Down
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ Connect any MCP-compatible AI client to your live EasyEDA Pro session.
- [Safety Model](./safety.md): read-only defaults, confirmation gates, and confidence levels
- [Troubleshooting](./troubleshooting.md): quick fixes by symptom
- [Changelog](./changelog.md): release history

## Ecosystem

- [Hardware Engineering Assistant (HEA)](./hea-skills.md): open-source companion Agent Skills suite for DFM, MCU strapping, and power validation
123 changes: 123 additions & 0 deletions docs/hea-skills.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Hardware Engineering Assistant (HEA)

Supercharge your AI agent with real-world electronics engineering knowledge, DFM checklists, and schematic audit heuristics.

::: tip Official Companion Project
**[HEA (Hardware Engineering Assistant)](https://github.com/VLab-Software/HEA)** is an open-source suite of **Agent Skills** maintained by VLab Software, designed to be used alongside **EasyEDA Pro MCP**.
:::

---

## Why Pair EasyEDA Pro MCP with HEA?

When you connect an LLM to EasyEDA Pro using an MCP server, the model gets access to raw project data (nets, component pins, DRC rules, footprints). However, LLMs by themselves lack deep domain context on manufacturing constraints, PCB physics, and silicon quirks.

| Layer | Role | Example |
| --- | --- | --- |
| **EasyEDA Pro MCP** *(The Hands)* | Reads and writes live project state inside EasyEDA Pro | Calls `easyeda_trace_net`, `easyeda_get_drc_rules`, `easyeda_verify_connections` |
| **HEA Skills** *(The Brain)* | Provides domain methodology, checklists, and heuristics | Verifies decoupling rules, checks MCU boot strapping pins, validates JLCPCB SMT constraints |

Without HEA, an agent might see `GPIO0` connected to ground and consider it a valid connection. **With HEA**, the agent knows that on an ESP32, pulling `GPIO0` low enters bootloader download mode and will warn you before you manufacture the board!

```mermaid
flowchart LR
A["User Request"] --> B["AI Agent (Claude / Cursor / Antigravity)"]
B --> C["HEA Skills (The Brain)"]
C -- "Engineering Heuristics & Checklists" --> B
B --> D["EasyEDA Pro MCP (The Hands)"]
D -- "Live Editor State (Pins, Nets, DRC)" --> B
B --> E["Verified, Production-Ready Hardware"]
```

---

## Core Skills Included in HEA

HEA provides modular Agent Skills compatible with **Antigravity**, **Claude Code**, **Cursor**, **Codex**, and other modern agent runtimes:

### 1. `pcb-dfm-jlcpcb`
* **Focus:** Design for Manufacturing (DFM) tailored to the JLCPCB fabrication and SMT assembly process.
* **Checks:**
* Minimum trace width, clearance, and annular rings.
* SMT component selection: prioritizing JLCPCB **Basic Library** components over **Extended Library** to minimize setup and reel-change fees.
* Component rotation, orientation markings, and fiducial placements.

### 2. `mcu-strapping-and-pinout`
* **Focus:** Microcontroller boot pins, power sequencing, and logic level integrity.
* **Checks:**
* Strapping pin safety checks (ESP32 GPIO0/2/12/15, STM32 BOOT0, etc.).
* 3.3V vs 5.0V voltage domain isolation and bidirectional level shifter requirements.
* Crystal and oscillator layout guidelines and load capacitor calculations.

### 3. `power-tree-and-thermal`
* **Focus:** Power rail topology, thermal dissipation, and decoupling capacitors.
* **Checks:**
* Calculation of power dissipation for linear regulators ($P = (V_{in} - V_{out}) \times I_{load}$) and warnings when a switching regulator (Buck) is required.
* Decoupling capacitor placement heuristics (100 nF per VDD pin + bulk capacitance).
* Inrush current protection and reverse-polarity protection.

### 4. `schematic-review-audit`
* **Focus:** Pre-layout electrical and semantic review of schematics.
* **Checks:**
* Single-node nets and accidental net naming typos (e.g., `VCC_3V3` vs `VCC3V3`).
* Pull-up resistor presence on open-drain buses ($I^2C$, Reset lines, Interrupts).
* USB-C CC1/CC2 $5.1\text{ k}\Omega$ pull-down resistor verification for standard 5V sink operation.

---

## How to Install and Use HEA

### Step 1: Clone or Download HEA

Clone the HEA repository into your workspace or skills directory:

```bash
git clone https://github.com/VLab-Software/HEA.git
```

### Step 2: Configure in Your AI Client

::: code-group

```bash [Claude Code CLI]
# Place HEA skills in your project or global Claude skills folder
cp -r HEA/skills/* ~/.claude/skills/
```

```bash [Antigravity]
# Copy HEA skills to your Antigravity skills directory
cp -r HEA/skills/* ~/.gemini/antigravity/skills/
```

```bash [Cursor & VS Code]
# Copy the rules or skills into your project workspace
cp -r HEA/skills .cursor/skills/
```

:::

---

## Example Workflow: HEA + EasyEDA Pro MCP

When both **EasyEDA Pro MCP** and **HEA** are enabled, you can run prompts that combine real-time inspection with rigorous engineering:

```text
Run a full pre-fabrication DFM audit on the active PCB using easyeda_get_drc_rules and the HEA pcb-dfm-jlcpcb skill.
Flag any traces thinner than 0.127 mm, verify annular rings, and check if our BOM components match the JLCPCB SMT capabilities.
```

Or for microcontroller schematics:

```text
Inspect the ESP32 microcontroller in the current schematic using easyeda_get_component_pins and the HEA mcu-strapping-and-pinout skill.
Verify that strapping pins (GPIO0, GPIO2, GPIO12, GPIO15) are configured properly and will not prevent normal booting.
```

---

## Next Steps

* ⭐ Star and contribute to **[VLab-Software/HEA on GitHub](https://github.com/VLab-Software/HEA)**.
* Check out [Practical Workflows](./workflows.md) for more prompts.
* Explore all available bridge operations in the [Tools Reference](./tools.md).
8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ hero:
<div class="support-pill-row support-pill-row-secondary">
<a href="/easyeda_mcp/quick-start">Quick Start</a>
<a href="/easyeda_mcp/workflows">Workflows</a>
<a href="/easyeda_mcp/hea-skills">HEA Skills</a>
<a href="/easyeda_mcp/tools">Tools Reference</a>
<a href="/easyeda_mcp/drc-rules">DRC Rules</a>
<a href="/easyeda_mcp/upgrading">Upgrading</a>
Expand Down Expand Up @@ -68,6 +69,13 @@ hero:
</div>
</div>

<div class="intro-panel surface-card" style="margin-top: 1.5rem;">
<strong>Supercharge with HEA Skills</strong>
<p>
Give your agent an engineering brain with <a href="/easyeda_mcp/hea-skills"><strong>HEA (Hardware Engineering Assistant)</strong></a> — our companion open-source skills suite providing DFM manufacturing rules for JLCPCB, MCU strapping pin safety, and power tree verification.
</p>
</div>

<div class="about-panel surface-card">
<strong>About this project</strong>
<div class="about-grid">
Expand Down
1 change: 1 addition & 0 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ You are ready when `easyeda_doctor` reports:
## Next Steps

- **[AI Client Setup](./ai-client-setup.md)** — 1-click install links, client-specific config files, and environment variables
- **[Hardware Engineering Assistant (HEA)](./hea-skills.md)** — empower your AI agent with expert DFM, MCU strapping, and schematic engineering skills
- **[Practical Workflows](./workflows.md)** — copy-pasteable prompts for schematic reviews, circuit assertions, DRC rules, and manufacturing exports
- **[Tools Reference](./tools.md)** — full specification of all 24 MCP tools
- **[DRC Rule Editing](./drc-rules.md)** — two-phase preview and confirmation workflow for PCB design rules
4 changes: 4 additions & 0 deletions docs/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Copy-pasteable prompts for common schematic and PCB workflows in EasyEDA Pro.
Open your target schematic or PCB tab in EasyEDA Pro and confirm [`easyeda_doctor`](./tools.md#easyeda_doctor) reports `extension.connected: true`.
:::

::: info Enhance with HEA Skills
Pair these workflows with our open-source **[Hardware Engineering Assistant (HEA)](./hea-skills.md)** skills suite for automated JLCPCB DFM rules, microcontroller boot strapping verification, and power tree validation.
:::

---

## 1. Pre-Layout Schematic Review
Expand Down
Loading