Skip to main content
ReviewFreeNewv1.0.0

Agent 桥接写入预检

run-api-gateway 信封与元狸图 MCP 操作批的离线契约校验:1–100 操作、21 类写入、单原理图、有限几何;任何编辑器写入前先出报告。

Installs: 0Rating: –Updated:
Claude CodeCursorCodexGemini CLI+1

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Preview gallery

You say
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.

What you get

  • WebSocket envelope structure and opcode whitelist validation
  • MCP operation-batch contract checks (count, write types, single document, finite geometry)
  • A fail-closed contract report that refuses out-of-contract batches

Good fit for

  • A safety gate before AI agents write into LCEDA via gateway/MCP
  • Self-checking bridge protocol implementations

Not for

  • Running the gateway itself (no ports opened, no editor JS executed)
  • Read-only analysis (no write batch involved)
Before you start

You provide

  • Gateway envelope JSON or an MCP operation-batch JSON

Environment

  • node ≥ 20

Last tested

v1.0.0 · Claude Code, Cursor, Codex, Gemini CLI · Ran 2026/11/19

Dependencies

No dependencies
This skill works standalone.

Demo run

Failed verification1 errors · 0 warnings

node v24.19.0 · 2026/11/19

  • [error] RPC_PAGE_UUID (op[0]): op needs pageUuid

FAQ

Ratings & reviews

Not rated0 ratings

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest296.1 KB

    首发种子版本。

    License: MITSourceSHA-256: 5e0fd68c50e904a3…

Related skills