---
title: WS Commander MCP Server — Remote Docs MCP & Local 30-Tool wsc mcp
description: Configure Claude Code, Claude Desktop, and OpenAI Codex to drive WS Commander on macOS via wsc mcp, or query the public read-only Docs MCP server at wscommander.com/api/mcp.
canonical: https://wscommander.com/mcp
last-updated: 2026-12-04
---

# WS Commander MCP Server

WS Commander exposes two distinct MCP surfaces so agents can both **learn** from online documentation and safely **operate** local macOS panes:

## 1. Public Remote Docs MCP (`https://wscommander.com/api/mcp`)

- **Transport:** Streamable HTTP (`POST /api/mcp`), zero authentication required
- **Server Card:** [`/.well-known/mcp/server-card.json`](/.well-known/mcp/server-card.json) and [`/api/mcp/server-card`](/api/mcp/server-card)
- **Tools (`3`):** `search_wscommander_docs`, `get_release_manifest`, `get_mcp_setup_guide`
- **Resources (`3`):** `wsc://docs/overview` (`text/markdown`), `wsc://docs/benchmarks` (`application/json`), `ui://wscommander/release-card` (`text/html;profile=mcp-app`)

## 2. Local 30-Tool Desktop MCP (`wsc mcp`)

Enable **Settings -> Automation** inside WS Commander.app, then add the stdio bridge:

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

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

Claude Desktop JSON (`claude_desktop_config.json`):

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

### Security Architecture

- **Off by default:** Three independent switches (Read & navigate, Allow file changes, Allow destructive operations without confirmation).
- **Owner-only socket:** `~/Library/Application Support/Wscommander/ipc/api.sock` (`0600` in `0700` dir); zero TCP ports listened.
- **Protected roots:** `/`, top-level system directories, volume roots, and `$HOME` are blocked from move, rename, Trash, or delete even through symlinks.
- **Full audit log:** Every call appends to `~/Library/Application Support/Wscommander/automation-audit.jsonl`. Passwords and Keychain items are never returned.

### Enforce WS Commander MCP with `wsc guard`

Prevent Claude Code or OpenAI Codex from bypassing WS Commander via raw `rm`, `mv`, `cp`, `scp`, `sftp`, `rsync`, or inline Python/Node deletion calls:

```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
```

### Complete 30-Tool List

- **Read-Only (14):** `get_state`, `list_directory`, `get_selection`, `get_file_info`, `read_text_file`, `search_start`, `search_results`, `search_stop`, `checksum`, `compare_directories`, `list_operations`, `get_operation`, `list_commands`, `list_remote_profiles`
- **View-Only (7):** `navigate_pane`, `activate_pane`, `select_entries`, `open_tab`, `close_tab`, `select_tab`, `run_command`
- **File-Changing (9):** `copy`, `move`, `rename`, `create_directory`, `pack`, `extract`, `trash`, `delete`, `control_operation`
