PiloTY logo

PiloTY

by yiwenlu66

Maintains persistent interactive PTY sessions for shell commands, SSH work, REPLs, prompts, logs, and long-running processes.

Install PiloTY

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "yiwenlu66-piloty": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/yiwenlu66/PiloTY.git",
        "piloty"
      ],
      "env": {
        "PILOTY_QUIESCENCE_MS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

yiwenlu66/PiloTY MCP server gives agents a persistent interactive terminal through MCP over stdio. It keeps sessions alive across calls, preserving the working directory, environment, foreground process, REPL state, and SSH connections. Agents can send commands or control input, wait for output or prompts, and inspect rendered screen state. Reach for it when stateless shell calls are insufficient for long-running jobs, interactive programs, remote shells, or password prompts.

Use cases

  • Run long-lived builds and test suites
  • Monitor logs across multiple tool calls
  • Maintain interactive SSH sessions
  • Drive REPLs and debuggers
  • Handle terminal prompts and passwords

Key features

  • Persistent PTY sessions
  • Interactive SSH connections
  • Output and regex waiting
  • Shell prompt detection
  • Screen and scrollback snapshots
  • Session logging and inspection

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/13 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · piloty (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars44Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How PiloTY works

What yiwenlu66/PiloTY MCP server does

yiwenlu66/PiloTY MCP server exposes a real interactive pseudo-terminal to an MCP client. Each session remains available after a tool call, allowing an agent to start a command, inspect its output later, and continue in the same shell. The session retains its current directory, environment variables, foreground process, REPL or debugger state, and active SSH connection.

The server is intended for workflows where ordinary shell execution is too short-lived or non-interactive. Examples include builds, migrations, test suites, log followers, service operations, Python REPLs, debuggers, remote administration, and terminal programs such as less, man, top, or vim.

PiloTY exposes unrestricted terminal access. It should therefore be treated as equivalent to giving the agent keyboard access to the host and any reachable remote session.

How it works

Create a session with an explicit working directory, then pass the same session_id to later calls. MCP does not provide a standard client-working-directory field, so session creation is the starting point for a predictable workflow.

Commands and input can be sent as newline-terminated lines, raw text, control input, passwords, or signals. Waiting operations can collect output until the terminal becomes quiet, wait for a regular expression, or wait for a shell prompt. A prompt wait is useful after SSH or another login sequence.

The server tracks both an incremental output stream and a rendered terminal representation. Results distinguish call outcomes such as success, timeout, end-of-file, errors, invalid sessions, and termination from an inferred terminal state such as running, ready, password, confirm, repl, editor, or pager. Screen and scrollback snapshots are passive and do not consume newly arriving PTY bytes.

Setup and configuration

The yiwenlu66/PiloTY MCP server is launched by an MCP client over stdio. With Codex CLI, install it from Git using uvx:

bash
codex mcp add piloty -- uvx --from git+https://github.com/yiwenlu66/PiloTY.git piloty

A local checkout can instead be run with uv --directory /path/to/PiloTY run piloty. The server can also be started directly with uvx without registering it in a client. SSH-based Git fetching is supported through a Git SSH URL.

PILOTY_QUIESCENCE_MS controls the quiet period used by drain-based output collection and defaults to 1000 milliseconds. A custom shell-prompt regular expression can be configured when the default prompt detection is unsuitable.

Tools and capabilities

The yiwenlu66/PiloTY MCP server provides capabilities for:

  • Creating and reusing stateful terminal sessions.
  • Sending lines, raw text, control characters, passwords, and signals.
  • Waiting for output, matching text with a regular expression, or detecting a shell prompt.
  • Taking rendered screen and scrollback snapshots for layout-sensitive programs.
  • Keeping long-running local commands and SSH sessions available between calls.
  • Supporting interactive password prompts, REPLs, debuggers, pagers, editors, and terminal interfaces.
  • Recording session information for later inspection with the bundled session viewer.

Session data is written below ~/.piloty/, including PTY transcripts, command records, interaction logs, metadata, and an active-session link where supported. The server log defaults to /tmp/piloty.log.

Limitations and notes

A deadline_s value limits the wall-clock duration of a send or wait operation; it does not promise that the underlying process has finished. Drain-based calls stop when the quiescence policy is reached or the deadline expires. wait_for_output may return partial output with deadline_exceeded when output began but the PTY remains active.

Prompt and terminal-state detection are best effort and may be inaccurate for custom prompts or cursor-heavy applications. Plain text can misrepresent full-screen interfaces, so use screen snapshots when visual layout matters. Programs that emit periodic output can interfere with quiescence-based collection; adjust PILOTY_QUIESCENCE_MS when needed.

Password sending suppresses transcript logging and terminal echo for that specific send, but it cannot stop a later prompt or program from echoing secrets. Terminate sessions after sensitive work is complete.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PiloTY

yiwenlu66/PiloTY is an MCP server that connects an AI agent to persistent interactive PTY terminals, including local shells and SSH sessions. Its main tools send commands, text, controls, passwords, and signals; wait for output, regex matches, or prompts; and capture rendered screen or scrollback snapshots.

Install it by registering its stdio command with an MCP client, such as `codex mcp add piloty -- uvx --from git+https://github.com/yiwenlu66/PiloTY.git piloty`. You can also run a local checkout with `uv --directory /path/to/PiloTY run piloty`.

Register the server using `codex mcp add` and launch it through `uvx`, or point Codex at a local checkout with `uv`.

It preserves state by reusing the same `session_id` across MCP calls. The session keeps its working directory, environment, foreground process, interactive program state, and SSH connection alive until the session ends.

Set `PILOTY_QUIESCENCE_MS` to change the quiet period used by drain-based calls; the default is 1000 milliseconds. This setting affects when output collection stops, while `deadline_s` remains the wall-clock budget for an individual call.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPiloTY AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yiwenlu66-piloty?style=directory)](https://allmcps.com/mcp/yiwenlu66-piloty)
HTML Embed
<a href="https://allmcps.com/mcp/yiwenlu66-piloty"><img src="https://allmcps.com/api/badge/yiwenlu66-piloty?style=directory" alt="PiloTY on AllMCPs" /></a>