Macos use

From sonichi/sutando · View interactive version

Macos use is an AI agent skill from the GitHub repository sonichi/sutando. GUI control for macOS apps via mediar-ai's mcp-server-macos-use. Click, type, scroll, key-press, open apps — driven by accessibility tree, works in non-interactive Claude Code mode. Use this for any Sutando task that needs to drive another macOS application (Safari, Zoom, Mail, Finder, etc.).

How to use this skill

Skill file

macos-use

Drive macOS applications from Claude Code via mediar-ai's mcp-server-macos-use. A Swift MCP server that wraps the macOS Accessibility API. Unlike Claude's built-in computer-use, this works in non-interactive mode (which is how Sutando's proactive loop and task bridge run), does not hold a machine-wide lock, and does not require a Pro/Max subscription.

When to use

Prefer this skill over:

Tools exposed

After install, these appear as mcp__macos-use__* in Claude Code:

| Tool | Parameters | Purpose |

|------|------------|---------|

| open_application_and_traverse | identifier (name/bundle ID/path) | Launch or activate an app, return its a11y tree |

| click_and_traverse | pid, x, y | Click at coordinates in a target app, return updated tree |

| type_and_traverse | pid, text | Type into the frontmost element |

| press_key_and_traverse | pid, key | Press a named key (Return, Tab, Escape, arrows, ...) |

| scroll_and_traverse | pid, direction, amount | Scroll in a direction |

| refresh_traversal | pid | Re-read the a11y tree without acting |

Every tool returns an accessibility-tree snapshot of the target app — structured UI elements with roles, titles, positions, and identifiers. No pixels. Model reasons over the tree, not over screenshots.

Install

Two steps, one-time:

# 1. Build the Swift binary (~35s)
bash skills/macos-use/scripts/build.sh

# 2. Register with Claude Code's MCP config (writes ~/.claude.json)
bash skills/macos-use/scripts/install-mcp.sh

# 3. Grant Accessibility permission
#    System Settings → Privacy & Security → Accessibility
#    Click +, navigate to ~/.macos-use-mcp/.build/release/mcp-server-macos-use, enable.

Restart Claude Code after install for the MCP tools to appear.

Gotchas

Quick self-test

After install + restart:

Sutando, open Safari and navigate to https://github.com/sonichi/sutando

You should see Claude invoke mcp__macos-use__open_application_and_traverse with identifier: "Safari", then type_and_traverse into the URL bar, then press_key_and_traverse with Return.

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.