---
title: WS Commander MCP Server Setup & 30-Tool Parameter Reference
description: Wire Claude Code, Claude Desktop, and OpenAI Codex to safe local macOS file operations via wsc mcp with full parameters, security model, owner-only Unix socket, and off-by-default switches.
canonical: https://wscommander.com/docs/mcp-server
last-updated: 2026-12-05
---

# WS Commander MCP Server Setup & 30-Tool Reference

Wire Claude Code, Claude Desktop, and OpenAI Codex to safe local macOS file operations with `wsc mcp`. Thirty typed tools communicate strictly over an owner-only `0600` Unix domain socket with zero TCP listeners, zero API keys, three off-by-default permission switches, and full `automation-audit.jsonl` logging.

## 1. Step-by-Step Setup

1. Install **WS Commander** `v1.0.12 Beta` (`WS-Commander-1.0.12-universal-notarized.zip`, `SHA-256: fec8f3e3c1400a987ed9d77c06ce6b250053349d03a14f9efb5edc56be9e3ad1`) into `/Applications` and launch it.
2. Open **WS Commander -> Settings -> Automation** and turn on only the permission switches you want (all three default to off).
3. Register the bundled stdio MCP bridge (`wsc mcp`):

```bash
# Claude Code (user scope)
claude mcp add --transport stdio --scope user ws-commander -- \
  "/Applications/WS Commander.app/Contents/Resources/bin/wsc" mcp

# OpenAI Codex CLI
codex mcp add ws-commander -- \
  "/Applications/WS Commander.app/Contents/Resources/bin/wsc" mcp
```

Claude Desktop (`~/Library/Application Support/Claude/claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "ws-commander": {
      "command": "/Applications/WS Commander.app/Contents/Resources/bin/wsc",
      "args": ["mcp"]
    }
  }
}
```

OpenAI Codex (`~/.codex/config.toml`):

```toml
[mcp_servers.ws-commander]
command = "/Applications/WS Commander.app/Contents/Resources/bin/wsc"
args = ["mcp"]
```

4. Optionally install `wsc guard` rules so agents cannot fall back to raw shell `rm`, `mv`, `cp`, `scp`, `sftp`, or `rsync`:

```bash
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install claude-code --dry-run
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install claude-code
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install codex
```

## 2. Security

- **Owner-only Unix socket:** `~/Library/Application Support/Wscommander/ipc/api.sock` (`0600` inside `0700` dir); zero TCP or network ports opened.
- **Zero API key requirement:** OS file ownership authenticates local clients without storing static API tokens in env vars.
- **Three off-by-default switches:** *Enable local automation API*, *Allow file changes*, and *Allow destructive operations without confirmation*. Revoking switches halts queued/running agent writes immediately (`Stopped: permission revoked`).
- **Protected roots & human confirmation:** `trash` and `delete` pause for confirmation in the app (`awaitingConfirmation`) unless Switch 3 is enabled; `/`, OS system folders, volume roots, and `$HOME` (resolved through symlinks) are always refused.
- **Keychain & audit trail:** Remote passwords stay in Keychain and are never exposed; every call appends to `~/Library/Application Support/Wscommander/automation-audit.jsonl`.

## 3. Typed Path Objects

- **Local:** `{ "type": "local", "path": "/Users/alice/Documents/Report.pdf" }`
- **Archive:** `{ "type": "archive", "archive": "/Users/alice/Downloads/bundle.zip", "path": "docs/notes.md" }`
- **Connected Remote:** `{ "type": "remote", "profile": "prod-sftp", "path": "/var/www/releases/app.tar.gz" }`

## 4. Complete 30-Tool Parameter Reference (`*` required, `?` optional)

| Tool (`method`) | Scope & Switch | Parameters | Default | Description |
| --- | --- | --- | --- | --- |
| `get_state` (`app.state`) | Read · Switch 1 | `None` | Off | Active/inactive pane locations, tabs, cursor, selection counts, and permissions. |
| `list_directory` (`pane.list`) | Read · Switch 1 | `pane?`, `location?`, `offset?`, `limit?`, `includeHidden?` | Off | List entries of a pane or any local, archive, or connected remote folder. |
| `get_selection` (`pane.selection`) | Read · Switch 1 | `pane*`, `offset?`, `limit?` | Off | Marked entries and cursor entry of target pane. |
| `get_file_info` (`file.info`) | Read · Switch 1 | `path*` | Off | Kind, size, timestamps, POSIX mode, owner/group, and symlink target. |
| `read_text_file` (`file.readText`) | Read · Switch 1 | `path*`, `offset?`, `maxBytes?`, `encoding?` | Off | Read bounded UTF/text slice (up to 1 MiB/call); refuses binary files. |
| `search_start` (`search.start`) | Read · Switch 1 | `roots?`, `pane?`, `name?`, `nameRegex?`, `content?`, `contentRegex?`, `caseSensitive?`, `maxDepth?`, `maxResults?` | Off | Start async Find Files job below roots or pane folder; returns `searchId`. |
| `search_results` (`search.results`) | Read · Switch 1 | `searchId*`, `offset?`, `limit?` | Off | Poll search job status (`running`, `finished`, `cancelled`, `failed`) and matches. |
| `search_stop` (`search.stop`) | Read · Switch 1 | `searchId*` | Off | Stop a running search job while preserving collected matches. |
| `checksum` (`checksum.compute`) | Read · Switch 1 | `path*`, `algorithm?` | Off | Compute hex digest (`sha256`, `crc32`, `md5`, `sha1`, `sha384`, `sha512`, `sha3-256`, `sha3-512`, `blake3`). |
| `compare_directories` (`compare.directories`) | Read · Switch 1 | `left*`, `right*`, `recursive?`, `compareContents?`, `dateToleranceSeconds?`, `include?`, `includeIdentical?`, `direction?`, `limit?` | Off | Diff two local folders and preview sync copy plan read-only. |
| `list_operations` (`operation.list`) | Read · Switch 1 | `None` | Off | List queued, running, paused, awaiting-confirmation, and completed queue operations. |
| `get_operation` (`operation.status`) | Read · Switch 1 | `operationId*` | Off | Inspect progress, bytes copied, conflicts, and per-item outcomes. |
| `list_commands` (`command.list`) | Read · Switch 1 | `None` | Off | List command IDs, live availability, and `run_command` allow-list state. |
| `list_remote_profiles` (`remote.profiles`) | Read · Switch 1 | `None` | Off | List FTP/SFTP profile IDs, hosts, ports, usernames, and connection state. |
| `navigate_pane` (`pane.navigate`) | View · Switch 1 | `pane*`, `location?`, `action?`, `select?`, `timeoutMs?` | Off | Open location or run `up`, `home`, `back`, `forward`, `refresh`. |
| `activate_pane` (`pane.activate`) | View · Switch 1 | `pane*` | Off | Focus `left`, `right`, `active`, or `inactive` pane. |
| `select_entries` (`pane.select`) | View · Switch 1 | `pane*`, `mode*`, `names?`, `pattern?` | Off | Mark/unmark via `replace`, `add`, `remove`, `all`, `none`, or `invert`. |
| `open_tab` (`tab.open`) | View · Switch 1 | `pane*`, `location?`, `timeoutMs?` | Off | Open a new folder tab in the specified pane. |
| `close_tab` (`tab.close`) | View · Switch 1 | `pane*`, `index?` | Off | Close tab by index or active tab (refuses closing the final tab). |
| `select_tab` (`tab.select`) | View · Switch 1 | `pane*`, `index*`, `timeoutMs?` | Off | Focus an existing tab by zero-based index. |
| `run_command` (`command.run`) | View · Switch 1 | `id*` | Off | Invoke allow-listed non-mutating UI/view/sort commands only. |
| `copy` (`operation.copy`) | Change · Switch 2 | `sources*`, `destination*`, `name?`, `onConflict?` | Off | Queue copy/extract/upload/download (`ask`, `skip`, `keepBoth`, `overwrite`, `overwriteOlder`). |
| `move` (`operation.move`) | Change · Switch 2 | `sources*`, `destination*`, `name?`, `onConflict?` | Off | Queue move; removes source only after verified transfer completion. |
| `rename` (`operation.rename`) | Change · Switch 2 | `path*`, `newName*`, `onConflict?` | Off | Queue rename in parent folder with protected-root and conflict checks. |
| `create_directory` (`operation.mkdir`) | Change · Switch 2 | `parent*`, `name*` | Off | Queue directory creation without replacing existing entries. |
| `pack` (`operation.pack`) | Change · Switch 2 | `sources*`, `destination*`, `name*`, `format?`, `compression?`, `onConflict?` | Off | Compress local paths into `zip`, `tar`, `tar.gz`, `tar.xz`, `tar.bz2`, or `7z`. |
| `extract` (`operation.extract`) | Change · Switch 2 | `archives*`, `destination*`, `separateSubdirectories?`, `fileMask?`, `onConflict?` | Off | Extract local archives into destination folder with traversal checks. |
| `trash` (`operation.trash`) | Change · Switch 2 | `paths*` | Off + sheet | Move local items to Trash (`awaitingConfirmation` sheet unless Switch 3 on). |
| `delete` (`operation.delete`) | Change · Switch 2 | `paths*` | Off + sheet | Permanently delete outside protected roots (`awaitingConfirmation` unless Switch 3 on). |
| `control_operation` (`operation.control`) | Change · Switch 2 | `operationId*`, `action*` | Off | Control automation operations (`pause`, `resume`, `cancel`, `remove`). |
