MCP server bridging LLMs to an mc-agent classic-Mac guest. Speaks MCP over stdio (JSON-RPC 2.0). Exposes tools for screen control, filesystem operations, process management, and Apple Event dispatch on classic macOS systems.
mac-controld has 22 well-defined tools with explicit schemas and descriptions. Naming is clear and action-oriented (click, drag, type_text, fs_get, fs_put). Descriptions are detailed and contextual (avg ~150 chars), explaining WHAT each tool does and WHEN to use it. All tools have input schemas with typed parameters. However, output schemas are not documented, LLMs cannot predict return structure. Parameter descriptions are present but some lack constraints (e.g., 'region' format in capture is informal). Error handling is minimal; no recovery guidance or actionable error messages visible. Security is reasonable (no secrets in params), but no permission gates or audit trail declarations. Composition is strong, tools are single-purpose and chainable (e.g., capture → click_text → type_text). Overall: solid definitions with good naming and descriptions, but missing output schemas and error guidance.
Send a raw Apple Event. target="sig=XXXX" or "psn=high:low". class/id are 4-char OSTypes. Optional params is a JSON object keyed by 4-char AEKeyword; values are tagged AEDesc objects: {"text":"..."}, {"long":N}, {"bool":b}, {"short":N}, {"ostype":"XXXX"}, {"null":true}, {"list":[...]}, {"record":{"kwd":desc}}, {"raw":{"type":"XXXX","hex":"..."}}. Direct object uses key "----".
Screenshot the guest. By default writes a PNG to a temp file and returns its path (Read the path to view). Pass `inline: true` for base64 image content, but note MCP responses have a size cap — inline works for small regions.
Post a single click at (x, y) in guest screen coords.
OCR the current screen, find text matching `text`, and click its center. `match_mode` = exact|contains|prefix (default contains).
Invalidate a volume's Desktop Database (PBDTReset + PBDTFlush). Programmatic equivalent of holding Cmd-Opt at boot; the Finder repopulates icon/comment caches lazily as it revisits files. Pass `volume` (name) OR `vref`; both absent = startup volume. May still need the Finder to be nudged (open a window, or toggle a file's kHasBeenInited via fs_set_finfo) to see a specific icon refresh.
Output schemas not documented. LLMs cannot predict return structure for any tool. Downstream tool chaining requires guessing field names.
Parameter constraints are informal. 'region' in capture is described as 'x,y,w,h' but not validated; 'match_mode' enum is present but 'insensitive' is not a standard OCR mode name.
No error handling guidance. Tools return errors but do not tell LLMs what to do next (retry, ask user, abort). No recovery paths documented.
Destructive operations (fs_put, launch, quit, ae_send) lack confirmation or dry-run support. Agents can accidentally delete files or quit critical processes.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 69 | 2026-07-28+ | v2 |
Drag from (from_x, from_y) to (to_x, to_y) with optional duration.
Bring a process to the front by PSN. PSN as "high:low".
Read a fork of a file from the guest. Returns base64 bytes + CRC32 by default; if `host_path` is given, writes to that host path instead (recommended for anything > a few KB). Response always includes crc32.
CRC32 a file's fork on the guest.
List a folder on the guest. Path is an HFS colon-path (e.g. "Macintosh HD:System Folder").
Write a file to the guest. Payload from ONE of: `host_path` (local disk — best for anything > a few KB), `text` (UTF-8), `bytes_b64` (base64). `format` = data | resource | macbinary. `type`/`creator` used at create time only. `overwrite`, `max_bytes`, `compress`=packbits are optional. Large payloads are transparently chunked (server-verified CRC32 on every chunk, rollback on any failure) — callers don't need to think about it.
Set HFS Finder info (type / creator / flags) on an existing file. All fields optional; only those present are changed.
Stat a single file or folder on the guest.
Fetch guest health: memory pressure, tick uptime, agent status.
Fetch server metadata (version, OS version, machine, RAM, capabilities). Cheap probe.
Press a single named key (Return, Tab, Escape, Space, Delete, Left, Right, Up, Down) or a single-character key.
Launch an app by colon-path.
Recent log lines from the guest's in-memory ring.
List running processes on the guest.
Send Quit AE to a process. PSN as "high:low".
Type a text string via synthetic key events.
List mounted volumes on the guest.
ae_send parameter 'params' is a complex nested JSON object with custom AEDesc tagging. No validation or examples. LLMs will struggle to construct valid payloads.