SerialHub
串口桥接器:让 AI 代理(MCP)与浏览器终端共享同一串口。 | Serial bridge: share a UART between AI agents (MCP) and browsers (xterm.js terminal).
Install / Use
claude mcp add dongly -- npx -y github:dongly/SerialHubIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of SerialHub
SerialHub scores 71/100 on our quality scale, 3788th of 4,650 Development & Engineering skills we index.
Its MCP Server is 3.1 KB long, well organised into 11 sections with 5 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 32 days ago, so SerialHub is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
SerialHub compared with similar skills
All 4 of these similar skills score higher than SerialHub; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| SerialHub (this skill)by dongly | 71 | 3 | 32d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 112.1k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 110.4k | 1d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 81.3k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.2k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install SerialHub?
- Run
claude mcp add dongly -- npx -y github:dongly/SerialHub. The install tabs above show the steps for each supported agent. - Which AI agents does SerialHub work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is SerialHub safe to use?
- It is Apache-2.0-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is SerialHub still maintained?
- The repository was last updated 32 days ago, so SerialHub is actively maintained.
Skill content
View source on GitHubSerialHub
English | 简体中文
串口(MCU)与网络连接(Web 终端 / AI)之间的双向桥接器:把 MCU 串口同时桥接给人和 AI,单个 Go 二进制(前端内嵌),支持 Windows(系统托盘)/ Linux / macOS。
📚 文档:快速开始 | MCP 使用指南 | 配置与架构 | 发布流程 | 集成测试
项目简介
- 人:浏览器里的 xterm.js Web 终端,实时查看与输入(启动后自动打开浏览器,WSL 下也能弹出 Windows 宿主浏览器)
- AI:原生 MCP 服务器(Streamable HTTP + stdio),提供 8 个工具(
serial_list/serial_connect/serial_write/serial_read/serial_clear/serial_disconnect/serial_status/serial_script) - 双通道共享同一串口连接与数据缓冲,人和 AI 看到的是同一串字节
- 所有参数均可通过 TOML 或命令行配置,数据流可按需记录(
--log-data)
系统架构
flowchart TB
MCU["MCU"] <-->|"串口 (COM9, 115200, 8N1)"| Serial["串口管理器<br/>Serial Manager"]
subgraph SerialHub["SerialHub(单二进制)"]
Serial <-->|"事件总线"| Bridge["数据桥接<br/>DataBridge"]
Bridge <-->|"读写"| Buffer["DataBuffer<br/>共享缓冲"]
Bridge <-->|"WebSocket (端口 5050)"| Web["Web 终端<br/>xterm.js"]
Bridge <-->|"JSON-RPC (HTTP)"| MCP["MCP 服务<br/>8 个工具"]
end
Web <-->|"WebSocket"| Browser["浏览器<br/>人工操作"]
MCP <-->|"MCP 协议"| AI["AI 工具<br/>OpenCode / VS Code 等"]
安装
一键安装(自动查最新版、下载并校验;可用 SERIALHUB_GITHUB_API 指定加速基址):
# Linux(装到 ~/.local/bin)
curl -fsSL https://raw.githubusercontent.com/dongly/serialhub/main/install.sh | bash
# Windows:在 PowerShell 中运行(装到 %LOCALAPPDATA%\Programs\serialhub 并加入用户 PATH)
irm https://raw.githubusercontent.com/dongly/serialhub/main/install.ps1 | iex
- 手动下载、PATH 配置、安装验证、WSL USB 串口挂载等详细步骤见 QUICKSTART.md。
- 源码构建(macOS 唯一方式;需 Go 1.26+):
git clone https://github.com/dongly/serialhub && cd serialhub && go build -o serialhub ./cmd/serialhub - 自升级与卸载:
serialhub upgrade(下载校验并原子替换自身)/serialhub uninstall(dry-run 列清单确认后清理 MCP 条目 / 配置 / 日志 / 二进制);代理遵从HTTPS_PROXY。
快速开始
场景:人工 + AI 同时调试
- 启动 SerialHub:
serialhub -p COM9 --host 0.0.0.0 -D
Windows 推荐用安装目录下的启动脚本
.\sr.ps1 [参数]
# 如:
.\sr.ps1 -p COM9 -D
- 启动前强制结束仍在运行的旧 serialhub 进程(重启免手工关旧实例);
- 以最小化窗口启动(自动附加
--minimized),并打印 PID、日志路径(exe 同目录logs\serialhub.log)与停止命令; - 参数
-p / -b / -c / -D / -m与直接运行serialhub.exe的同名参数一致(脚本-listen对应 exe 的--host);也可双击sr.bat(转调sr.ps1)。脚本命名为sr是为了不遮蔽 PATH 上的serialhub.exe。
- 人工通过 Web 终端监视:浏览器打开
http://localhost:5050/terminal。页面「退出」按钮可远程关闭 SerialHub(优雅停机;--host 0.0.0.0暴露到局域网时,任何能打开该页的人均可关闭)。 - AI 接入:运行
serialhub setup一键写入 MCP 客户端配置(默认 stdio 本地模式,支持 OpenCode / Claude Code / Cursor / Windsurf / VS Code / Codex);手动配置见 MCP.md。 - 串口数据同时转发到 Web 终端和 AI 接口,两者可独立向串口发送命令。
命令与配置
全部选项见 serialhub --help 与 AGENTS.md 的 CLI 参数表。配置优先级 CLI 参数 > 配置文件 > 默认值;查找顺序、回写时机与日志目录见 AGENTS.md,完整示例见 config.example.toml。Windows 上默认启动系统托盘(右键菜单连接 / 断开 / 退出),详见 QUICKSTART.md。
开发
开发流程与常用命令见 AGENTS.md;在 WSL 中测试 Windows 版本(托盘、单实例锁、PowerShell 脚本)的方法与坑见 docs/wsl-windows-testing.md。
许可证 / License
本项目采用 Apache License 2.0(Copyright 2026 dongly)发布。
Related Skills
taste-skill
112.1kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
110.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
81.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
79.2kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
