# zsh-tool [Health: Active]

**Category:** 🖥️ Command Line  
**Repository:** https://github.com/ArkTechNWA/zsh-tool  
**GitHub Stars:** 5  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zsh-tool

## Description
Zsh for Claude Code. PTY mode lets Claude type passwords. NEVERHANG + A.L.A.N.

## Tools
Capabilities this server exposes over MCP:

- **zsh** — Execute command with yield-based oversight
- **zsh_poll** — Get new output (delta) from running task with line numbers
- **zsh_send** — Send input to task's stdin
- **zsh_kill** — Kill a running task
- **zsh_tasks** — List all active tasks
- **zsh_health** — Overall health status
- **zsh_alan_stats** — A.L.A.N. database statistics
- **zsh_alan_query** — Query pattern insights for a command
- **zsh_neverhang_status** — Circuit breaker state
- **zsh_neverhang_reset** — Reset circuit to CLOSED

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What the zsh-tool MCP server does

The zsh-tool MCP server exposes native zsh execution to Claude Code through MCP. Its main execution path starts with `zsh`, which can return after a configured yield period instead of waiting indefinitely. A command that continues running becomes a task that the agent can inspect, provide input to, or terminate.

PTY mode supports programs that expect a terminal. It combines terminal input and output handling, preserves color and escape sequences, and allows prompts to be observed and answered with `zsh_send`. This includes workflows where an interactive command asks for a password. Standard execution remains available for non-interactive commands.

## How it works

Running tasks produce incremental output through `zsh_poll`. Each poll returns the new portion since the previous poll and includes global line numbers, byte counts, and task timing information. The first poll returns output from the beginning; later polls return only newly available lines. A two-second listening window lets the tool wait briefly for output before returning status and adaptive polling advice.

The zsh-tool MCP server uses a NEVERHANG circuit breaker to track timeout patterns by command hash. After three timeouts within a rolling hour, the related circuit opens and blocks further attempts. It can recover automatically after five minutes, and its state can be inspected or reset through dedicated tools.

A.L.A.N. provides short-term command history. It detects retries, tracks success and failure streaks, recognizes similar command forms, estimates durations, and records whether a task was killed early or late relative to its observed median. Its data includes a rolling 15-minute session window and temporal decay. SSH observations distinguish connection failures from failures in the remote command.

## Setup and configuration

The documented installation paths target Claude Code. The recommended route adds the ArkTechNWA marketplace and installs `arktechnwa/zsh-tool`. Manual installation clones the repository into the Claude plugins directory and enables `zsh-tool` in `~/.claude/settings.json`.

The bundled `scripts/run-mcp.sh` builds the Rust binary on first launch and starts the MCP server. For local development, an MCP configuration can invoke that script with an absolute path.

## Tools and capabilities

- `zsh`: Start a command with yield-based execution.
- `zsh_poll`: Retrieve output deltas and task timing data.
- `zsh_send`: Write input to a running task.
- `zsh_kill`: Stop a running task and record the outcome for A.L.A.N.
- `zsh_tasks`: List active tasks.
- `zsh_health`: Return overall health information.
- `zsh_alan_stats` and `zsh_alan_query`: Inspect A.L.A.N. data and command-pattern insights.
- `zsh_neverhang_status` and `zsh_neverhang_reset`: Inspect or reset the circuit breaker.

Repeated command failures can trigger background man-page option lookup. Cached options are surfaced in later A.L.A.N. insights, and this behavior is enabled by default.

## Limitations and notes

The project identifies itself as beta, version 0.7.2, and is licensed under MIT. Polling suggestions are advisory, so the agent remains responsible for deciding whether to wait, poll again, or kill a task. A.L.A.N. stores short-term command history in SQLite and applies decay rather than retaining all activity indefinitely.

_Full upstream README: https://allmcps.com/mcp/zsh-tool/readme_

