Zsh Tool logo

Zsh Tool

Runs native zsh commands through MCP with interactive PTY support, task control, circuit breaking, and command-pattern learning.

Install Zsh Tool

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for zsh-tool, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Native zsh execution is the focus of the zsh-tool MCP server, which gives Claude Code shell access through an MCP interface. Commands can yield partial output, remain active for later polling, accept stdin, and run inside a pseudo-terminal for interactive programs. NEVERHANG tracks repeated timeouts and can block failing command patterns, while A.L.A.N. records short-term command outcomes and provides pattern insights. Reach for it when Bash and zsh differences, long-running tasks, interactive prompts, or repeated command failures are disrupting agent workflows.

Use cases

  • Run native zsh commands from Claude Code
  • Monitor long-running builds with incremental output
  • Answer interactive terminal prompts through PTY mode
  • Inspect recurring command failures and retry patterns
  • Stop tasks that exceed expected execution behavior

Key features

  • Yield-based zsh command execution
  • PTY support for interactive programs
  • Delta polling with global line numbers
  • Task input, listing, and termination
  • NEVERHANG circuit breaker
  • A.L.A.N. command-pattern insights

Tools10

What Zsh Tool lets your agent do. Expand a tool for its parameters.

Self-reported~102 tokens of context

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.

25/26 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10/6/2026 via OSV.dev

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Tools exposed10Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Zsh Tool works

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.

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 Zsh Tool

zsh-tool is an MCP server that connects Claude Code to a native zsh environment. Its main tools execute commands, poll incremental output, send stdin, kill tasks, list active tasks, report health, query A.L.A.N. command insights, and inspect or reset the NEVERHANG circuit breaker.

Install it through the ArkTechNWA Claude Code marketplace or clone the repository into Claude Code's plugins directory. The marketplace command is `/plugin install arktechnwa/zsh-tool`; manual setup enables the plugin in `~/.claude/settings.json`.

It returns control after the configured yield period and keeps the command as an active task. Use `zsh_poll` for new output, `zsh_send` for stdin, `zsh_tasks` to list tasks, and `zsh_kill` to stop one.

Yes, enable PTY mode when calling `zsh`. PTY mode supports programs that require a terminal, exposes prompts, preserves terminal output behavior, and lets the agent provide responses with `zsh_send`.

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 PreviewZsh Tool AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/zsh-tool?style=directory)](https://allmcps.com/mcp/zsh-tool)
HTML Embed
<a href="https://allmcps.com/mcp/zsh-tool"><img src="https://allmcps.com/api/badge/zsh-tool?style=directory" alt="Zsh Tool on AllMCPs" /></a>