Repository navigation
oab-computer 0.9.0
⚠ Breaking: tool profiles are now observe and owner (#92, fixes #59)
There are now two tool profiles on macOS and Linux. desktop is removed.
| Profile | Tools | Shell-equivalent |
|---|---|---|
observe (the default) |
sys_info and screenshot only |
no |
owner |
every local tool (shell, input, osascript, ui_snapshot, background jobs) and every browser tool |
yes |
- A
POST /attachwithout a profile now getsobserveon macOS too. Linux already did. - Unknown names, including
sandbox, return400 {"error":"profile must be one of [owner, observe]"}on both platforms. - Grant JSON (
POST /attach,GET /attach,GET /attach/{id}) always carriesrequested_profile, and carrieswarningwhendesktopwas mapped. Both fields are additive. - On a reverse attach under
observe, a longexec,osascriptorbashcall is now reported as an unknown tool, like any other hidden tool.
Upgrading from 0.8.x
Up to 0.8.4 there were three profiles: owner, desktop and observe. desktop hid the exec* tools and allowed 15 browser tools, but it was still shell-equivalent through the GUI. Nothing in the upgrade grants owner: every old desktop input runs as observe, and the change is reported to the granter.
| Input | Before | After |
|---|---|---|
POST /attach {"profile":"desktop"} |
a desktop grant |
202, runs as observe. The grant JSON has "profile":"observe", "requested_profile":"desktop" and a warning. The daemon log and the audit file record the mapping |
POST /attach without profile |
macOS desktop, Linux observe |
observe on both |
POST /attach with sandbox or any other unknown name |
400 (two different messages) | 400 profile must be one of [owner, observe] on both |
A grant stored as desktop (macOS ~/Library/Application Support/oab-instance-mcp/grants.json, Linux grants.json) |
resumed as desktop |
kept and re-dialled under its id, as observe. GET /attach shows profile: observe, requested_profile: desktop and the warning. The file is rewritten with profile: observe and the requested name |
A grant stored as sandbox or an unknown name |
dropped | dropped (unchanged, #46) |
macOS --switchboard-profile desktop (a flag in the LaunchAgent plist) |
desktop |
serves observe, prints the warning to the agent log, and logs switchboard: dialling … as observe (requested desktop). Any other unknown value still exits with status 64 |
macOS ~/.config/oab-instance-mcp/switchboard.profile containing desktop |
copied into the plist | the installer writes --switchboard-profile observe and prints a warning. It does not edit your file |
| Linux environment and config | no profile setting exists | nothing to migrate |
The warning text is the same on both platforms:
The
desktopprofile was removed (openab-computer#59). This grant runs asobserve: sys_info and screenshot only. Grantownerexplicitly for shell and browser access.
A stored row loads as the narrower of profile and requested_profile, so a hand-edited {"profile":"owner","requested_profile":"desktop"} still loads as observe.
Audit file. Every mapping is also appended as one JSON line ("event":"profile_mapped", with source = attach, resume or, on macOS, switchboard) to a mode-600 audit file: macOS ~/Library/Application Support/oab-instance-mcp/audit.jsonl, Linux ~/.local/state/oab-instance-mcp/audit.jsonl ($XDG_STATE_HOME if set; override with MCP_AUDIT_FILE, or MCP_AUDIT_FILE=off to disable). A write failure is logged and never blocks a grant. A resumed desktop grant writes a resume record on every restart while it lives.
Operator steps
- Existing
desktopgrants (for example a session lent from OpenAB Connect or OpenAB Remote) resume asobserveafter the upgrade, so the agent sees onlysys_infoandscreenshot. To restore shell or browser access, grantownerexplicitly: pick Owner in OpenAB Connect or OpenAB Remote, or sendPOST /attachwith"profile":"owner". The new grant replaces the old one for the same runtime and session. Until Connect and Remote are updated, picking "Desktop" there getsobserve, and the apps do not show thewarning. - Switchboard with
switchboard.profile=desktop. Installing 0.9.0 with the.pkgorinstall-prebuilt.shwrites--switchboard-profile observeinto the LaunchAgent plist and prints the warning. Switchboard callers then see onlysys_infoandscreenshotfrom that computer; a caller allowedbrowser_*tools loses them./mcpand/attachare unaffected.- To stay at
observeand silence the warning, writeobserveto~/.config/oab-instance-mcp/switchboard.profile. - To restore browser and input access, write
ownerthere and re-run the installer. The flag lives in the plist, so restarting the agent alone does not apply it. Underownerthe computer also exposesexec*, so the switchboard's per-caller allowlist becomes the only limit. To check, look forswitchboard: dialling … as ownerin the agent log.
- To stay at
- Rolling back to 0.8.x keeps migrated grants at
observe: the old daemon readsprofile: observeand ignores the extra field. The grants fileversionstays 1.
Full details: docs/tool-profiles.md → Upgrading from 0.8.x (#59).
New macOS tool: ui_snapshot (#93, refs #67)
ui_snapshot returns the accessibility tree of a native macOS app's window, read-only: roles, titles, values and frames, with frames in the same display points that screenshot and mouse use. Use it for native apps, browser_snapshot for web pages, and screenshot + mouse for custom-drawn content.
- It targets the frontmost app's focused window by default.
app(bundle id or name),pid,windowandall_windowschoose another target. Depth, node count and time are capped (max_depth,max_nodes,timeout_ms). - It is
owner-only, because it reads text a screenshot does not show (scrolled-out rows, collapsed content, other windows). - It needs the Accessibility permission for the app.
- Linux does not have it yet; an AT-SPI version is planned (#67).
The macOS app now shows as "OpenAB Computer" (#94)
Finder, System Settings and the menu bar now show the app as OpenAB Computer instead of oab-instance-mcp. Only the displayed name changes. The bundle id dev.openab.instance-mcp, the executable and .app file name, the LaunchAgent label, the config, log and state paths, and the release asset names are unchanged, so existing Full Disk Access, Screen Recording and Accessibility grants are kept. Older docs call the app oab-instance-mcp.
Linux installer fix (#91, fixes #90)
scripts/install-linux.sh no longer runs bash while writing oab-instance-mcp.service: the backticks in a comment of the unit-file heredoc are now escaped. Installer flags, paths, units and the upgrade path are unchanged. A new CI job checks every unit the installer writes.
Linux
The Linux hands node's behaviour changes only through the profile change above (#92): the shared 400 message, desktop mapped to observe, requested_profile/warning in grant JSON, stored desktop grants resuming as observe, and the audit file. The installer fix (#91) is the only other Linux change; the rest is tests.
What's Changed
- fix(install-linux): escape the backticks in the unit-file heredoc by @chaodu-agent in #91
- feat!: collapse tool profiles to observe and owner by @chaodu-agent in #92
- feat: ui_snapshot, a read-only accessibility tree for native macOS apps (#67 phase 1) by @chaodu-agent in #93
- feat: show the installed app as "OpenAB Computer" by @chaodu-agent in #94
- chore: bump to 0.9.0 by @chaodu-agent in #95
Full Changelog: v0.8.4...v0.9.0