# @ytsuda/ripple [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/yotsuda/ripple  
**GitHub Stars:** 26  
**npm Downloads (last month):** 144  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ytsuda-ripple

## Description
REPL-sharing MCP server — AI and humans co-drive the same visible terminal. 19 embedded adapters: shells (bash, pwsh, zsh, cmd), language REPLs (Python, Node, Deno, Lua, Racket, CCL/ABCL/SBCL Common Lisp, F# Interactive, jshell, Groovy, SQLite3), and debu

## Tools
Capabilities this server exposes over MCP:

- **search_files** — Search file contents using a regular expression. Returns matching lines with file paths and line numbers.
- **list_shells** — List every registered value this ripple build accepts as the `shell` argument to execute_command / start_console — shells (bash, pwsh, cmd, zsh), REPLs (python, node, fsi, jshell, groovy, lua, racket, sbcl, ccl, abcl, deno, sqlite3), and debuggers (pdb, perldb, jdb). Use this when a caller asks which shells/REPLs are available, when deciding which `shell` value to pass, or when troubleshooting why an expected shell is not usable. Any absolute path can also be passed as `shell` (e.g. `C:\tools\myrepl.exe`) — ripple will launch whatever lives at that path even when it is not in this list, but without a matching adapter it runs in a minimal mode: no prompt-boundary detection, no exit-code reporting, and no cwd tracking. Drop a YAML in ~/.ripple/adapters/ to make a custom REPL first-class (it then shows up here with full metadata) — canonical external-adapter examples include duckdb and psql. Returns a JSON object with a `shells` array and a `load_issues` object. Each shell entry carries name, aliases, description, family (shell | repl | debugger), source (embedded — shipped in the binary — or external — loaded from ~/.ripple/adapters), executable (the resolved absolute path start_console / execute_command would actually launch — null when the name / override is not on PATH), and executable_note (a short explanation when executable is null, e.g. 'not found in PATH; tried: pwsh'). `load_issues` surfaces parse_errors, collisions, and overrides from startup; empty arrays mean a clean load.
- **edit_file** — Edit a file by replacing an exact string with a new string. By default old_string must be unique. Use replace_all to replace all occurrences. Preserves the file's original encoding and newline sequence. Response includes ±2 lines of surrounding context for each replacement so the AI can verify the change without re-reading the file.
- **execute_command** — Execute a command in the shared terminal. The command and its output are visible to the user as they stream. Session state (variables, modules, cwd) persists across calls. `shell` is REQUIRED — every call must state which shell family / REPL the pipeline targets. If the active console is busy with a user-typed command, ripple auto-routes to a same-family standby (or auto-starts a fresh one) and preserves your last known cwd via a cd preamble — if the source console was moved by the user since your last command, you'll see a one-line routing notice explaining what ripple did. If the active console is idle but the user manually cd'd in it since your last command, the call returns a verify-and-retry warning instead of running. Every response also reports any other consoles' busy / finished / closed state so you stay aware of background activity. IMPORTANT: do NOT invoke powershell/pwsh from the built-in Bash tool (the Dev-env / VS tools / user profile won't be loaded and many commands will fail). If you need PowerShell, start it via start_console (shell="pwsh") and run it through this tool.
- **find_files** — Find files by glob pattern. Returns matching file paths.
- **peek_console** — Snapshot what a console has been printing recently — the output from the currently running command (since it started executing), plus the next prompt once it finishes. Use this to: check a busy console's progress without waiting for wait_for_completion (the peek pipe works during a running command); diagnose a timed-out execute_command (watch mode, interactive prompt, stalled progress); look in on a console that's busy with a user-typed command the AI can see is blocked. Read-only — does not interrupt or change anything. Returns the live rolling window (ANSI-stripped) plus busy / running-command / elapsed metadata. Works on any console — if you need to observe one other than your active one, pass its display name or PID in `console`.
- **start_console** — Open a visible terminal window. The user can see and type in this terminal; AI commands sent via execute_command will also appear here in real time. If a standby console of the requested shell already exists it is reused unless `reason` is provided. Multiple shell types can be active simultaneously. Every response also reports the busy / finished / closed state of any other consoles you have open so background work stays visible.
- **write_file** — Write content to a file. Creates the file if it does not exist, overwrites if it does. Creates parent directories as needed. When overwriting, preserves the original file's encoding and newline sequence (CRLF/LF/CR) by default. Specify `encoding` only when converting between encodings (e.g., Shift-JIS → UTF-8).
- **read_file** — Read a file with line numbers. Supports offset/limit for large files. Auto-detects encoding (UTF-8/16/32 BOM, Shift-JIS, EUC-JP, GBK, Big5, windows-125x, etc.).
- **send_input** — Send raw keystrokes to a busy console's PTY input. ONLY works when the target console is busy (idle consoles are rejected — use execute_command instead). Use this to: respond to an interactive prompt (Read-Host, password, y/n confirmation); send Ctrl+C (\u0003) to interrupt a stuck or runaway command; exit a watch-mode TUI (q, Ctrl+C); send Enter (\r) to dismiss a 'Press Enter to continue' pause; send arrow keys (\u001b[A/B/C/D) to navigate a TUI menu. Always peek_console first to verify what the console is waiting for, then send_input with the appropriate response. Input is sent as-is — include \r for Enter, \u0003 for Ctrl+C, \u001b[A for arrow-up, etc. JSON does not support \xNN escapes; use \uNNNN. Max 256 chars per call.
- **wait_for_completion** — Wait for AI-initiated commands that previously timed out to finish and retrieve their cached output. Returns one of three states: 'no commands pending' (nothing to wait for, stop calling), 'completed' (one or more drained results included in the response), or 'still busy' (call again to keep waiting). Use this after execute_command returned a Busy/timed-out result.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ripple": {
    "command": "npx",
    "args": ["-y","@ytsuda/ripple@latest"]
  }
}
```

## Documentation

## What @ytsuda/ripple does

@ ytsuda/ripple shares live console sessions between an MCP client and a human operator. Commands run in visible terminal windows rather than isolated, one-shot subprocesses, so imported modules, variables, debugger state, and other session data remain available for later calls.

The package includes adapters for four shells: PowerShell, bash, zsh, and cmd. It also supports Python, Node.js, Deno, Lua, Racket, Common Lisp implementations, F# Interactive, Java jshell, Groovy, SQLite3, and the Python, Perl, and Java debuggers. The debugger adapters expose a common vocabulary for actions such as stepping, continuing, inspecting locals, listing source, and managing breakpoints.

## How it works

A console is started for an adapter and then addressed through MCP calls. Each console maintains its own working directory and session state. Commands can target a named shell, while automatic routing can reuse or start an appropriate console. If a command exceeds its timeout, ripple retains the output and provides a partial screen snapshot so the agent can inspect the current state before waiting or responding.

The visible window supports two-way cooperation. Agents can read the current display with `peek_console` and send raw input to a busy process, including Enter, Ctrl+C, and arrow-key sequences. A person can type into that same window, which allows secrets such as passphrases, MFA codes, or hardware-token PINs to be entered without placing them in the agent-visible output stream.

Adapters are declarative YAML definitions driven by a shared runtime. Additional adapter files can be placed in `~/.ripple/adapters`.

## Setup and configuration

The package is distributed through npm and fetches a self-contained NativeAOT binary on first execution with `npx`. The published binary is approximately 13 MB and targets Windows x64, with no separate runtime prerequisite.

For Claude Code, register the server with:

```bash
claude mcp add-json ripple -s user '{"command":"npx","args":["-y","@ytsuda/ripple@latest"]}'
```

Claude Desktop can use the same command and arguments under the `ripple` entry in `claude_desktop_config.json`. Using the `@latest` tag ensures that `npx` does not continue selecting an older cached package.

## Tools and capabilities

- `list_shells` reports available embedded and custom adapters, aliases, adapter families, executable paths, and loading problems.
- `start_console` opens a visible session with optional working directory, banner, and reason settings.
- `execute_command` runs a pipeline, routes it to a selected or automatically started console, and caches timed-out output.
- `wait_for_completion` retrieves output after a command continues beyond its initial timeout.
- `peek_console` reads the displayed screen and reports activity, the running command, and elapsed time.
- `send_input` sends up to 256 characters of raw input to an explicitly selected busy console.
- File primitives include `read_file`, `write_file`, `edit_file`, `search_files`, and `find_files`.

## Limitations and notes

The bundled executable is a Windows x64 NativeAOT binary. `send_input` only accepts busy consoles and requires an explicit console target; ordinary commands should use `execute_command`. Custom adapter support is available, but its YAML schema is still evolving, so additions intended for long-term use are better contributed upstream. The server can also expose startup errors, name collisions, and adapter overrides through `list_shells`, which is useful when diagnosing custom adapter loading.

_Full upstream README: https://allmcps.com/mcp/ytsuda-ripple/readme_

