Easyeda Mcp Pro

io.github.oaslananka由 GitHub 账号 oaslananka 发布v1.12.0更新于 Nov 8, 2026

MCP server for EasyEDA Pro: PCB inspection, BOM, exports, and hardware review.

已验证STDIO仅桌面开发者工具商业与电商

概览

AI 生成的概览

将 AI 助手连接到 EasyEDA Pro,用于 PCB 与原理图检查、BOM 处理、规则检查和生产导出。

可以做什么
  • 检查原理图:列出网络与元件、查看网络详情、搜索并放置库器件、新增修改或删除导线与图元
  • 处理 BOM:生成、对照 LCSC 库存校验、导出,并查询供应商价格与供货情况
  • 运行设计规则检查与电气规则检查,并获取合并的评审摘要
  • 检查电路板:层、叠层、尺寸,以及过孔、走线、铺铜、焊盘和元件数量
  • 按启用的工具配置导出 Gerber、贴片坐标、PDF 和网表
  • 查看服务器健康状态、桥接状态、能力、功能开关和实时 EasyEDA API 清单
适用场景
适合让助手读取或评审 EasyEDA Pro 硬件项目、准备 BOM 或采购清单、运行 DRC/ERC,或在不离开对话的情况下生成生产与装配导出文件。
运行要求
通过 npm 包以 stdio 在本地运行,需要 Node.js 24.x。需安装 EasyEDA Pro,并导入、连接随附的桥接扩展。供应商功能需要 JLCPCB_CLIENT_ID 与 JLCPCB_CLIENT_SECRET 等凭据;可选的 HTTP 传输在非回环地址上需要 OAuth 配置。
安装前请注意
原理图写入工具可放置、修改和删除元件与导线;full 配置下还能调用 EasyEDA 文档化 API,在设置 confirmWrite 时改动工程状态。原始 JavaScript 执行需同时开启 BRIDGE_RAW_EXEC_ENABLED 与 MCP_RAW_EXEC_EXPERIMENTAL。BRIDGE_TOKEN 与 JLCPCB_CLIENT_SECRET 属于机密;JLCPCB 下单默认关闭。AI_* 变量为保留且无效,请勿提供 AI_API_KEY。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Easyeda Mcp Pro,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README


Trust and Supply Chain

easyeda-mcp-pro keeps historical OpenSSF Best Practices evidence in docs/OPENSSF_BEST_PRACTICES.md and its security assurance case in docs/SECURITY_ASSURANCE_CASE.md. The header badges link to current workflow-backed signals only: CI, generated docs deployment, the project security policy, and the OpenSSF Scorecard. Release integrity evidence (npm provenance, signed-release status) is tracked in docs/RELEASE_VERIFICATION.md. Coverage, Test Analytics, and extension bundle monitoring are documented in docs/CODECOV_ANALYTICS.md.

Licensing note: current repository source is MIT-licensed. Commercial use is permitted under MIT; historical releases retain the license notices shipped with them.

More project references: OpenSSF evidence · Security assurance · Third-party notices · Vendor terms · Remote MCP modes

Support development: Buy me a coffee · Star on GitHub


Quick Start

The fastest way to install and configure easyeda-mcp-pro for your favorite AI assistant or IDE:

  1. Auto-configure your MCP client:

    bash
    npx easyeda-mcp-pro setup all

    This detects and configures Claude Desktop, Cursor, VS Code, Windsurf, Cline, Gemini, Zed, etc. to run the MCP server automatically. (Or run for a specific client, e.g., npx easyeda-mcp-pro setup claude)

  2. Locate and install the EasyEDA Pro bridge extension:

    bash
    npx easyeda-mcp-pro extension --open

    This opens the folder containing the extension package easyeda-bridge-extension.eext. Import it via EasyEDA Pro → Settings → Extensions → Extension Manager.

  3. Connect the bridge: In EasyEDA Pro, click MCP Bridge → Connect in the menu bar. On EasyEDA Web, Local also works with the server on the same PC. For a separate self-hosted gateway, use MCP Bridge → Connect Custom Remote... (Experimental) with its secure WSS Relay address and one-time EDA-XXXXXXXX pairing code; this is not the public HTTP /mcp URL. Details.

For advanced configurations, manual instructions, and specific clients, see Installation & Client Configuration.


Overview

easyeda-mcp-pro is a Model Context Protocol (MCP) server that bridges AI assistants with hardware design workflows in EasyEDA Pro. It exposes 126 profile-gated MCP tools for schematic inspection and editing, controlled EasyEDA Pro API calls, Personal Device metadata, BOM management, design rule checks, PCB board analysis, fabrication exports, diagnostics, and supplier integration.

The server connects to EasyEDA Pro via a WebSocket bridge extension, enabling real-time access to open project data. It integrates with JLCPCB, LCSC, Mouser, and DigiKey for BOM sourcing and pricing.

Key Capabilities

AreaWhat you can do
SchematicList nets/components, search and place devices, edit wires/primitives
BOMGenerate, validate, export, and source bill of materials
DRC/ERCRun design rule and electrical rule checks
BoardInspect layers, stackup, dimensions, features
ExportExport Gerbers, pick-and-place, PDF, netlist
DiagnosticsHealth check, bridge status, API inventory, capabilities, self-test

Prerequisites

  • Node.js: Node.js 24.x is required; repository automation is pinned to 24.22.1.
  • pnpm: local development and automation require exactly 11.28.8.

Prepare the supported runtime before installing dependencies:

bash
nvm install 24.22.1nvm use 24.22.1corepack enablecorepack prepare [email protected] --activatenode scripts/check-runtime.mjs --require-pnpm
  • EasyEDA Pro with the bundled bridge extension installed and running
  • For supplier integration: API credentials from JLCPCB, LCSC, Mouser, or DigiKey

Installation & Client Configuration

Stable v1 is published. If you are upgrading from a pre-v1 release, follow Migrating to v1.

You can configure easyeda-mcp-pro automatically or manually.

1. Automatic Configuration (CLI)

The CLI setup automates editing the configuration files for your client:

bash
# Configure all detected clients automaticallynpx easyeda-mcp-pro setup all
# Or configure a specific clientnpx easyeda-mcp-pro setup <client>
Supported Client Keys:
  • claude (Claude Desktop)
  • cursor (Cursor IDE)
  • vscode (VS Code Copilot)
  • windsurf (Windsurf)
  • cline (Cline)
  • gemini (Gemini CLI / Antigravity)
  • zed (Zed Editor)
  • amazonq (Amazon Q Developer)
  • continue (Continue.dev)
Options:
  • --profile <name>: Specify the tool profile. Options: core (default), pro, full, dev. Example: npx easyeda-mcp-pro setup cursor --profile full

2. Extension Installation

To bridge the MCP server with EasyEDA Pro:

bash
# Open the directory containing the .eext extension package in your file managernpx easyeda-mcp-pro extension --open
# Or copy it to a specific directorynpx easyeda-mcp-pro extension --copy /path/to/destination

Installation steps in EasyEDA Pro:

  1. Open EasyEDA Pro.
  2. Go to Settings → Extensions → Extension Manager.
  3. Click Import Extension and select the easyeda-bridge-extension.eext file.
  4. Ensure Allow External Interaction is enabled for the extension.
  5. Fully quit and reopen EasyEDA Pro after each import or upgrade. Extension Manager's success message confirms the installed package, not replacement of a dispatcher already running in memory.
  6. Click MCP Bridge → Connect, then MCP Bridge → Status to see the running dispatcher build ID. A reconnect or extension disable/enable alone does not activate an imported update. For version-sensitive operations, verify the active build against your intended package before trusting the new behavior.

3. Manual Client Configurations

If you prefer to configure your clients manually, add the following configuration to the respective settings files:

🟣 Claude Desktop

Config Path:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "core"      }    }  }}
🔵 Cursor IDE

Config Path: Project-specific .cursor/mcp.json or global ~/.cursor/mcp.json

json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      }    }  }}
🟢 VS Code (GitHub Copilot)

Config Path: %APPDATA%\Code\User\mcp.json (Windows), ~/Library/Application Support/Code/User/mcp.json (macOS), or ~/.config/Code/User/mcp.json (Linux)

json
{  "servers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      }    }  }}
🏄 Windsurf (Codeium)

Config Path: ~/.codeium/windsurf/mcp_config.json

json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      }    }  }}
🤖 Cline

Config Path: Cline VS Code extension global storage (cline_mcp_settings.json)

json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      },      "disabled": false,      "autoApprove": []    }  }}
✨ Gemini CLI / Antigravity

Config Path: ~/.gemini/settings.json or ~/.gemini/config/mcp_config.json

json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      }    }  }}
⚡ Zed Editor

Config Path: ~/.config/zed/settings.json

json
{  "context_servers": {    "easyeda-mcp-pro": {      "command": {        "path": "npx",        "args": ["-y", "easyeda-mcp-pro@latest"]      },      "settings": {}    }  }}
🔄 Continue.dev

Config Path: ~/.continue/config.json

json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      }    }  }}
👑 Amazon Q Developer

Config Path: ~/.aws/amazonq/mcp.json

json
{  "mcpServers": {    "easyeda-mcp-pro": {      "command": "npx",      "args": ["-y", "easyeda-mcp-pro@latest"],      "env": {        "TOOL_PROFILE": "pro"      }    }  }}

4. Running from Source (Development)

If you are developing or running a modified local build:

bash
git clone https://github.com/oaslananka/easyeda-mcp-pro.gitcd easyeda-mcp-procp .env.example .envpnpm install
# Build the server and the bridge extension packagepnpm buildpnpm build:extension

To configure your clients to use the local development build:

bash
# Print instructions and local config block pointing to dist/index.jsnode dist/index.js --setup-local

Local Diagnostics & Health Check

You can diagnose your environment and bridge connectivity at any time:

bash
pnpm doctor

This checks:

  1. Node.js version compatibility.
  2. Runtime mode: source checkout, installed package, or production runtime.
  3. The CLI entry shebang and the .eext extension package checksum.
  4. Bridge port availability. Note: The bridge status will show as offline until an MCP client starts the server and connects to the EasyEDA Pro extension.

pnpm is required only for a source checkout and must match the repository pin. pnpm is not required for an installed package or production runtime, including the hardened Docker image. Doctor exits with status 1 for unsupported required runtimes, invalid configuration, or missing/corrupt runtime artifacts; an offline bridge by itself remains informational.


Configuration

Copy .env.example to .env and edit. All variables have safe defaults — only configure what you need.

Boolean environment variables use strict literals: true / 1 enable a setting and false / 0 disable it. Matching is case-insensitive and surrounding whitespace is ignored. Other values—including yes, no, on, off, enabled, disabled, empty strings, and misspellings—fail startup validation and report the offending variable. Leave a variable unset to use its documented default.

Essential

VariableDefaultDescription
NODE_ENVdevelopmentSet to production in production
LOG_LEVELinfoPino log level: trace, debug, info, warn, error, fatal, silent
TOOL_PROFILEcoreTool set: core, pro, full, dev, experimental
TOOL_SCOPESemptyOptional capability allowlist such as schematic:read,bom:read
MCP_PROTOCOL_VERSION2025-11-25MCP protocol version string
MCP_BRIDGE_BACKENDlocal_bridgeBridge backend: local_bridge or experimental remote_relay
MCP_REMOTE_SESSION_IDemptyOptional fixed Remote Relay session id for remote_relay backend
TRANSPORTstdioServer transport: stdio (default) or http

For Remote Relay experiments, run npx easyeda-mcp-pro doctor --fix after setting MCP_BRIDGE_BACKEND=remote_relay; the doctor output validates HTTP transport, session selection, OAuth, and loopback-only development auth settings.

Bridge (EasyEDA Pro connection)

VariableDefaultDescription
BRIDGE_HOST127.0.0.1Bridge WebSocket host
BRIDGE_PORT49620Primary bridge port
BRIDGE_PORT_SCAN49620-49629Port scan spec (comma/range)
BRIDGE_TIMEOUT_MS15000Bridge call timeout (ms)
BRIDGE_HEARTBEAT_MS10000Heartbeat interval (ms)
BRIDGE_WAIT_FOR_EDA_MS30000Wait for EasyEDA Pro on startup (ms)
BRIDGE_MAX_PAYLOAD_SIZE1048576Max bridge payload (bytes, default 1 MiB)
BRIDGE_TOKEN''Session token for extension auth
BRIDGE_RAW_EXEC_ENABLEDfalseFirst explicit gate for raw EasyEDA runtime JavaScript execution
MCP_RAW_EXEC_EXPERIMENTALfalseSecond experimental gate required before easyeda_execute is registered

Storage

VariableDefaultDescription
DATA_DIR~/.easyeda-mcp-proBase directory for writable local state
SQLITE_PATH<DATA_DIR>/easyeda-mcp-pro.sqliteSQLite database path
ARTIFACT_DIR<DATA_DIR>/artifactsArtifact export directory
CACHE_DIR<DATA_DIR>/cacheCache directory

Storage paths are resolved in two stages. DATA_DIR is resolved first; each subordinate path is then derived from it with the current operating system's native path separator unless that variable was explicitly supplied. Setting only DATA_DIR therefore relocates the default database, artifact, and cache paths together. Explicit overrides are applied independently and retain their supplied absolute or relative semantics; relative paths remain relative to the MCP process working directory. Changing these settings does not migrate existing data automatically.

Supplier integration

Enable suppliers by setting their credentials. All suppliers are disabled by default.

  • JLCPCB: JLCPCB_MODE=approved_api + client ID/secret
  • LCSC: JLCSEARCH_ENABLED=true (default, no key required for basic search)
  • Mouser: MOUSER_ENABLED=true + API key
  • DigiKey: DIGIKEY_ENABLED=true + OAuth2 client ID/secret

Shared sourcing behavior is controlled independently of any one vendor:

VariableDefaultDescription
KEYLESS_SOURCING_ENABLEDtrueAllow supported public keyless fallbacks when credentials are absent
SOURCING_CACHE_TTL_SECONDS21600Cache sourcing responses for six hours (0 disables cache reuse)
VENDOR_MIN_REQUEST_INTERVAL_MS150Minimum delay between outbound requests to the same sourcing vendor

Reserved AI configuration

No in-process AI provider client is currently implemented. The AI_* variables remain accepted for configuration compatibility but are reported as reserved, are always ineffective, and must not be used to infer that the server sends design data to an AI provider. Do not supply an API key.

VariableDefaultCurrent behavior
AI_PROVIDERnoneReserved; no provider client is invoked
AI_MODEL''Reserved; no model is selected
AI_API_KEY''Reserved; no credential consumer exists
AI_MAX_TOKENS8000Reserved compatibility setting
AI_TIMEOUT_MS60000Reserved compatibility setting
AI_ALLOW_DESIGN_MUTATIONSfalseReserved; cannot enable AI-originated design mutation

Use easyeda_get_feature_flags or easyeda_get_capabilities to inspect configured, effective, and maturity values for optional settings.

HTTP transport

When using TRANSPORT=http:

VariableDefaultDescription
HTTP_HOST127.0.0.1Bind address; non-loopback requires OAuth
HTTP_PORT3000Port
HTTP_AUTH_DISABLEDfalseDisable HTTP auth for non-production loopback only
HTTP_RATE_LIMIT_MAX100Max requests per minute per IP
CORS_ORIGIN''Legacy allowed origin for loopback browser clients
ALLOWED_ORIGINS''Explicit remote origin allowlist; * is rejected
Remote HTTP Security

Every non-loopback HTTP deployment requires OAuth 2.0 / OpenID Connect authentication, regardless of NODE_ENV:

VariableDefaultDescription
OAUTH_ENABLEDfalseEnable Bearer token validation
OAUTH_ISSUER''Expected token issuer (iss claim)
OAUTH_AUDIENCEeasyeda-mcp-proExpected token audience (aud claim)
OAUTH_JWKS_URI''JWKS endpoint for token signature validation
OAUTH_REQUIRED_SCOPESeasyeda:readRequired token scope

When OAUTH_ENABLED=true, every request to /mcp must include an Authorization: Bearer <token> header unless HTTP_AUTH_DISABLED=true is explicitly set for non-production loopback development. Tokens are verified against OAUTH_JWKS_URI, iss/aud claims are validated, and OAUTH_REQUIRED_SCOPES is enforced against scope, scp, permissions, or roles claims.

The server enforces startup safety checks in every environment: non-loopback HTTP_HOST without OAuth is rejected, OAUTH_JWKS_URI / OAUTH_ISSUER / OAUTH_AUDIENCE are required, wildcard ALLOWED_ORIGINS=* is rejected, and HTTP_AUTH_DISABLED=true remains limited to non-production loopback development. Requests without an Origin header still require a valid bearer token on authenticated deployments; CORS is not an authentication boundary.

Docker defaults

The Docker image starts in HTTP mode with HTTP_HOST=127.0.0.1 so the default container boot path is safe and passes the same startup safety checks as local HTTP mode. For an externally reachable container, override the bind address and configure OAuth plus an explicit, non-wildcard origin allowlist:

bash
docker run --rm \  -e HTTP_HOST=0.0.0.0 \  -e ALLOWED_ORIGINS=https://your-client.example.com \  -e OAUTH_ENABLED=true \  -e OAUTH_ISSUER=https://issuer.example.com/ \  -e OAUTH_JWKS_URI=https://issuer.example.com/.well-known/jwks.json \  -e OAUTH_AUDIENCE=easyeda-mcp-pro \  -p 127.0.0.1:3000:3000 \  ghcr.io/oaslananka/easyeda-mcp-pro:latest

Do not expose non-loopback HTTP without OAuth. ALLOWED_ORIGINS restricts browsers but never replaces authentication. Use a reverse proxy or platform gateway for TLS termination and external access.

HTTP Security Features
  • Rate limiting: Per-IP sliding window (configurable via HTTP_RATE_LIMIT_MAX), returns 429 Too Many Requests with retry-after header
  • Security headers: X-Content-Type-Options: nosniff, X-Frame-Options: DENY, X-XSS-Protection: 0, Referrer-Policy: strict-origin-when-cross-origin
  • Health endpoints: /healthz (liveness) and /readyz (readiness) return JSON status

See .env.example for the complete list of configuration variables.


MCP Tools

The server registers profile-gated tools according to the active TOOL_PROFILE. The table below is generated from the same registry used at runtime:

ProfileRegistered tools
core77
pro104
full121
dev126
experimental127

core exposes the standard workflow tools, pro adds manufacturing exports, full adds controlled documented EasyEDA API calls, and dev adds runtime probes for debugging.

Capability scopes add a second authorization layer when TOOL_SCOPES is set. Leave it empty for the default local all-capabilities mode, or restrict it with comma/space separated scopes such as diagnostics:read, schematic:read, schematic:write, bom:read, bom:source, checks:read, pcb:read, pcb:write, export:write, api:read, api:write, and bridge:execute.

Raw JavaScript execution is intentionally not part of the default dev tool set. easyeda_execute is registered only when both BRIDGE_RAW_EXEC_ENABLED=true and MCP_RAW_EXEC_EXPERIMENTAL=true are set; when TOOL_SCOPES is set it also requires bridge:execute.

L0 — Diagnostics (core)

ToolDescription
easyeda_health_checkServer health, runtime version, profile, bridge state
easyeda_bridge_statusBridge connection status, version, capabilities
easyeda_get_capabilitiesAvailable profiles, features, supported operations
easyeda_get_server_configSafe/redacted server configuration
easyeda_get_tool_profilesAvailable tool profiles
easyeda_get_feature_flagsCurrent feature flags
easyeda_run_self_testInternal self-test
easyeda_api_inventoryLive EasyEDA API classes, runtime paths, and methods

L0 — Full-control and dev probes

ToolProfileDescription
easyeda_api_callfullCall a documented EasyEDA Class.method path through the bridge
easyeda_bridge_probe_methodsdevProbe bridge method availability
easyeda_component_probedevInspect live schematic component runtime objects and state getters

easyeda_api_call is intentionally not raw JavaScript execution. It only accepts documented EasyEDA Pro API class prefixes (DMT_, SCH_, PCB_, LIB_) and a direct method name such as SCH_PrimitiveWire.getAll. Methods that can mutate project state, such as create, delete, modify, openProject, save, import, or export, require confirmWrite=true.

To enable the controlled full-control API tool in your MCP client, set:

bash
TOOL_PROFILE=full

L1 — Schematic (core)

ToolDescription
easyeda_schematic_netsList all nets with node connections
easyeda_schematic_componentsList components with ref, value, footprint, LCSC, datasheet
easyeda_schematic_net_detailFull detail for a specific net
easyeda_schematic_search_deviceSearch EasyEDA library devices
easyeda_schematic_place_componentPlace a library component on the active schematic sheet
easyeda_schematic_add_wireAdd a schematic wire segment
easyeda_schematic_delete_primitiveDelete schematic components or wires by primitive ID
easyeda_schematic_modify_primitiveModify schematic component or wire properties

The schematic write APIs use EasyEDA Pro extension APIs that EasyEDA currently marks as beta. The bridge checks for the documented API class names at runtime and returns an explicit error when the installed EasyEDA Pro build does not expose a required method.

L1 — BOM (core)

ToolDescription
easyeda_bom_generateGenerate bill of materials
easyeda_bom_validateValidate BOM against LCSC inventory
easyeda_bom_exportExport BOM to file
easyeda_bom_sourcingPricing and availability from suppliers

L1 — DRC/ERC (core)

ToolDescription
easyeda_drc_runDesign rule check for PCB
easyeda_erc_runElectrical rule check for schematic
easyeda_rule_check_summaryCombined DRC + ERC summary
easyeda_engineering_reviewRead-only PCB evidence and coverage

L1 — Board (core)

ToolDescription
easyeda_board_layersList PCB layers with type, color, visibility
easyeda_board_stackupLayer stackup with thickness, material
easyeda_board_dimensionsBoard outline, shape, mounting holes
easyeda_board_featuresCounts of vias, tracks, zones, pads, components

L1 — Export (core/pro)

ToolProfileDescription
easyeda_export_gerberscoreExport Gerber files for fabrication
easyeda_export_pick_placeproExport pick-and-place centroid file
easyeda_export_pdfproExport schematic/board to PDF
easyeda_export_netlistproExport netlist

Architecture

┌─────────────────┐     WebSocket      ┌─────────────────────┐│   AI Assistant   │ ◄──── MCP ──────► │  easyeda-mcp-pro    ││  (Claude, etc.)  │     Protocol      │  (MCP Server)       │└─────────────────┘                    │                     │                                       │  ┌───────────────┐  │┌─────────────────┐     WebSocket      │  │  BridgeManager │──┼──► EasyEDA Pro│  EasyEDA Pro     │ ◄── Bridge ──────►│  │  (WS Client)   │  │   (Plugin)│  (via Plugin)    │     Protocol      │  └───────────────┘  │└─────────────────┘                    │  ┌───────────────┐  │                                       │  │  ToolRegistry  │  │                                       │  │ (up to 126 tools) │ │                                       │  └───────────────┘  │                                       │  ┌───────────────┐  │                                       │  │    Storage     │──┼──► SQLite                                       │  │  (Cache/DB)   │  │                                       │  └───────────────┘  │                                       │  ┌───────────────┐  │                                       │  │   Vendors     │──┼──► JLCPCB/LCSC/                                       │  │ (API Clients) │  │    Mouser/DigiKey                                       │  └───────────────┘  │                                       └─────────────────────┘

Transports

  • stdio (default): Standard MCP transport — works with Claude Desktop, Cursor, and most MCP clients
  • HTTP: Streamable HTTP transport with /healthz, /readyz, /mcp endpoints, CORS, and optional OAuth — suitable for remote deployments

Deployment modes

Beyond local stdio/HTTP, the server supports a hosted remote runtime (gateway, session router, and approval-scoped relay under src/remote/) for managed connector deployments such as Claude Web or ChatGPT app integrations, plus a self-hosted remote mode for user-managed endpoints. See Remote MCP Modes for the full mode matrix and network/security boundaries of each.

Bridge extension

bash
pnpm build:extensionpnpm verify:extension

The extension build writes easyeda-bridge-extension.eext at the repository root. It contains extension.json, the bundled browser script, and the image assets required by EasyEDA Pro.

Installation: Open EasyEDA Pro → Settings → Extensions → Extension Manager... → Import Extension, then select the .eext file. Make sure Allow External Interaction is enabled for the extension.

For local bridge development, an experimental loopback-only CDP transport is documented in the CDP Bridge guide. The extension remains the recommended transport for normal use. Public delivery targets and milestone lifecycle rules are maintained in the roadmap.


Agent plugin and skills

This repository owns the product-level agent plugin and EasyEDA-specific skills for EasyEDA MCP Pro. The central agent-tools repository should catalog this plugin, but the manifest and workflow instructions live here so they stay synchronized with the actual MCP server, bridge extension, tool profiles, and EasyEDA runtime behavior.

FilePurpose
.claude-plugin/plugin.jsonClaude Code-valid plugin manifest for compatible agent runtimes and marketplace catalogs.
.mcp.jsonProject-local Claude Code MCP server configuration.
.codex/config.example.tomlCodex CLI MCP configuration example.
.vscode/mcp.example.jsonVS Code / GitHub Copilot workspace MCP configuration example.
opencode.example.jsoncOpenCode project MCP configuration example.
.opencode/skills/OpenCode-native mirrored skill definitions.
docs/agent-runtime-config.mdAgent runtime setup and validation matrix.
skills/easyeda-workflow/SKILL.mdEnd-to-end EasyEDA setup, inspection, controlled write, export, and reporting workflow.
skills/component-search/SKILL.mdComponent search, BOM review, sourcing, pricing, availability, and part-risk workflow.
skills/design-validation/SKILL.mdDRC/ERC, semantic ERC, PCB constraints, production QA, export, and release-validation workflow.
skills/design-validation/references/engineering-review.mdCanonical on-demand phase router for source-aware schematic, layout, DRC, DFM/DFT and human evidence review.
skills/easyeda-component-review/SKILL.mdDatasheet, actual footprint and bound 3D model review, with structured evidence saved in a Personal Device.

Agent setup

EasyEDA MCP Pro can be launched with the published npm package or from a source checkout:

bash
npx easyeda-mcp-proTRANSPORT=http HTTP_HOST=127.0.0.1 HTTP_PORT=3000 npx easyeda-mcp-propnpm build && node dist/index.js

For live EasyEDA Pro workflows, install the EasyEDA bridge extension and confirm the bridge is reachable with easyeda_health_check and easyeda_bridge_status. Tool availability depends on TOOL_PROFILE and optional TOOL_SCOPES restrictions.

For source checkouts, run the normal validation path before publishing plugin changes:

bash
python3 -m json.tool .claude-plugin/plugin.json >/dev/nullclaude plugin validate .pnpm format:checkpnpm typecheckpnpm testpnpm buildpnpm check:metadata

Validation workflow

Before listing this plugin as active from agent-tools, verify at least one compatible agent runtime can:

  1. Discover .claude-plugin/plugin.json.
  2. Launch or connect to easyeda-mcp-pro over stdio or HTTP.
  3. Call easyeda_health_check, easyeda_bridge_status, or easyeda_get_capabilities.
  4. Load a skill from skills/ and follow the workflow without referencing missing tools.
  5. Report bridge state, tool profile, ERC, DRC, BOM, export artifacts, assumptions, and human-review requirements separately.

EasyEDA MCP Pro is an engineering assistant, not an autonomous manufacturing sign-off authority. Generated designs, component selections, and fabrication outputs require qualified human review before purchase, fabrication, or assembly.

Development

Prerequisites

  • Node.js: Node.js 24.x is required; repository automation is pinned to 24.22.1.
  • pnpm: local development and automation require exactly 11.28.8.

Prepare the supported runtime before installing dependencies:

bash
nvm install 24.22.1nvm use 24.22.1corepack enablecorepack prepare [email protected] --activatenode scripts/check-runtime.mjs --require-pnpm
  • Go Task (optional, for Taskfile commands)

Quick Start

bash
# Setuppnpm installcp .env.example .env
# All quality gates (lint + format + typecheck + test + build)pnpm verify
# Or, if you use Go Task:task verify
# Use focused checks while iterating:pnpm format:check          # Prettierpnpm typecheck             # TypeScriptpnpm lint                  # ESLint
# Testpnpm test                  # Vitest suitepnpm test:coverage         # With coverage report
# Golden E2E fixture smoke tests are included in `pnpm test`# See docs/golden-fixtures.md for fixture architecture
# Build & runpnpm build                 # tsc -> dist/pnpm build:extension       # Bundle EasyEDA Pro extensionpnpm verify:extension      # Verify extension package contentspnpm dev                   # Hot-reload dev modepnpm start                 # Run compiled build
# MCP Inspector (debug UI)pnpm inspector

Available Taskfile Commands

This project includes a Taskfile.yml with the following commands:

CommandDescription
task installInstall dependencies
task lintRun ESLint
task formatCheck formatting with Prettier
task typecheckRun TypeScript type checking
task testRun tests
task buildBuild the project
task verifyRun all quality gates via Taskfile

The package also exposes pnpm verify, which runs the same CI-equivalent local gate without requiring Go Task.

Install Go Task to use these commands.

Project structure

src/├── index.ts                 # Entry point (stdio or HTTP)├── bridge/                  # EasyEDA Pro WebSocket bridge protocol│   ├── manager.ts, protocol.ts, types.ts├── cli/                     # Client auto-setup (setup/extension CLI commands)├── config/                  # Environment, tool profiles, feature flags│   ├── env.ts, profiles.ts, feature-flags.ts, version.ts├── remote/                  # Hosted/self-hosted remote MCP gateway, session router, scopes├── schemas/                 # Shared Zod schemas├── server/                  # MCP server core│   ├── factory.ts, resources-prompts.ts│   └── transports/│       ├── http.ts                    # HTTP/Streamable HTTP transport│       └── oauth-resource-metadata.ts├── storage/                 # Node.js sqlite storage (cache, artifacts)├── tools/                   # Up to 115 profile-gated MCP tool definitions│   ├── register.ts, registry.ts, types.ts, transaction.ts│   ├── L0_diagnostics_core.ts, L0_diagnostics_api.ts│   ├── L1_schematic_read.ts, L1_schematic_write.ts│   ├── L1_bom_core.ts, L1_bom_sourcing.ts│   └── L1_drc_erc.ts, L1_board.ts, L1_export.ts, L1_pcb_constraints.ts, L1_pcb_write.ts├── vendors/                 # Supplier API clients (lcsc/, jlcpcb/, mouser/, digikey/)└── ...                      # circuit, pcb-layout, net-validation, power-tree, production-qa,                              # quote-gating, safety, observability, catalog, bom-quality,                              # export-manifest, live, easyeda-runtime
easyeda-bridge-extension/    # EasyEDA Pro bridge extension workspace package

Security

See Security Architecture & Threat Model for the complete security reference, including deployment modes, authentication, tool safety controls, secrets management, safe defaults, supplier API security, threat scenarios, and deployment checklists.

  • Network safety: Validates config at startup in every environment — rejects non-loopback HTTP without complete OAuth and an explicit non-wildcard origin allowlist
  • OAuth/JWKS: Bearer token validation via JWKS endpoint for HTTP transport (see OAuth section)
  • Rate limiting: Per-IP sliding window rate limiter on HTTP transport (default 100 req/min)
  • Path traversal protection: All file export paths validated against ARTIFACT_DIR
  • Secret redaction: API keys, tokens, passwords are redacted from logs and diagnostic output
  • Branch protection: Governance policy requires code reviews and status checks on the main branch (see Repository Governance)
  • Code scanning: CodeQL analysis runs on every push and PR (security-extended + security-and-quality queries)
  • Dependency management: Renovate policy is configured in-repository; hosted-provider activity is verified through a Renovate Dependency Dashboard or Renovate-authored update activity. Dependency Audit, Dependency Review, Socket, and CodeQL provide independent security signals.
  • Supply-chain hygiene: pnpm workspace build, pinned GitHub Actions, and no native SQLite addon dependency
  • Reporting: See SECURITY.md for vulnerability disclosure

Release & Dependency Automation

This repository uses automated workflows to manage dependencies and releases:

  • Renovate: .github/renovate.json defines the repository's dependency-update policy. Hosted Renovate is an account-level prerequisite; treat a Dependency Dashboard or Renovate-authored update activity as proof that the provider is active. See Repository Governance.
  • Release Please: Automates stable version bumps, release metadata, and CHANGELOG.md. Numbered rc.N candidates use the isolated prerelease path. See the Release Policy and Release Process.
  • Secure Publishing: The release workflow rebuilds and verifies all assets, publishes npm with provenance to channel-safe latest or next dist-tags, uploads the extension and SBOM to the matching GitHub Release, and keeps GHCR/MCP Registry promotion aligned with the selected channel.

Support the project

If this project helps you save time while working with EasyEDA Pro, BOM workflows, or MCP integrations, you can support ongoing development via the Buy me a coffee button at the top of this README.


License

Current project-authored source is licensed under the MIT License, including commercial use. No separate contributor license agreement is required. See Licensing and Contributing.


Related

来源:README.md,提交 b7e90fc

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:服务器未能启动。

版本历史

13
  1. v1.11.0Nov 7, 2026
  2. v1.10.0Nov 6, 2026
  3. v1.9.0Nov 4, 2026
  4. v1.8.1Nov 3, 2026
  5. v1.6.0Oct 29, 2026
  6. v1.5.4Oct 25, 2026
  7. v1.5.2Oct 23, 2026
  8. v1.5.0Oct 22, 2026
  9. v1.4.0Oct 16, 2026
  10. v1.2.1Oct 16, 2026
  11. v1.2.0Oct 9, 2026
  12. v1.1.0Sep 29, 2026
  13. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分