LabWired

io.github.w1ne由 GitHub 账号 w1ne 发布v0.1.0更新于 Nov 18, 2026

Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.

发布方自己的服务:kernelCAD

已验证Streamable HTTP可网页运行开发者工具AI 与机器学习

概览

AI 生成的概览

LabWired 让 AI 助手搭建虚拟嵌入式开发板,在建模的芯片上运行固件,并读回 UART、GPIO 和总线结果。

可以做什么
  • 根据芯片描述和系统清单组装虚拟开发板,连接引脚、总线和外设。
  • 在建模的 CPU、内存和外设上运行固件 ELF,获取 UART 输出、GPIO 与总线轨迹、寄存器状态以及通过/失败结果。
  • 按 UART 内容、内存与寄存器值、停止原因和步数上限对固件行为做断言检查。
  • 返回该次运行的 Playground 链接,便于在浏览器中查看结果。
适用场景
适合希望让助手在没有实体硬件的情况下测试或调试嵌入式固件的场景,例如用一次仿真运行作为合并门禁,或检查固件让传感器、显示屏或总线设备做了什么。
运行要求
远程端点 api.labwired.com,使用 streamable HTTP;需要 OAuth 登录,首次使用时客户端会打开浏览器。未声明环境变量或请求头。
安装前请注意
需要通过 OAuth 登录,助手将以你的 LabWired 账户身份操作。运行会执行固件并产生轨迹、报告等产物;上传专有固件或开发板清单前请确认内容。托管服务的使用可能受提供方定价条款约束。

安装

在 SourceWeft 中

  1. 打开 控制台中的 LabWired,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.w1ne%2Flabwired/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "labwired": {
      "type": "http",
      "url": "https://api.labwired.com/mcp"
    }
  }
}

README

[LabWired]

LabWired Core

Run your firmware on a virtual instance of a real chip, from your terminal, your CI, or your AI coding agent. No board on your desk.

[Rust Core CI] [Board CI] [HW target validation] [Unsupported instruction audit] [Onboarding smoke] [Arduino matrix] [IO-Link native]

[Latest release] [Website] [Documentation] [License: MIT]

[labwired test booting an nRF54L15 and gating on the result]

Recorded from docs/assets/demo.tape against a real binary. You can re-run it. The second half breaks an assertion on purpose, so you can see the gate fail.

What is LabWired Core?

LabWired Core loads a firmware ELF and executes it against modeled silicon: CPU, buses, peripherals, sensors, displays, and protocol devices. You get UART output, GPIO and bus traces, register state, and a pass/fail exit code.

Runs are deterministic. The same ELF and the same board manifest give the same trace on every machine. That is what makes a simulator run usable as a CI gate.

Supported cores:

  • ARM Cortex-M0+, Cortex-M3, Cortex-M4, Cortex-M7, Cortex-M33
  • RISC-V
  • Xtensa LX6 and LX7 (selected ESP32 paths)

This repository is the engine behind labwired.com. The hosted browser Playground and the hosted MCP connector run the same models. To look before installing anything, open a lab: SSD1306 hello, U575 Star Catcher, BME280 weather, or IO-Link DI/DO.

For firmware connected to circuits, use the online circuit simulator guide. It links to a browser RC/touch demo with GPIO and oscilloscope signals. The browser analog adapter models linear R/L/C, sources, and switches. Native ngspice co-simulation is a separate path for supported nonlinear or vendor models.

For original designs, the KiCad PCB import and simulation guide shows pinned source-board acceptance and model gaps. Importing a PCB is not proof that its full electrical system runs. Both guides distinguish model behavior from physical hardware acceptance.

Why use LabWired Core?

Testing firmware on real boards is slow. You wait for hardware, you flash it, and when something breaks you get a dark LED and no trace. Do that for every board in a product line and a hardware CI bench stops being worth the upkeep.

LabWired runs the same binary you would flash. You assert on what the firmware made the hardware do.

Two things separate it from a CPU emulator.

The board is modeled, not only the chip. Sensors, displays, and bus devices live in the system manifest. You can assert on I2C traffic, SPI framing, or what a panel was told to draw.

We publish where the model is thin. Every capability sits in a named tier. Anywhere the simulator short-circuits real hardware, we write it down in the Fidelity Ledger. You cannot gate on a simulator you cannot audit.

Quickstart

Clone the repository, install the CLI, run a firmware. No cross-toolchain needed.

git clone https://github.com/w1ne/labwired-core && cd labwired-core
curl -fsSL https://labwired.com/install.sh | LABWIRED_VERSION=v0.26.0 sh
labwired test --script examples/nrf54l15-dk/io-smoke.yaml
nRF54L15 boot OK
core=cortex-m33 rram=1524K ram=256K
uarte20@0x500C6000 gpio2@0x50050400
regs from MDK/SVD, not nRF52
PASS  4/4 checks · io-smoke · 200000 steps · 0.04s

That is a committed bare-metal ELF booting on an nRF54L15-DK profile in under a second. Nothing is compiled on your machine.

The four checks are the three UART lines plus the stop reason.

The firmware prints those lines from string literals. The text proves nothing by itself. What it proves is that the bytes arrived. To send them, the firmware had to boot from RRAM at 0x0, set up RAM at 0x20000000, and drive UARTE20 over EasyDMA. Get the UARTE base wrong in the chip model and you get no output at all.

GPIO is checked at the pin, not in the banner, by firmware_survival::test_nrf54l15_lights_dk_led0. The example README says why both tests are needed.

The verdict goes to stderr. The exit code is the gate: 0 passes, anything else fails. UART output and --json stay on stdout, so pipes keep working.

Installation

The install script covers Linux, macOS, and Windows via WSL2.

curl -fsSL https://labwired.com/install.sh | LABWIRED_VERSION=v0.26.0 sh
VariableEffect
LABWIRED_VERSION=pin a release
LABWIRED_INSTALL_DIR=choose the install directory
LABWIRED_FROM_SOURCE=1build from source instead of downloading

To read the installer before running it:

curl -fsSL https://labwired.com/install.sh -o install.sh   # review it, then:
sh install.sh

Windows

The native Windows archive contains labwired.exe and labwired-dap.exe. Install the current x64 Microsoft Visual C++ v14 Redistributable first; both executables require VCRUNTIME140.dll. See Microsoft's runtime requirements for supported Windows versions.

Download and extract the archive in PowerShell with tar available:

$v = "v0.26.0"
Invoke-WebRequest "https://github.com/w1ne/labwired-core/releases/download/$v/labwired-$v-windows-x86_64.tar.gz" -OutFile labwired.tar.gz
mkdir $env:LOCALAPPDATA\LabWired -Force
tar -xzf labwired.tar.gz -C $env:LOCALAPPDATA\LabWired
$env:PATH += ";$env:LOCALAPPDATA\LabWired"
labwired --version

The VS Code extension does this for you on Windows — it downloads the same archive on first use. WSL2 also works and takes the Linux instructions above.

Or build it yourself:

cargo build --release -p labwired-cli

Running LabWired

From your terminal

labwired run  --chip configs/chips/<chip>.yaml --firmware path/to/firmware.elf
labwired test --script  path/to/test.yaml --junit report.xml

run is interactive: UART, GPIO, traces, snapshots.

test is the gate. It writes result.json, uart.log, and JUnit, and returns an exit code. Assertions cover UART content, memory and register values, stop reasons, and step and wall-time limits.

See the CLI reference and the test runner reference.

From Python

Install the SDK from PyPI with Python 3.9 or later:

python -m pip install 'labwired[test]==0.26.0'

Use labwired.Sim to run an ELF, wait for UART output, and write pytest checks:

from labwired import Sim

with Sim("tests/fixtures/uart-ok-thumbv7m.elf",
         chip="ci-fixture-cortex-m3-uart1", uart="uart1") as sim:
    sim.expect("OK", timeout="1ms")

The SDK runs the Rust engine in your Python process. See the Python SDK quickstart for source-build instructions and a runnable pytest test using the repository's firmware fixture.

In CI

The same YAML scripts are the merge gate, with no HIL bench to maintain:

- run: labwired test --script examples/ci/uart-ok.yaml --junit report.xml

See CI integration and labwired.com/ci.

From an AI coding agent (MCP)

LabWired speaks MCP. An agent can assemble a board, run firmware, and read the result back. You never touch the toolchain.

claude mcp add labwired --transport http https://api.labwired.com/mcp
codex   mcp add labwired --url https://api.labwired.com/mcp

Your client opens a browser to sign in on first use. Other MCP clients take the standard block:

{ "mcpServers": { "labwired": { "type": "http", "url": "https://api.labwired.com/mcp" } } }

Then ask for what you want:

"Connect LabWired over MCP. Load a virtual STM32 LED + UART board, run the firmware, check the UART output, and give me the Playground URL."

Agents working inside this repository should read docs/agents.md.

How a board is described

A board is data, not code.

A chip descriptor in configs/chips declares memory geometry, cores, and peripheral bases. A system manifest in configs/systems wires up pins, buses, and the devices on them. Firmware writes to modeled registers. The modeled hardware drives the firmware back.

To add a board you write those two files and an example. You do not patch the engine. See the board onboarding playbook and the configuration reference.

What we validate

Every capability sits in one of three tiers, and we say which:

  • Modeled — simulator logic exists and firmware can execute against it.
  • Smoke-tested — a committed test or example exercises the model and checks output.
  • Hardware-compared — captured silicon behavior is diffed against simulator behavior for a documented scope.

The NUCLEO-H563ZI example is the reference case. The same firmware runs on a physical board and on the simulator, and the artifacts are committed. See VALIDATION.md, determinism_report_h563.json, and the golden reference method.

Each report covers the scope it describes. None of them claim that every instruction and timing path matches silicon. The Fidelity Ledger has both sides: where we short-circuit hardware, and where we hold up. One e-paper panel matches silicon on 19033 of 19033 SPI transfers.

Boards and examples

ARM Cortex-M and RISC-V have the deepest coverage. Some ESP32/Xtensa paths exist for specific examples. The optional native QEMU-derived Cortex-A7 backend runs bounded instruction fixtures through the same CPU and bus interfaces. The Luckfox Pico Mini A dossier includes vendor assets, pins and declared memory geometry; RV1103 peripherals and Linux boot remain unimplemented.

Check the per-board status before you assume a peripheral is modeled. It is in docs/boards, the validation status matrix, and the browsable catalog at app.labwired.com/validation.

To seeRun
A deterministic pass/fail gateCI UART smoke
Firmware driving a sensor over I2CBlinky + TMP102
Simulator compared against a physical boardNUCLEO-H563ZI
CAN/UDS diagnosticsUDS on STM32H563
An IO-Link deviceIO-Link DIDO
GDB or VS Code debugging without a probeDebugging, GDB

The full list is in docs/demos.md. Each example's README and validation file is the source of truth for what that example actually models.

The LabWired ecosystem

This repository is the engine. Everything below runs on it, and all of it is public.

Put it in your workflow

ProjectWhat it gives you
firmware-testGitHub Action. Run a LabWired test script as a merge gate — no hardware, no cross-toolchain on the runner.
firmware-ci-starterTemplate repo. Firmware, test script, and workflow already wired — generate it and your first push runs green.
labwired-zephyrwest labwired-simulate on Zephyr 3.7 and 4.5. The optional native runner on 4.5 also supports west simulate -r labwired and west flash -r labwired; see the setup instructions.
labwired-vscodeVS Code extension. Run and debug firmware from the editor without a probe.
labwired-lab-templateBare template for a repo whose merges gate on a simulation run.

Drive it from an agent

ProjectWhat it gives you
agentThe LabWired Firmware Agent — writes firmware and checks it on a virtual board.
skillsAgent Skills for firmware work against the simulator as a hardware oracle.
docs/agents.mdThe MCP surface and the rules an agent working in this repo should follow.

See it doing real work

ProjectWhat it shows
labwired-cra-evidenceCRA-style secure-boot and signed-OTA evidence, regenerated in CI on a virtual nRF52840 + ATECC608A. Evidence, not a certificate.
smart-ring-digital-twinAn nRF54L15 smart ring, register-level sensor models, and an honest BLE-contention demonstration.
labwired-nokia-ci-demoSTM32L476 driving a Nokia 5110 (PCD8544) and an HC-SR04, gated in CI.
labwired-demo-stm32f1xxRust embedded-hal on STM32F1 under the simulator.

Firmware stacks that use LabWired as their test bench

iolinki (IO-Link device stack for Zephyr) · iolinki-master (IO-Link master stack) · udslib (ISO 14229 UDS for embedded ECUs) · thermal-io-link-condition-sensor (MLX90640 + ESP32-C3 condition monitoring)

Using LabWired for something public? Open an issue and it goes on this list.

Missing a chip? Peripheral behaving wrong?

Open an issue for a wrong register, an unsupported instruction, a board you need, or a peripheral you would model differently. Attach a firmware ELF and a system manifest if you can — those usually become regression tests.

Adding a board is the easiest way to contribute: follow the board onboarding playbook, mirror an existing example, and check the result against the target support rubric.

See ROADMAP.md for what is planned, CONTRIBUTING.md for repository workflow, and SECURITY.md for security issues.

Repository scope

This repository owns the core simulator and its validation assets: CPU, bus, memory, peripheral, and external device execution; chip and system descriptors; CLI, test runner, debug adapters, and snapshot/trace tooling; and hardware-target validation metadata. Application UI, hosted Playground behavior, and product surfaces live outside this package.

The merge gate is core-ci.yml. Narrower signals come from board smoke coverage (core-board-ci.yml), coverage (matrix smoke, weekly), unsupported instruction audits, nightly validation, hardware target sweeps, and per-board throughput (core-perf.yml). Release mechanics are in RELEASE_PROCESS.md and RELEASE_READINESS_CHECKLIST.md.

Documentation

Docs index · Architecture overview · Engine architecture · CLI reference · Python SDK · CI test runner · Configuration reference · Board onboarding playbook · Target support rubric · Debugging · PlatformIO integration · Agents manual

Project links

labwired.com · Playground · Docs · Validation · For CI · Blog · Pricing

Contributing

See CONTRIBUTING.md for repository workflow and docs/agents.md for AI-agent guidance. For security issues, see SECURITY.md.

License

MIT. See LICENSE.

来源:README.md,提交 9bf3592

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v0.1.0最新Nov 11, 2026

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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

其他 Kernelcad 集成