Skip to main content
Glama
README.md
# cascade-mcp

Zero-configuration dynamic **SSH** and **Docker** remote development Model Context Protocol (MCP) server with streaming transfer and process control.

Ported from the Pi Cascade extension into a standalone, universal MCP server.

## Key Features

- **Zero Setup Remote Operations**: Connect to local/remote Docker containers, SSH servers, and nested multi-layer chains (e.g. `ssh:jump-host|docker:my-container`) without installing Python, Node.js, or daemons on target hosts.
- **Self-contained Go Helper**: Automatically probes remote Linux architecture (`amd64` / `arm64`) and injects a standalone statically linked helper with `pidfd`/`procfs` child process control.
- **Full Remote Toolset**: Read, write, edit, bash execution, directory listing, glob finding, text grepping, and bidirectional streaming file copy.
- **Adaptive Compression**: Fast file copy with automatic zstd compression and streaming backpressure.
- **Universal MCP Compatibility**: Seamlessly integrates with Codex, Claude Desktop, Cursor, Zed, and any MCP-compliant AI assistant via standard I/O (stdio).

## Quick Start

You can run the server directly from GitHub without manual cloning or building:

```bash
npx -y github:cheng6563/cascade-mcp
```

### MCP Client Configuration

#### Codex / Claude Desktop (`mcpServers` config)

Add to your MCP configuration file (e.g. `~/.codex/config.toml` or Claude desktop `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "cascade": {
      "command": "npx",
      "args": ["-y", "github:cheng6563/cascade-mcp"]
    }
  }
}
```

Or for Codex `config.toml`:

```toml
[mcp_servers.cascade]
command = "npx"
args = ["-y", "github:cheng6563/cascade-mcp"]
```

## Available Tools

| Tool | Description |
| --- | --- |
| `cascade_target` | Discover, open, close, and manage target connections (`action: "list" \| "open" \| "close" \| "handles" \| "status" \| "forget" \| "disconnect"`). |
| `cascade_remote_bash` | Execute shell commands in target environments with stdout/stderr capture and cancellation. |
| `cascade_remote_read` | Read remote files with offset and line limits. |
| `cascade_remote_write` | Write content to remote files (auto-creates parent directories). |
| `cascade_remote_edit` | Apply exact, unambiguous search-and-replace text edits. |
| `cascade_remote_ls` | List directory contents with file sizes and directory indicators. |
| `cascade_remote_find` | Search files on the remote filesystem by glob pattern. |
| `cascade_remote_grep` | Search text patterns within files on the target. |
| `cascade_remote_copy` | Bidirectional streaming file upload and download with zstd compression. |
| `cascade_remote_mount` | Mount a local Windows directory onto an SSH target, or unmount it. |

## License

MIT License

TDQS

A3.7/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a distinct purpose: target lifecycle (cascade_target) versus remote file/command operations (read, write, edit, bash, ls, find, grep, copy). Descriptions clarify handle requirements and action semantics, leaving no overlapping boundaries.

Naming Consistency5/5

All tools follow a predictable snake_case pattern with the cascade_ prefix, using clear action suffixes. cascade_target groups target management while cascade_remote_* groups remote operations, a consistent and readable convention.

Tool Count5/5

Nine tools are well-scoped for remote target access and manipulation. The multi-action cascade_target consolidates lifecycle operations, avoiding unnecessary tool proliferation while each remote operation earns its place.

Completeness4/5

Core remote read/write/edit/bash/ls/find/grep/copy and target lifecycle actions are covered. Minor gaps exist—no explicit remote delete, move, or stat operations—but agents can work around these via bash, so the surface is largely complete.