How zhoushoujianwork/easyeda-agent works
easyeda-agent automates EasyEDA Pro designs through an AI-facing CLI/MCP interface, a local daemon, and an in-editor connector using the official EDA API. The main workflow is request → typed action dispatch → host reads and writes → verification, with schematic, PCB, library, and delivery capabilities. The README documents the overall integration; sampled source confirms the CLI entry, connector transport/context, MCP forwarding, and selected layout/solver internals. Other domain links are documented capability-level relationships, not claims that unsampled files were inspected.
Main entry points: app Command handlers · transport.ts EDA connector · cmd_sch.go Schematic operations · cmd_pcb.go PCB operations
Components 23
Action runtime
- Command handlers
internal/app - Local daemon
internal/daemon - Typed protocol
internal/protocol - EDA connector
extension/src/transport.ts - Typed actions
extension/src/actions.ts - Project context
extension/src/eda-context.ts
Schematic design
- Schematic operations
internal/app/cmd_sch.go - Schematic layout
internal/app/sch_layout_engine_routes.go - Connectivity model
internal/connectivity - Schematic checks
internal/schguard
PCB design
- PCB operations
internal/app/cmd_pcb.go - PCB placement
pkg/pcblayout/layout.go - PCB routing solver
pkg/pcbsolve/geometry.go - PCB model
pkg/pcbmodel/model.go - Silkscreen and routing polish
extension/src/beautify/index.ts
Libraries and delivery
- Component library
internal/app/cmd_lib.go - Reusable circuit blocks
internal/blocks/blocks.go - Checks and audit
internal/app/cmd_audit_export.go - Workflow and artifacts
internal/workflow/workflow.go
Other components
- AI agent
- EasyEDA Pro
Connections 27
- AI agent → MCP tools: requests tools
- AI agent → CLI: requests design work
- MCP tools → CLI: forwards commands
mcp/src/server.mjs - CLI → Command handlers: enters
cmd/easyeda/main.go - Command handlers → Local daemon: uses runtime
- Local daemon → Typed protocol: dispatches frames
internal/daemon/dispatch.go - Local daemon → EDA connector: forwards typed actions
- EDA connector → Typed protocol: encodes frames
extension/src/transport.ts - EDA connector → Typed actions: dispatches actions
extension/src/transport.ts - EDA connector → Project context: reads context
extension/src/transport.ts - EDA connector → EasyEDA Pro: calls official API
- Command handlers → Schematic operations: handles schematic commands
- Command handlers → PCB operations: handles PCB commands
- Command handlers → Component library: builds library assets
- Command handlers → Reusable circuit blocks: offers reusable blocks
- Command handlers → Checks and audit: runs delivery checks
- Command handlers → Workflow and artifacts: supports workflows
- Schematic operations → Connectivity model: reads connection data
- Schematic operations → Schematic layout: plans layout
- Schematic operations → Schematic checks: checks schematic
- PCB operations → PCB placement: searches placements
- PCB operations → PCB routing solver: solves routing
- PCB routing solver → PCB model: uses board model
pkg/pcbsolve/geometry.go - PCB placement → PCB model: transforms board
pkg/pcblayout/layout.go - PCB operations → Silkscreen and routing polish: polishes routing
- Checks and audit → EasyEDA Pro: checks design state
- Workflow and artifacts → Checks and audit: collects delivery evidence