1. Conduid
  2. IoT
  3. Rttsh
MCP server · IoT

Rttsh

A host-side, scriptable command-line terminal for Segger-RTT; Also the AI-ready command line for embedded validation.

58Fair

Scored 22 hours ago · breakdown

About Rttsh

Rttsh is an MCP server published by z3oya in the IoT category: a host-side, scriptable command-line terminal for Segger-RTT; Also the AI-ready command line for embedded validation. Conduid read 8 tools from its source: connect, disconnect, expect, get_status, list_devices, mem_read and 2 more. No package is published for it, so it installs from a source checkout.

The repository has 57 stars and 2 forks, and its last commit was on 17 Oct 2026. The latest release is v0.3.6 (3 Oct 2026): Seventh release on the 0.3.x line: the script command moves to a native Lua 5.4 engine and the scripting API gets its first major expansion - expect returns captures, an… It follows v0.3.5 (1 Oct 2026), and the 5 most recent releases go back to v0.3.2 (25 Sep 2026). Its topics include agent-skill, automation, debug, debugger, debugging and embedded.

Install

From source
git clone https://github.com/z3oya/rttsh

Tools (8)

connectConnect to a target over J-Link, attach RTT and take the single-instance target lock. Exactly one session exists at a time; every other tool fails until connect succeeds.
disconnectDisconnect from the target and release the target lock.
expectWait until the target output contains pattern (literal text), returning everything from the last consumed position through the match end. On timeout the error names the buffer tail - narrow the pattern or rtt_read first.
get_statusReport the current session state: whether a target is connected, its chip, and whether the core is halted.
list_devicesSearch the J-Link device database for valid chip names (substring filter). Run this before connect when unsure of the exact name.
mem_readRead target memory over J-Link and return a hexdump. address is hex (0x-prefixed); width is 8, 16 or 32 bits (default 32, wider widths need an aligned address); count is the number of width units.
rtt_readRead target output: everything received but not yet consumed - returned immediately when output is pending, otherwise waits up to the timeout for the first bytes. Consuming - the next rtt_read or expect starts after this text. Returns "(no output)" when the target was quiet.
sendWrite one line of text to the target's RTT down channel (a newline is appended).

Security checks

6 checks have not been run yet.

Releases

v0.3.6rttsh 0.3.6 · 3 Oct 2026Seventh release on the 0.3.x line: the `script` command moves to a native Lua 5.4 engine and the scripting API gets its first major expansion - `expect` returns captures, and the expect family grows first-class negative assertions,…
v0.3.5rttsh 0.3.5 · 1 Oct 2026Sixth release on the 0.3.x line: `--elf` runs on a native ELF engine — the new Rust crate `rttsh-elf` — replacing the ELFSharp dependency, and the `.rttsh/elf-cache` parse cache is gone. Highlights `--elf` runs on a native ELF engine.…
v0.3.4rttsh 0.3.4 · 28 Sep 2026Fifth release on the 0.3.x line: ELF flashing is fixed via fromelf conversion, and tool paths move to a machine-level settings file. Highlights ELF images flash correctly. The J-Link DLL loads ELF at section execution addresses and drops…
v0.3.3rttsh 0.3.3 · 26 Sep 2026Fourth release on the 0.3.x line: rttsh becomes an MCP server, so a coding agent can drive a live RTT target with the same eight verbs the CLI uses. Highlights New `mcp` subcommand serves the Model Context Protocol over stdio, with eight…
v0.3.2rttsh 0.3.2 · 25 Sep 2026Third release on the 0.3.x line: the J-Link link grows debugger powers — flash programming and scripted memory/core control. Highlights New `flash` subcommand programs or erases the target without opening an RTT link: `rttsh flash download…
Questions

About Rttsh

How do I install Rttsh?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Rttsh safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Rttsh still maintained?

Yes — the latest release is v0.3.6 (3 Oct 2026), and the last commit was a month ago. The repository has 57 stars.

What tools does Rttsh provide?

Conduid read 8 tools from the source: connect, disconnect, expect, get_status, list_devices, mem_read, rtt_read and send.