Skip to content

raychao-oao/pty-mcp

v0.2.0 Feature

This release adds 5 notable features for engineering teams evaluating rollout.

Published 2mo MCP Developer Tools
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Summary

AI summary

Ring 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 via PTY_MCP_BUFFER_SIZE), no more OOM risk on long-running sessions
  • read_output gains wait_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 supportPollRemote makes wait_for work 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

Track raychao-oao/pty-mcp

Get notified when new releases ship.

Sign up free

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.

All releases →

Beta — feedback welcome: [email protected]