serial

serial is a command for coding agents from JannLeo/telinksdk-builder-mcp. It costs 21 tokens per session (446 once invoked), scanned A, original, MIT.

A command set for listing serial ports and capturing logs from firmware after it has been flashed. It uses a Python serial library and can read project serial settings.

In plain words
What is it for?
It helps compile, flash, and inspect firmware in sequence, then review log lines such as startup messages, version numbers, or other expected text.
Why use it?
It removes the manual work of finding the right port and collecting device output when checking whether firmware behaves as expected.

Command

Part of the telinksdk-builder plugin — 6 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jannleo/telinksdk-builder-mcp/serial
Clone the repo
git clone --depth 1 https://github.com/JannLeo/telinksdk-builder-mcp

Or install telinksdk-builder, the plugin that ships this one along with the rest of its 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for serial

README.md
[![agentmods](https://agentmods.dev/badge/commands/jannleo/telinksdk-builder-mcp/serial.svg)](https://agentmods.dev/commands/jannleo/telinksdk-builder-mcp/serial)
Your own site
<a href="https://agentmods.dev/commands/jannleo/telinksdk-builder-mcp/serial"><img src="https://agentmods.dev/badge/commands/jannleo/telinksdk-builder-mcp/serial.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00446
Opus 5 $0.00010 $0.00223
Sonnet 5 $0.00004 $0.00089
Haiku 4.5 $0.00002 $0.00045

Measured 4d ago against content hash 6f9d19ea64d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

serial scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/serial.md · 36 lines

What it actually says

使用通用构建运行器 ${COCO_PLUGIN_ROOT}/trae_build_runner.pyserial 子命令,抓取串口日志用于验证烧录后固件行为(构成"编译→烧录→看串口"闭环)。需 pyserial。

调用

# 列出可用串口
python "${COCO_PLUGIN_ROOT}/trae_build_runner.py" --project "${workspaceFolder}" serial list

# 抓取串口(端口/波特率默认从 builder.json serial 段读,否则自动选第一个端口 + 115200)
python "${COCO_PLUGIN_ROOT}/trae_build_runner.py" --project "${workspaceFolder}" serial capture --port COM3 --baud 115200 --duration 5 --max-lines 200

选项速查(capture)

选项 说明
--port 串口(COM3 / /dev/ttyUSB0);空=配置默认或自动检测
--baud 波特率;空=配置默认(115200)
--duration 抓取时长秒数(默认 5.0)
--max-lines 最大行数(默认 200)

汇报规范

解析 JSON 后向用户汇报:

  • list:端口数组(port、description),建议用户选哪个
  • capture:抓到的行数、前若干行日志摘要;若日志含 "boot ok" / 版本号 / 预期关键字则提示固件正常,否则把日志交给用户判断

完整闭环

用户说"编译并烧录看效果"时,依次:/build/flash wf/serial capture,把串口日志给用户判断固件行为。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 36 lines · 21 tokens per session scan A 6f9d19ea64d6

Subscribe to this mod's changes

serial is a command published in the GitHub repository JannLeo/telinksdk-builder-mcp (1 stars, last pushed 26d ago), licensed MIT. It adds 21 tokens to every session and 446 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.