Agent 桥接写入预检
run-api-gateway 信封与元狸图 MCP 操作批的离线契约校验:1–100 操作、21 类写入、单原理图、有限几何;任何编辑器写入前先出报告。
Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.
Preview gallery
Validate this MCP operation batch against the write contract: op count, write-type whitelist, single schematic and finite geometry; emit the contract report.
Content matches the files inside the package; extracted by the publish pipeline.
LCEDA agent control bridge bundle
Offline validation core for the two Apache-2.0 LCEDA plaza agent bridges (run-api-gateway, yuanlitu-mcp-service). The bridges themselves execute inside the editor; this skill validates envelopes and operation batches BEFORE they are sent, and documents the protocol (references/).
Core
scripts/demo.mjs (Node >= 20, no deps):
- run-api-gateway envelopes: handshake must carry
service:"easyeda-bridge"; register needs windowId+timestamp; ping/pong need id; execute needs id+code(string); result/error need id. Ports 49620-49629, heartbeat 15 s, silence limit 45 s, outbox 16/60 s. - yuanlitu-mcp: handshake
service:"yuanlitu-mcp", protocolVersion:1; rpc method whitelist: system.health, system.getBasicInformation, schematic.listPages, schematic.inspectPage, library.searchComponents, library.getDeviceDetails, operations.validate, operations.apply, schematic.autoLayout, schematic.autoRouting, schematic.runDrc. - operations batches: 1-100 ops; each op type in the 21-write-type set; every op needs pageUuid and all ops one page; create_component / move_component / create_wire geometry finite numbers.
- operations.apply requires sessionId (backup-before-apply contract).
Run
node scripts/demo.mjs --out-dir <dir> [--input <json>]
Default scripts/fixtures/input.json; stdout = edaskills.report.v1;
artifact bridge-validation.json. Input:
{ gatewayMessages:[...], rpc:[{id,method,params}] }.
When to use
- Gate any AI-agent write to a LCEDA schematic (validate first, apply second, backup always).
- Debug bridge traffic captures offline.
Not for: executing code (execute runs arbitrary JS in-editor — treat as trusted-only), token management (yuanlitu token is a fixed shared secret in the extension; never log it), or transport.
Dependencies
Demo run
node v24.19.0 · 2026/11/19
- [error] RPC_PAGE_UUID (op[0]): op needs pageUuid
FAQ
Ratings & reviews
Not rated0 ratings
Sign in to rate this skill.
Sign inVersions
- v1.0.0Latest296.1 KB
首发种子版本。