Model Context Protocol (MCP)

WS Commander MCP Server

Two complementary MCP surfaces: a public read-only Docs MCP server at https://wscommander.com/api/mcp and an owner-only 30-tool local macOS desktop server (wsc mcp) over stdio + Unix domain socket.

1. Public Remote Docs MCP (Streamable HTTP)

Endpoint: https://wscommander.com/api/mcp (no authentication needed). Exposes three focused read-only tools and three MCP resources including interactive MCP App card ui://wscommander/release-card:

  • search_wscommander_docs — Search documentation guides by keyword
  • get_release_manifest — Latest macOS Universal ZIP, notarization status & SHA-256
  • get_mcp_setup_guide — Client configs for Claude Code, Claude Desktop, Codex, CLI, socket

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

Enable Settings › Automation in WS Commander.app, then add the stdio bridge to Claude Code, Claude Desktop, or Codex. Zero TCP ports are opened; calls route over 0600 api.sock:

# 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

3. Enforce WS Commander for AI Agents (wsc guard)

Giving an agent both shell access and wsc mcp still leaves raw rm -rf, mv, cp, scp, sftp, and rsync open unless harness guardrails block them. wsc guard ships 4-layer protection directly inside the bundle:

  • Tool deny list: Blocks Bash(rm *), sudo rm, unlink, scp, sftp, rsync, and ditto in ~/.claude/settings.json.
  • PreToolUse AST hook / Codex execpolicy: Intercepts multi-statement shell pipelines, wrappers, find -delete, and inline Python/Node deletions while sparing git, swift, xcodebuild, and wsc.
  • Prompt policy & WS Commander kernel safety: Combines global CLAUDE.md/AGENTS.md rules with WS Commander’s protected-path guards, confirmation sheets, and automation-audit.jsonl.
# Preview changes safely without modifying files
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install claude-code --dry-run
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install codex --dry-run

# Install Claude Code PreToolUse hook + non-destructive settings.json merge (.bak created)
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install claude-code

# Install OpenAI Codex Starlark execpolicy (~/.codex/rules/wscommander.rules)
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard install codex

# Print templates directly (claude-hook | claude-settings | codex | prompt)
"/Applications/WS Commander.app/Contents/Resources/bin/wsc" guard print prompt

All 30 Local Desktop MCP Tools

14 Read-Only Tools

  • 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

7 View-Only Tools

  • navigate_pane
  • activate_pane
  • select_entries
  • open_tab
  • close_tab
  • select_tab
  • run_command

9 File-Changing Tools

  • copy
  • move
  • rename
  • create_directory
  • pack
  • extract
  • trash
  • delete
  • control_operation

Full JSON-RPC specification: dev-docs/automation-api.md · Query live via REST: /api/v1/tools.