Skip to main content
Glama

zspace-cli

English · 简体中文

PyPI - Version PyPI - Python CI skyzhao1223/zspace-cli MCP server

Manage your 极空间 (ZSpace) NAS from the terminal or AI agents — no password, no SSH, no DDNS.

mcp-name: io.github.skyzhao1223/zspace-cli

Just keep the ZSpace desktop client logged in on macOS.

📖 How large-file sliced upload was born: 一次 1.4GB 备份引发的逆向 (zh, CSDN) · CLI guide: 极空间 NAS 命令行管理指南 (zh, CSDN)

Beginner guide (no coding required) · Skills — incl. 9 cross-NAS organizer skills for AI agents · 中文文档


Install

pip install zspace-cli        # base
pip install "zspace-cli[mcp]" # optional MCP support
zs check                      # ✓ reads the desktop client login state

Prerequisite: the ZSpace desktop client is running and logged in on macOS.


Related MCP server: rclone-mcp

Quick start

zs ls /sata11/my/data/影视
zs find "权力的游戏"                  # full-text search
zs tree /sata11/my/data -d 3
zs up ./本地文件.mp4 /sata11/my/data/影视   # upload
zs up ./本地文件.mp4 /sata11/my/data/影视 --verify  # upload + MD5 round-trip check
zs down /sata11/my/data/影视/某文件.mkv ./下载 # download
from zspace_cli import ZSpaceClient

with ZSpaceClient() as zs:
    for f in zs.ls("/sata11/my/data"):
        print(f"{'📁' if f.is_dir else '📄'} {f.name}")

CLI options

Command

Meaning

zs check

Verify the desktop client proxy is reachable

zs ls [path]

List directory (-a/--hidden, -l/--long)

zs info <path>

Detailed file/dir info

zs rename <path> <new>

Rename a file or directory

zs mv <src> <dest>

Move a file/directory

zs cp <src> <dest>

Copy a file/directory

zs mkdir <parent> <name>

Create a directory

zs rm <path>

Delete into the personal recycle bin (-f/--force skips confirmation). Pool space is not freed until zs recycle empty

zs find <keyword> [path]

Full-text search across the NAS

zs tree [path]

Tree view (-d/--depth N, default 2)

zs usage

Storage profile — physical usage per pool, per user, per category. The only view that includes Time Machine backups, other users' spaces, and Docker/RAID overhead (--refresh, --wait N)

zs du <path>...

Directory size via server-side statistics. Refuses to pass off a partial number as final when the NAS won't converge on a large tree; --walk forces an exact client-side traversal

zs bigfiles [path]...

Largest files, scanned server-side (--min-size MiB, --top N). Whole-library scan of 2.69M files took 2m41s versus 57 min for a client-side walk

zs disks

Per-disk free space, temperature, health, fragmentation, power-on hours, plus empty bays

zs smart [sn]

SMART report (--all for every disk)

zs recycle list

Recycle bin contents with original locations (--public for the shared bin)

zs recycle restore <name>

Restore items to their original location

zs recycle purge <name>

Permanently delete only the named items (-f/--force)

zs recycle empty

Purge the whole personal bin — irreversible, so it lists the contents first (--public, -f)

zs recycle config

Retention policy; -1 means never auto-purge (--my-cycle N, --public-cycle N)

zs up <local> <remote_dir>

Upload (-n/--name to rename; --verify for post-upload MD5 round-trip verification; large files auto-switch to sliced upload)

zs down <path> [dir]

Download

zs baidu check/ls/tasks/fails/retry

Baidu NetDisk via the NAS /znetdisk/* module (read side; retry mutates task state) — details

zs skill <dir>

Copy Agent skills into a project (--list, --only a,b)

zs --config-dir <dir>

Point at a non-default vuex.json location (or ZS_CONFIG_DIR)

zs check, zs ls, zs info, zs find, zs tree, zs usage, zs du, zs bigfiles, zs disks, zs smart, zs recycle list/config accept --json for machine-readable output. zs mv/zs cp/zs rm/zs down accept * ? glob patterns on the source path. zs baidu check/ls/tasks/fails also accept --json.

ls pages through large directories automatically (the NAS API returns at most 50 entries per call). find uses the NAS full-text index, so it searches across directories. Upload/download show a progress bar on a real terminal and stream the file (no full-file buffering). Pass --verify to zs up to download the uploaded file to a temporary directory and compare its MD5 with the local source; verification is opt-in because it doubles transfer. CJK paths work out of the box. Files above 64 MB are uploaded through the desktop client's sliced /v2/file/upload protocol (2 MB slices), because the local proxy rejects oversized single-request bodies with HTTP 413; a 413 on a smaller file falls back to slices automatically.


Features

Operation

CLI

SDK

MCP

List directory

zs ls [path]

client.ls(path)

zspace_ls

File info

zs info <path>

client.info(path)

zspace_info

Rename

zs rename <path> <name>

client.rename(path, name)

zspace_rename

Create dir

zs mkdir <parent> <name>

client.mkdir(parent, name)

zspace_mkdir

Move

zs mv <src> <dest>

client.move(src, dest)

zspace_move

Copy

zs cp <src> <dest>

client.copy(src, dest)

zspace_copy

Delete

zs rm <path>

client.remove(path)

zspace_remove

Search

zs find <keyword>

client.search(kw)

zspace_search

Tree view

zs tree [path]

client.tree(path)

zspace_tree

Upload

zs up <local> <dir>

client.upload(local, dir, verify=False)

zspace_upload

Download

zs down <path> [dir]

client.download(path, dir)

zspace_download

Health check

zs check

client.is_connected()

zspace_check

Storage pools

zs check

client.pool_info()

zspace_pool_info

Disk diagnostics

—

client.disk_stats()

zspace_disk_stats

Storage profile

zs usage

client.usage_summary()

zspace_usage

Directory size

zs du <path>

client.statistic(path) / client.walk_stat(path)

zspace_du

Largest files

zs bigfiles [path]

client.find_large(paths)

zspace_bigfiles

Per-disk health

zs disks

client.disks() / client.free_bays()

zspace_disks

SMART report

zs smart [sn]

client.smart(sn)

zspace_smart

Recycle bin (read)

zs recycle list/config

client.recycle_list() / client.recycle_config()

zspace_recycle_list / zspace_recycle_config

Recycle bin (write)

zs recycle restore/purge/empty

client.recycle_restore() / recycle_purge() / recycle_empty()

zspace_recycle_restore / zspace_recycle_purge / zspace_recycle_empty (confirm-gated)

Baidu NetDisk (read side)

zs baidu check/ls/tasks/fails/retry

client.baidu_*()

—


Use with AI agents (Skills)

zs skill --list                           # see what's available
zs skill ~/your-project/.cursor/skills/   # install all (Cursor)
# zs skill ~/your-project/skills/         # Claude Code, etc.
zs skill ~/your-project/skills/ --only nas-report,photo-organizer   # or pick a few

Then tell your agent things like "list the files in /sata11/my/data". The skills ship inside the wheel, so zs skill works on any machine that has zspace-cli installed.

Besides zspace-nas (the zero-config base for ZSpace file ops), zs skill installs a family of 9 cross-NAS organizer skills. Their scanners are pure-stdlib and run on any mounted path (SMB/NFS), so they work with ZSpace, Synology, QNAP, UGREEN, etc. All follow the same read-only pattern: scan → the LLM drafts an old→new plan → you confirm → the agent executes (deletes always quarantine first).

Skill

What it does

nas-report

🧭 Entry point: whole-disk storage profile + routes you to the right specialist skill

file-sorter

🧹 Any mixed pile: recognizes 255 extensions across 15 categories (photos / video / audio / docs / ebooks / archives / installers / fonts / code / design sources / CAD drawings / disk images…), computes each old → new path, and knows 135 folder-name aliases (simplified + traditional Chinese + English) so an already-sorted library is never re-sorted. Never breaks up project folders by default

photo-organizer

Photos/videos: file by shoot date (--exif reads the real capture date via exiftool, or mdls on macOS), screenshots/WeChat images, burst de-dup

music-organizer

Music: Artist/Album/Track structure, track numbers, covers, built-in ID3v2 parsing

work-organizer

Work files: archive loose files, version chaos, copies, stale-file archiving

portfolio-organizer

Portfolio: project structure, cover/README, separate finals from sources

download-cleaner

Downloads: triage & clean (partials/torrents/installers/archives/unsorted media)

dedup-finder

Content-level exact de-dup (3-stage fingerprint size→head→full sha1, zero false positives)

backup-auditor

Backup health: version rotation, staleness, coverage check

Start with nas-report to see the big picture, then run whichever specialist it recommends. The most common combo is dedup-finder + file-sorter. De-duping first is recommended — you skip moving bytes you're about to delete, and you avoid same-name collisions — but the reverse order misses nothing: de-dup is content-level and independent of directory layout (verified: both orders find the identical duplicate groups). file-sorter reports suspected copies: X MB (N% of the bytes to move) so you can decide by the number instead of by a rule. See skills/README.md for the full list. Media-library naming stays a separate project: media-manager-skill.


How it works

ZSpace has no official CLI or public API. zspace-cli talks to the desktop client's local proxy, so it works behind NAT as long as the client is online:

Skill / zs / SDK / MCP  →  127.0.0.1:13579 (desktop client proxy)  →  NAS

Disclaimer — This is an unofficial, community-maintained project, not affiliated with or endorsed by ZSpace (极空间). It relies on the desktop client's local proxy interface, which is not officially documented. It only reads the login state of your own account on your own machine — it does not bypass authentication, crack encryption, or touch anyone else's data. Use at your own risk; make sure your use complies with the ZSpace user agreement and your local laws.

Platform support

Works on any OS where the ZSpace desktop client exposes its local proxy on 127.0.0.1:13579. The login state (vuex.json) is auto-detected:

Platform

Default location

macOS

~/Library/Application Support/zspace/vuex.json

Windows

%APPDATA%\zspace\vuex.json (also tries %LOCALAPPDATA%, %USERPROFILE%)

Linux

~/.zspace/vuex.json, ~/.config/zspace/vuex.json (best-effort)

If the client stores it elsewhere, point the CLI/SDK at it explicitly:

zs --config-dir ~/path/to/zspace-config check
ZS_CONFIG_DIR=~/path/to/zspace-config zs check   # or as an env var

Windows/Linux config locations are best-effort guesses (not verified against a real client). If auto-detection misses yours, please open an issue with the actual path so it can be added.

Windows on ARM — some [mcp] dependencies (e.g. cryptography) don't ship ARM64 wheels for every version, so pip install "zspace-cli[mcp]" may try to build them from source (slow, or fails without Rust). Force prebuilt wheels: pip install --only-binary=:all: "zspace-cli[mcp]".

MCP configuration (optional)

{
  "mcpServers": {
    "zspace": { "command": "zs-mcp", "args": [] }
  }
}

Docker (headless)

Multi-arch images (linux/amd64, linux/arm64) are published to GHCR on every release, so there is nothing to build:

docker pull ghcr.io/skyzhao1223/zspace-cli:latest   # or pin a release, e.g. :0.1.9
docker run --rm --network host \
  -e ZS_BASE_URL=http://127.0.0.1:13579 \
  -e ZS_CONFIG_DIR=/config \
  -v "$HOME/Library/Application Support/zspace:/config:ro" \
  ghcr.io/skyzhao1223/zspace-cli zs check

The image's default command is zs-mcp, so an MCP client can run ghcr.io/skyzhao1223/zspace-cli directly to start the server; pass zs … to use the CLI instead. Tags are latest plus each release version.

To run the CLI / MCP server in a container against the desktop client proxy on the host via compose — no desktop client needed inside the image:

export ZS_CONFIG_HOST_DIR="$HOME/Library/Application Support/zspace"   # macOS
# export ZS_CONFIG_HOST_DIR="$APPDATA/zspace"                          # Windows
# export ZS_CONFIG_HOST_DIR="$HOME/.zspace"                            # Linux
docker compose build
docker compose run --rm zspace-cli zs check
docker compose run --rm zspace-cli zs ls /sata11/my/data

It mounts the host's ZSpace config read-only (ZS_CONFIG_HOST_DIR) and points ZS_BASE_URL at the host via host.docker.internal. On Linux hosts, either use network_mode: host or the included extra_hosts mapping. To build the image yourself instead of pulling it from GHCR:

docker build -t zspace-cli .
docker run --rm --network host \
  -e ZS_BASE_URL=http://127.0.0.1:13579 \
  -e ZS_CONFIG_DIR=/config \
  -v "$HOME/Library/Application Support/zspace:/config:ro" \
  zspace-cli zs check

Globbing

rm / mv / cp / down accept glob patterns (*, ?, [...], **) that are expanded on the NAS:

zs rm "/sata11/my/data/影视/*.mkv" --force
zs cp "/sata11/my/data/**/*.mp4" /sata11/my/data/movies
zs down "/sata11/my/data/photos/*.jpg" ./photos

Or via the SDK: client.glob("/sata11/my/data/**/*.mkv").


API reference

Endpoint

Key Parameters

/v2/file/list

path, show_hidden, start, limit

/v2/file/info

path

/v2/file/modify

path, newname

/v2/file/newdir

parent, name, rename=0

/v2/file/move / copy

paths[], to

/v2/file/remove

paths[]

/v2/file/create

binary body, header path as UTF-8 bytes (small-file upload; proxy returns 413 above a size cap)

/v2/file/upload

sliced upload: query uuid=md5(mtime_ms+size+target_path), headers seek/split=1/size/path per 2 MB slice

/v2/file/download

GET path, remote_port=8050

/file_search/file_search

keyword

Note: the interface parameter names are non-standard (parent / to instead of path / dest) — documented by the community from the desktop client's behavior.


Repository layout

zspace-cli/
├── src/zspace_cli/
│   ├── cli.py         # Typer CLI (zs ...)
│   ├── client.py      # ZSpaceClient SDK (retry / stream / progress)
│   ├── auth.py        # vuex.json auto-detection + credential cache
│   ├── mcp_server.py  # MCP tools (zs-mcp)
│   └── skills/        # packaged skill copies shipped in the wheel (keep in sync!)
├── skills/            # skill sources — the source of truth (edit here)
├── scripts/mcp_smoke.py
├── tests/             # pytest (CLI + SDK + MCP + auth)
└── promo/             # launch/promo material (submodule)

Integrations

Pair zspace-cli with Jellyfin / Emby / MoviePilot / MCP clients / Docker and media-manager-skill for media library tooling.

For cloud-drive → NAS pipelines, combine with baidu-pan-skill: it downloads Baidu NetDisk (百度网盘) share links reliably (cookie extraction, transfer-save, resumable chunked downloads, structural verification), then zs up takes over for the sliced large-file upload to the NAS. Both ship as agent skills, so one prompt can drive the whole backup.


Roadmap

  • File upload/download

  • Linux / Windows client auth (best-effort path detection + ZS_CONFIG_DIR)

  • Docker headless option (ZS_BASE_URL + docker-compose.yml)

  • Pre-built multi-arch images on GHCR (ghcr.io/skyzhao1223/zspace-cli, published per release)

  • Batch glob helpers (glob() + zs rm/mv/cp/down patterns)

  • Agent skill family: 9 cross-NAS organizers (incl. file-sorter for generic type-based archiving) + nas-report entry, selective install (zs skill --list/--only)

  • Optional EXIF-based photo dating (photo-organizer --exif: exiftool → mdls → mtime fallback) — #14

  • Per-skill config overrides (skills/<name>/config.json: whitelist dirs / extension rules) — #15 · shipped for all 8 scanners (nas-report deliberately excluded). The key set differs per skill and whitelist_dirs has four distinct effects across five of them — see the family table in skills/README.md

  • Growth-trend reports (nas-report diff two snapshots: category/dir growth, rate & ETA) — #16


Contributing

PRs welcome — see CONTRIBUTING.md for dev setup, quality gates, and the skill-authoring guide (including the skills/ ↔ src/zspace_cli/skills/ dual-copy sync rule that CI enforces).

Unofficial community project, not affiliated with or endorsed by ZSpace/极空间. It automates your own logged-in desktop client on your own machine — no passwords handled, no service gates bypassed (membership-gated features are documented as gated, never worked around). API notes are interoperability documentation of observed client behavior and may break with client updates. Concerns or takedown requests: skyzhao1223@users.noreply.github.com — legitimate requests are answered promptly. Source archives ship with every GitHub Release; the maintainer keeps off-platform git bundle mirrors.

License

MIT

Available Tools

24 tools
zspace_bigfilesFind the largest files (server-side scan)A
Read-only

List the largest files under the given directories, biggest first.

Use to find cleanup candidates. The NAS scans server-side, which is far faster than walking: a 7k-file tree returns in ~2 seconds versus ~765 requests and ~10 seconds client-side. Returns {complete, scanned, matched, files: [{name, path, bytes, modify_time}]}.

There is a single shared task slot, so this call clears any stale task before starting one; that is harmless but means two concurrent bigfiles scans would interfere. Check complete -- if the timeout elapsed the results are partial. Read-only.

For a directory's total size use zspace_du; for pool-level accounting use zspace_usage.

Inputs: paths (required), top, min_size_mib. Returns: object

zspace_checkCheck ZSpace NAS connectionA
Read-only

Check whether the ZSpace NAS is reachable through the local desktop client proxy and, if so, return a summary of storage pools.

Call this first to verify the proxy at 127.0.0.1:13579 is online before running other file operations. Returns {"connected": true, "pools": [{name, total_tb, free_tb}]} when the NAS responds, or {"connected": false} when it does not. Never modifies NAS state.

Unlike zspace_pool_info, this is a connectivity probe that happens to include a pool summary; use pool_info when you only need capacity.

Inputs: no named parameters. Returns: object

zspace_copyCopy files or directoriesA

Copy one or more files/directories on the NAS into a destination folder.

Use to duplicate media or create backups without removing the originals. Accepts a single path or a list; the destination must already exist (create it with zspace_mkdir). Returns {status: "copied", paths, to}. Mutates NAS state but leaves the sources untouched.

The non-destructive counterpart of zspace_move — pick copy when the original must stay where it is, move when it should not. Copies consume additional capacity; check zspace_pool_info first for large trees.

Inputs: to (required), paths (required). Returns: object

zspace_disksPer-disk capacity, health and free baysA
Read-only

Report every physical disk: free space, temperature, health, SMART counters, fragmentation and power-on hours, plus how many bays are empty.

Use before recommending a drive purchase or when a pool is nearly full -- pool-level free space can be misleading, since in a ZDR pool the space may all sit on one spindle while another is effectively full (observed: a pool reporting 476 GiB free had one disk with only 59.8 GiB left).

Returns {free_bays: {sata, nvme, esata}, disks: [{pool, position, model, sn, dev_type, total_bytes, free_bytes, used_pct, temp_c, health, power_on_hours, reallocated_sectors, fragment_pct, suspected_smr}]}. Read-only.

Tip: power_on_hours greater than the hours since the disk was installed means the drive was previously used elsewhere. For full SMART attributes use zspace_smart; for pool totals use zspace_usage.

Inputs: no named parameters. Returns: object

zspace_disk_statsGet disk statisticsA
Read-only

Return raw disk statistics reported by the ZSpace NAS.

Use for diagnostics and health monitoring (I/O, capacity, SMART-style counters as exposed by the NAS API). Returns the raw stats object. Read-only; never modifies NAS state.

Unlike zspace_pool_info, the shape is whatever the NAS API exposes and is not normalized — choose pool_info for "how much free space", this one for "is a disk unhealthy".

Inputs: no named parameters. Returns: object

zspace_downloadDownload file from NASA
Read-only

Download a file from the ZSpace NAS to a local directory.

Use to pull media or documents off the NAS. The local_dir must already exist. Returns {saved_to: ""}. Does not modify NAS state.

NAS -> local, the inverse of zspace_upload. Unlike upload this never changes anything on the NAS, so it is safe to retry; an existing local file of the same name is overwritten.

Inputs: remote_path (required), local_dir. Returns: object

zspace_duDirectory size and file countA
Read-only

Get the size, file count and directory count of one NAS directory.

Returns {path, bytes, files, dirs, state, complete, source, categories}.

Always check complete before reporting the numbers. The server-side statistic is instant and exact for small-to-medium trees, but on large ones the NAS returns state="running" with a partial snapshot that never converges -- measured on a 1.175 TiB / 448k-file folder, fourteen consecutive calls all reported ~0.35 TiB with the file count jittering between 27k and 30k. There is no poll endpoint that works, so when complete is false either pass walk=true or tell the user the figure is a lower bound. Never present a partial number as the answer.

walk=true traverses via /v2/file/list at roughly one request per directory; a 448k-file tree needs ~93k requests and ~12 minutes. Read-only.

Do not cross-check this against a du run on an SMB mount and assume one of them is broken. The mount exposes directories the file API cannot see at all -- notably "@Recycle", the same recycle bin that zspace_recycle_list reads as "/.recycle/my" -- so a mount-side count includes recycled data this tool correctly excludes. Mount-side scans must skip "@Recycle" (and ".zspace_trash"); counting it inflates totals without raising any error.

For whole-pool accounting use zspace_usage; to list individual large files use zspace_bigfiles.

Inputs: path (required), walk. Returns: object

zspace_infoGet file or directory infoA
Read-only

Return detailed metadata for one file or directory on the ZSpace NAS.

Use when you need more than the ls summary exposes (permissions, timestamps, exact size, type details). Returns the raw info object from the NAS API. Read-only; the path must already exist.

One path only — use zspace_ls to enumerate a directory, or zspace_search to locate an item first.

Inputs: path (required). Returns: object

zspace_lsList directory contentsA
Read-only

List the contents of a directory on the ZSpace NAS at the given path.

Use to browse files, locate items, or pick targets for later move/copy operations. Large directories are paginated automatically (the NAS API returns at most 50 entries per call). Returns a list of {name, path, is_dir, size} objects. Read-only; pass show_hidden=True to include hidden entries.

Flat and one level deep: use zspace_tree for nested structure, zspace_search when you know a name but not the location, and zspace_info for full metadata on one path you already have.

Inputs: path, show_hidden. Returns: object

zspace_mkdirCreate directoryA

Create a new directory on the ZSpace NAS under the given parent.

Use to prepare a destination before moving files into it. name is the bare basename, not a path. Fails if a directory of that name already exists. Returns the created {name, path}. Mutates NAS state.

zspace_move and zspace_copy both require the destination to exist already, so call this first when reorganizing into a new folder.

Inputs: name (required), parent (required). Returns: object

zspace_moveMove files or directoriesA

Move one or more files/directories on the NAS into a destination folder.

Use to reorganize files, e.g. sort media into per-genre folders. Accepts a single path or a list; the destination must already exist (create it with zspace_mkdir). Returns {status: "moved", paths, to}. Mutates NAS state; sources are removed from their original location.

Choose move vs copy by whether the originals should survive: copy keeps them, move does not. To change only the name within the same directory, use zspace_rename instead.

Inputs: to (required), paths (required). Returns: object

zspace_pool_infoGet storage pool infoA
Read-only

List every storage pool on the ZSpace NAS with its name and capacity.

Use to inspect free space before an upload or to report total capacity. Returns a list of {name, total_tb, free_tb} objects, one per pool. Read-only; never modifies NAS state.

Prefer this over zspace_disk_stats for capacity questions: it returns normalized per-pool numbers, whereas disk_stats returns the NAS's raw diagnostics object. Use zspace_check instead if you need to know whether the NAS is reachable at all.

Inputs: no named parameters. Returns: object

zspace_recycle_configRecycle bin retention policyA
Read-only

Read the recycle bin retention policy: {my_cycle, public_cycle} in days.

-1 means never auto-purge, which is the factory default -- so deleted data keeps occupying pool space indefinitely until something empties the bin. If a user reports that deleting files did not free space, check this first. Read-only; there is deliberately no MCP tool for changing it.

Inputs: no named parameters. Returns: object

zspace_recycle_emptyEmpty an entire recycle binA
Destructive

Permanently purge an entire recycle bin. Irreversible, and this is the only way deleted files actually stop occupying pool space.

Two things make this easy to get wrong. First, the personal and public bins are separate stores: emptying the public bin after deleting from a personal space succeeds with total_num=0 and frees nothing. Second, it purges EVERYTHING in that bin, not just what the current task deleted.

Always call zspace_recycle_list first, show the user the contents, and get their agreement. Requires confirm=true. Returns the server task summary {total_num, succeed_num, fail_num, total_size} -- verify total_num is non-zero before claiming space was freed. Use zspace_recycle_purge to remove specific items instead.

Inputs: public, confirm. Returns: object

zspace_recycle_listList recycle bin contentsA
Read-only

List what is currently in a recycle bin, including each item's original location.

Always call this before zspace_recycle_empty -- emptying purges every item in the bin, including files deleted earlier by other means, and is irreversible. The personal and public bins are separate stores; files deleted from //my/data land in the personal one.

The listing triggers a server-side scan and this call waits for it to settle, so an in-progress scan is not mistaken for an empty bin. Returns {bin, total, items: [{name, path, original_path, is_dir, bytes}]}. The path is the in-bin location and is what zspace_recycle_restore and zspace_recycle_purge need. Read-only.

Naming: this tool reaches the bin through the API, where it is "/.recycle/my". The same bin is visible on an SMB mount as a directory called "@Recycle" at the share root (plus a ".zspace_trash" variant), which is outside //my/data and therefore not readable through the file API at all. If you are also running scripts against a mounted path -- the skills/ scanners do exactly that -- they must skip "@Recycle", or recycled files get counted as live data. That miscount raises no error, it just quietly inflates totals; it survived in 8 of the 9 scanners before being caught. Do not try to list "@Recycle" through this API to cross-check: it returns N001411 for every path outside my/data whether or not it exists, so that response tells you nothing.

Inputs: limit, public. Returns: object

zspace_recycle_purgePermanently delete specific recycle bin itemsA
Destructive

Permanently delete only the named items from the personal recycle bin, leaving everything else untouched. Irreversible.

Prefer this over zspace_recycle_empty whenever the goal is to free the space held by specific files: the bin may also contain items the user did not put there. Call zspace_recycle_list first and show the user what will be destroyed. Requires confirm=true; without it the call is refused and nothing happens. Returns {purged, failed}.

Inputs: paths (required), confirm. Returns: object

zspace_recycle_restoreRestore files from the recycle binA

Restore items from the personal recycle bin to their original locations.

Paths must be the in-bin paths reported by zspace_recycle_list, not the original locations. Returns {restored, failed}. Restores data rather than removing it, so this is the recovery path after an accidental zspace_remove -- but it only works while the bin has not been emptied.

Inputs: paths (required). Returns: object

zspace_removeDelete files or directoriesA
Destructive

Permanently delete one or more files/directories from the ZSpace NAS.

Use only when you are sure the items are no longer needed — deletion is immediate and NOT recoverable. Accepts a single path or a list. Returns {status: "removed", paths}. Marked destructive: confirm intent before calling.

There is no trash or undo: zspace_move is the reversible alternative when the goal is only to get items out of the way. Confirm the exact paths with zspace_ls or zspace_search before calling, and never pass a pool root.

Inputs: paths (required). Returns: object

zspace_renameRename file or directoryA

Rename one file or directory on the ZSpace NAS, keeping it in place.

Use to fix a name without changing location; the parent directory stays the same. new_name is the bare basename, not a path. Returns the updated {name, path}. This mutates NAS state; it cannot be undone.

Same-directory only — use zspace_move to relocate to a different parent (move also accepts several paths at once, rename does not).

Inputs: path (required), new_name (required). Returns: object

zspace_smartSMART attribute report for one diskA
Read-only

Return the full SMART attribute table for one disk.

The endpoint is keyed on serial number -- passing a pool id or a /dev name returns N300403. Get serials from zspace_disks first. Returns {health, attributes: [{id, attr_name, en_attr_name, now_value, worst, thresh, str_value, health}]}; the server also supplies warning/fault text per attribute. NVMe drives report no classic attributes. Read-only.

Focus on ids 5 (reallocated), 187 (reported uncorrectable), 197 (current pending), 198 (offline uncorrectable) and 199 (UDMA CRC) -- those are the ones that predict failure. For a quick health overview use zspace_disks.

Inputs: sn (required). Returns: object

zspace_treeShow directory treeA
Read-only

Return a nested tree view of a directory on the ZSpace NAS.

Use to understand overall folder structure before deep operations. depth caps recursion (default 2). Returns the nested tree structure as exposed by the NAS API. Read-only.

Nested rather than flat: use zspace_ls for a single level with sizes, or zspace_search when you are looking for a name rather than a layout.

Inputs: path, depth. Returns: object

zspace_uploadUpload local file to NASA

Upload a file from the local machine to a directory on the ZSpace NAS.

Use to push media or documents to the NAS. remote_dir must already exist (create it with zspace_mkdir); pass new_name to rename it on arrival. Returns the upload result from the NAS API. Mutates NAS state; a file with the same name is overwritten.

Local -> NAS, the inverse of zspace_download. Files above 64 MB go through the desktop client's sliced upload protocol (2 MB slices) automatically, because the local proxy rejects oversized single-request bodies with HTTP 413. Check zspace_pool_info for free space before large uploads.

Inputs: local_path (required), remote_dir (required), new_name. Returns: object

zspace_usageStorage profile by pool, user and categoryA
Read-only

Report where physical disk space actually goes on the ZSpace NAS.

Use this FIRST for any "is my NAS full?" or "what is using my space?" question. It is the only view that includes Time Machine backups, other users' spaces, the safe box, Docker, RAID metadata and the recycle bins -- every one of those is outside //my/data and returns N001411 to file listing, so walking the file tree systematically under-reports pool usage (measured: a full 57-minute walk of 2.69M files accounted for only 4.84 TiB of a 7.97 TiB pool).

Returns per pool: total/used/free bytes, used_pct, and entries of {kind, owner, label, label_cn, bytes} sorted largest first, where label is one of my / my_tm (Time Machine) / my_recycle / my_safe / sys_docker / sys_raid / sys_vm / sys_iscsi / sys_other. Read-only.

The my_recycle entry is the recycle bin's physical footprint, so this is the cheap way to see how much space deleted-but-not-purged data is holding before deciding whether to list or empty it. Also note these are physical sizes: my includes the second copy of every double-backed-up folder, whereas a file-level walk (zspace_du) reports logical sizes. The walk therefore comes out lower by exactly the mirrored bytes -- measured on one pool as 4.838 TiB walked vs 6.008 TiB reported here, the 1.17 TiB gap being the double-written folder. Neither number is wrong; they measure different things.

If you compare these figures against a scan run on an SMB mount, expect a mismatch: the mount exposes "@Recycle" and other directories the file API cannot see, and a mount-side scan that fails to skip "@Recycle" counts recycled data as live. That inflates totals silently rather than erroring.

For the size of one specific directory use zspace_du instead; for per-disk health use zspace_disks.

Inputs: refresh. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 24 tools

    Disambiguation4/5

    Descriptions go to extraordinary lengths to cross-reference and steer between tools (e.g. pool_info vs disk_stats vs check, ls vs tree vs search, move vs copy vs rename, purge vs empty), which resolves most overlaps. However, a cluster of 6-8 tools (pool_info, check, disk_stats, usage, disks, smart, du, bigfiles) all answer varying flavors of 'capacity/health' questions and remain easy to mis-pick despite the guidance.

    Naming Consistency4/5

    All 24 tools share a uniform zspace_ prefix and snake_case, with the recycle family (list/restore/purge/empty/config) being especially tidy. Minor deviation: many names are noun phrases (du, disks, smart, info, usage, bigfiles) rather than the verb_noun style used elsewhere (upload, download, mkdir, remove), so the convention is consistent but not purely verb-first.

    Tool Count4/5

    24 tools is at the heavy end but the domain genuinely spans file operations, recycle-bin management, and disk/space diagnostics, and nearly every tool has a defensible role. There is some redundancy in the capacity/health cluster (pool_info, check, disk_stats, disks), which keeps it from a 5.

    Completeness4/5

    File lifecycle is well covered (ls, info, search, tree, mkdir, rename, move, copy, remove, upload, download), the recycle bin has full list/restore/purge/empty coverage, and disk/space accounting is thorough. Minor gaps: no permissions/chmod tool, no direct file-content write beyond upload, and recycle policy is intentionally read-only.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      A powerful, security-hardened MCP server for intelligent file organization. Provides high-level atomic tools for organizing files into categories, detecting duplicates, extracting EXIF/ID3 metadata, scheduling automatic organization, and more — for use with Claude, Cursor, and Gemini CLI.
      26
      119 npm
      46
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for the Rclone RC API. Gives AI assistants the ability to manage cloud storage remotes, copy/sync files, list directories, and more — all through natural language.
      56
      513 npm
      13
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents like Claude Code to directly control a ZSpace NAS with 90 tools for file management, media, notes, cloud disks, and more.
      39
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A single-file MCP server that turns any folder into a workspace for AI agents, enabling file operations, code search, shell commands, background jobs, HTTP testing, headless browsing, PDF extraction, and screen capture.
      -