
Bench
io.github.seayniclabs由 GitHub 帳號 seayniclabs 發布v0.4.3更新於 Oct 30, 2026
USB hardware discovery for AI tools: find maker boards, serial ports and chips.
概覽
原生 macOS MCP 伺服器,讓 AI 助理探索 USB 開發板、辨識晶片、讀寫序列埠,並在核准後燒錄韌體。
- 可以做什麼
- 探索與檢視 USB 裝置:列舉裝置、辨識開發板、讀取描述元、集線器拓撲、供電資訊、事件與快照
- 操作序列埠:列出、開啟、讀取、寫入、寫入並等待預期回應、監看與關閉
- 韌體相關:偵測晶片類型,並透過 esptool、dfu-util、avrdude 或 UF2 燒錄韌體
- 收發原始 HID 報告,並把 ESP32 或 ARM 當機傾印解析到原始碼行
- 裝置管理:重設埠、退出裝置、為裝置加上標籤、執行診斷
- 提供內建技能提示與資源,涵蓋上手、序列埠除錯、安全燒錄與系統化除錯
- 適用情境
- 適合在 Mac 上使用 Arduino、ESP32、Raspberry Pi Pico 等已連接開發板的開發者,希望助理辨識開發板、找到序列埠、除錯序列埠輸出或當機,並燒錄韌體。
- 執行需求
- 本機 macOS 14 或更新版本(Apple Silicon 或 Intel);本版本不支援 Linux。可透過 MCP Bundle、Homebrew(需 Xcode 16.3 或更新版本)、固定版本原始碼建置或 Claude Code 外掛安裝。燒錄韌體需已安裝 esptool、dfu-util、avrdude 或 UF2;當機解析使用 addr2line。可用 BENCH_MODULES、BENCH_DEBUG_ENABLED、BENCH_APPROVE_DEVICE_WRITES、BENCH_APPROVAL_LOG、BENCH_ADDR2LINE、BENCH_SKILLS_DIR 等環境變數設定。不需憑證或網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Bench,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Bench
Made by Seaynic Labs. Need tools like this built around your own systems? We do that.
USB hardware discovery for your AI tools.
Bench is a native macOS MCP server for developers who work with boards plugged into their Mac: Arduino, ESP32, Raspberry Pi Pico and other USB boards. It names the board, finds its serial port, reads and writes that port, detects the chip, decodes crash dumps, and flashes firmware with your approval. Bench is free and open source, made by Seaynic Labs.
First five minutes
- Install it:
brew install seayniclabs/tap/bench(see Install). - Run
bench --doctor. It prints one line per check and aFIXline for each problem. - Connect your AI client (see Connect your AI client).
- Ask it to call
bench_modules. It lists the modules that are on and their tools. - Plug in a board and ask: "Which boards are connected, and which serial port is each one on?"
Audience and modules
Bench is for developers working with connected hardware. It is one server made of modules. You switch modules on or off. Every module that shipped before 0.4.0 is on by default. A module added in a later release ships off, so you choose to turn it on.
Linux is not in this release. It is planned behind the same tools.
Skills
Skills are short, tested guides for the jobs Bench does. Any app that speaks MCP gets them as prompts (one per skill) and resources (every file in the skill). Apps that read Agent Skills directly load the same skills/ folder.
Tools
25 tools in total. 24 are on by default; decode_crash needs the debug module.
core: ping, bench_modules
usb: list_usb_devices, get_device_info, identify_device, eject_device, hub_topology, tag_device, port_reset, power_info, monitor_events, snapshot_state, diagnose_device, device_descriptors
serial: list_serial_ports, serial_open, serial_read, serial_write, serial_write_and_expect, serial_close, serial_monitor
firmware: chip_detect, flash_firmware
hid: hid_send
debug: decode_crash
Call bench_modules first to see what is on and how to change it.
Settings
All settings are environment variables. Bench starts with an empty environment, and a tool call tells you which variable is missing.
Safety
Bench can change hardware, so some calls are gated.
- Device writes need approval.
serial_write,serial_write_and_expect,flash_firmware,port_reset,eject_device,chip_detect(it resets the chip into its bootloader), andhid_sendwith an action other thanget_reportorlist_reportschange a device or its state. Your client asks you through its approval prompt, and the prompt shows the full arguments. A flag from the model, such asconfirm: true, does not count as approval. - Clients that cannot show a prompt are refused. Set
BENCH_APPROVE_DEVICE_WRITES=1in the server's environment to allow writes without a prompt. Only do this when you trust every tool call your AI client makes. - Every approval is logged. Each request, grant, decline and refusal goes to the approval log. Payloads and file contents are not written there.
- Reads are not gated. Discovery, monitoring, serial reads and
serial_monitor,diagnose_device, and crash decoding run without a prompt. - Local only. Bench makes no network calls and needs no root. Serial access on Linux (future) will need the
dialoutgroup, not sudo.
See SECURITY.md for the reporting policy and the list of what Bench touches.
Errors
Every error reads bench.<module>.<code>: <message> Fix: <hint>, for example:
Every tool result also has structuredContent with ok, module, tool and text.
Install
Claude Desktop (MCP Bundle)
Download bench-<version>-darwin-universal.mcpb from the latest release and open it: Claude Desktop shows the install dialog. The bundle carries the binary (Apple Silicon and Intel, macOS 14 or later) and the skills, so it needs neither Homebrew nor Xcode. The binary is ad-hoc signed, not notarized. Check the download against the .sha256 file next to it in the release.
Homebrew
The formula builds from source with Swift, so it needs Xcode 16.3 or later. It installs the binary as bench and the skills to share/bench/skills, next to it.
Pinned install
Use this when you want exactly the 0.4.3 source, not whatever the formula points at:
The skills are read from skills/ in the checkout, because the build directory sits inside it.
Claude Code plugin
The repository also packages Bench as a Claude Code plugin (.claude-plugin/plugin.json and .mcp.json): the server and its skills in one install. The plugin runs the bench binary from your PATH, so install Bench with Homebrew first. Then add the Seaynic Labs marketplace and install the plugin:
Connect your AI client
Bench speaks plain MCP over stdio. Use the full path to the binary in each snippet.
Claude Code
Claude Desktop (claude_desktop_config.json)
Cursor (~/.cursor/mcp.json)
VS Code (.vscode/mcp.json)
To set a variable, add an env object next to args, for example "env": { "BENCH_DEBUG_ENABLED": "1" }.
Try these
- "Which boards are connected to this Mac, and which serial port is each one on?"
- "Identify the board on /dev/cu.usbserial-2120 and tell me its exact chip."
- "Bring up my ESP32: confirm the chip, read its boot output, and check it answers
ping." - "My ESP32 keeps rebooting. Decode the crash in this log against
build/firmware.elf." - "Flash
build/firmware.binonto the board with serial number ABC123. Ask me to approve it first."
How it works
Bench uses Apple's IOKit framework to enumerate USB devices. It adds serial port detection (/dev/cu.*), storage details from diskutil, and a built-in database of known maker boards. It talks to your AI tool over stdio using the Model Context Protocol.
Build and test
Bench requires Swift 6.1 or later and targets macOS 14 or later. The tests start the built binary with an empty environment, so run swift build before swift test if you change the server.
The checks that CI and release runs use:
After you change a tool, prompt or the instructions, run python3 scripts/tool_lock.py and python3 scripts/mcpb_manifest.py, and add a changelog line in the same change. After you change the card's inputs, run python3 scripts/security_card.py and paste its output between the card markers.
Changelog
See CHANGELOG.md.
License
MIT. Published by Seaynic Labs. Third-party material is listed in CREDITS.md.
Built by Seaynic Labs. We build tools like this around a business's own systems: local-first, with a person approving every change. See custom integrations.
來源:README.md,提交 fa81668
工具
0版本歷史
1- v0.4.3最新Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分