This release adds 5 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Summary
AI summaryRing Buffer limits memory usage to configurable size and read_output now supports pattern‑based waiting with new parameters.
Full changelog
What's New in v0.2.0
- Ring Buffer replaces unbounded
bytes.Buffer— fixed 256KB (configurable viaPTY_MCP_BUFFER_SIZE), no more OOM risk on long-running sessions read_outputgainswait_for— AI agents can say "wait until you see this pattern", no more blind polling or guessing sleep durations- Pattern matching engine — supports regex + plain text fallback, auto-strips ANSI escape codes
- New parameters:
timeout,context_lines,tail_lines— precise control over wait duration and response context - Channel-based signaling — uses
chan struct{}for context-aware blocking, not sleep polling - SSH remote support —
PollRemotemakeswait_forwork across SSH connections - 13 unit tests — 7 RingBuffer + 6 waitForPattern
Example
# Wait for server reboot
create_local_session("ping myserver")
read_output(session_id, wait_for: "bytes from", timeout: 300)
→ blocks until server responds, up to 5 minutes
# Wait for deployment
send_input(session_id, "docker-compose up")
read_output(session_id, wait_for: "ready|error", timeout: 60, context_lines: 3)
→ matched line + 3 lines of surrounding context
Full Changelog: https://github.com/raychao-oao/pty-mcp/compare/v0.1.0...v0.2.0
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About raychao-oao/pty-mcp
Interactive PTY sessions for AI agents — local shells, SSH with persistent sessions (ai-tmux daemon for attach/detach), and serial ports. Single Go binary, no tmux dependency.
Related context
Beta — feedback welcome: [email protected]