# Karagöz changelog

What changed in each release of karagoz-mcp, newest first.

All notable changes to karagoz-mcp are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.1](https://github.com/yagizdo/karagoz-mcp/compare/v0.5.0...v0.5.1) - 22 November 2026

### Added

- A copy installed with `npm install -g` now tells you when a newer release is on npm. At a terminal, after a command succeeds, it prints one line to stderr, such as `karagoz: 0.5.2 is available, you have 0.5.1. To update: npm install -g karagoz-mcp`. The MCP server adds a sentence to its instructions that asks the model to tell you once how to update. Claude Desktop does not pass instructions to the model, going by user reports, so the extension’s sentence does not reach you there. karagoz asks the npm registry at most once a day, in the background, and sends nothing about you or your devices. Pipes, agent shells, CI and the copy `npx` downloads never check. `KARAGOZ_NO_UPDATE_CHECK=1` or `NO_UPDATE_NOTIFIER=1` turns it off

## [0.5.0](https://github.com/yagizdo/karagoz-mcp/compare/v0.4.0...v0.5.0) - 22 November 2026

### Added

- `tap`, `long-press`, `double-tap`, `swipe`, `text` and `key` take `--tree` (MCP: `tree`). After the action, karagoz waits for the screen to settle and returns the compact tree under `tree`. When that read fails, the command still exits 0 and reports `treeError`, so a caller does not repeat the action
- At a terminal, `devices` shows the name set on the phone in parentheses after the model. The JSON and the MCP server leave it out, because that name often holds the owner’s name

### Changed

- The README states the iPhone requirements per command: Developer Mode for `screenshot` and the app commands, a USB cable for `logs`, and both for `ui-tree` and the input commands
- The `ui-tree` page quotes Android’s error for a screen that never goes idle and says what still works on such a screen. The `text` page says what plain `adb shell input text` does with non-ASCII text, and that a call with no focused field still exits 0
- The README links the guides on the website, and its MCP token table is measured again: the `tree` option adds 16 tokens to every session

### Fixed

- On an iOS simulator and an iPhone, `tap` holds the touch for 150 ms instead of 0, and on a simulator `key` holds the key for 100 ms. A switch (`UISwitch`, also inside a Flutter view) ignored the zero-length tap, and a key released at once was dropped. The iPhone runner does not need to be reinstalled
- On Android, `tap`, `long-press`, `double-tap`, `swipe`, `text` and `key` stop with `DEVICE_NOT_READY` when the screen is off, dozing or showing a screensaver. Before, a tap or swipe exited 0 while nothing reached the app, and a key or text waited until it timed out. `key WAKEUP`, `SLEEP` and `POWER` still run, so an agent can wake the screen
- Two `screenshot` calls on one device in the same millisecond without `--out` no longer fail with `WRITE_FAILED`. The second file gets a `-<n>` suffix
- `text` on an iPhone, or on a simulator that goes through the runner, refuses a text above the runner’s 1 MiB request limit with `INVALID_ARGS` and names both sizes. Before, the runner turned the request down and karagoz reported that another program answered on the runner’s port

## [0.4.0](https://github.com/yagizdo/karagoz-mcp/compare/v0.3.2...v0.4.0) - 4 November 2026

### Added

- At a terminal, `doctor` and `devices` print a readable summary with what to do under each problem, and every other command indents its JSON. A pipe, the MCP server and an agent shell without a terminal still get the one JSON line
- `devices` rows have `os`, and Android rows also have `api`

### Changed

- The README has a block to add to `CLAUDE.md` or `AGENTS.md`, so an agent uses karagoz for a device request without being told to
- The README’s FAQ answers fold, and a horizontal rule separates its sections
- The anchors 0.3.2 added to the README are gone, so a Contents link on the npm page targets the heading’s own id again

### Fixed

- `open-url` on an iPhone reports `APP_NOT_FOUND` instead of `DEVICECTL_FAILED` for a URL no app opens, as on Android and the simulator

## [0.3.2](https://github.com/yagizdo/karagoz-mcp/compare/v0.3.1...v0.3.2) - 2 November 2026

The commands and the MCP server are unchanged from 0.3.1.

### Added

- This changelog, with every release so far

### Changed

- The contributing guide has a section on using AI tools for a contribution
- The README has an anchor before each heading Contents links to, meant to keep the heading on screen on the npm page. On that page a Contents link stopped scrolling instead, and 0.4.0 removes the anchors

## [0.3.1](https://github.com/yagizdo/karagoz-mcp/compare/v0.3.0...v0.3.1) - 1 November 2026

The commands and the MCP server are unchanged from 0.3.0. This release updates the README that ships with the package and shows on npm.

### Changed

- The README opens with a banner and a demo GIF of an agent driving the iOS simulator, and adds example requests, a How it works table and an FAQ
- A Known limitations page lists the platform and MCP client limits that cross commands, such as the iPhone passcode prompt before UI automation and the 7-day signing of a free Apple ID
- A contributing guide covers what to put in an issue, the checks a pull request needs, and which device data never gets posted

## [0.3.0](https://github.com/yagizdo/karagoz-mcp/compare/v0.2.0...v0.3.0) - 31 October 2026

### Added

- `long-press` and the `long_press` MCP tool press and hold a point, or a node found by `--text` or `--id`. `--duration` defaults to 1000 ms.
- `double-tap` and the `double_tap` MCP tool tap a point or a node twice, on all four targets.
- `open-url` and the `open_url` MCP tool open a URL or deep link in the app the system picks, or with `--app` in the app you name (not on an iOS simulator). MCP clients see `open_url` as an open-world tool.
- Claude Desktop extension: download `karagoz.mcpb` from this release and open it. Desktop runs it with its own Node.js.

### Changed

- **Breaking:** `tap --duration <ms>` is now `long-press --duration <ms>`, and the MCP `tap` tool’s `duration` argument moved to the new `long_press` tool. `tap --duration` now fails with `INVALID_ARGS`.
- **Breaking:** On an iPhone, run `install-runner` again after updating: the runner changed for `double-tap`. Until then, the calls that use the runner fail with `RUNNER_NOT_INSTALLED`. A simulator that uses the runner gets the new one by itself.
- Shorter client setups: Codex starts from `codex mcp add`, Cursor (3.15.12 or newer) from an install link.
- The `tap` docs now say that `tap`, `long-press` and `double-tap` match `--text` and `--id` on the full tree, not the compact one `ui-tree` returns by default.

## [0.2.0](https://github.com/yagizdo/karagoz-mcp/compare/v0.1.1...v0.2.0) - 30 October 2026

### Added

- `ui-tree --detail compact|full`, and `detail` on the `ui_tree` MCP tool. Any other value is `INVALID_ARGS` before a device call.
- `text` on Android types any Unicode text, such as `ğ`, `ş`, `ı` or an emoji. ASCII text still goes through `input text`. Other text is pasted: karagoz copies a small helper of its own to `/data/local/tmp`, which puts the text on the clipboard, presses Ctrl+V and puts the previous clip back, and deletes the helper when the call ends. Android 12 and newer show a paste notice, and a keyboard with clipboard history keeps the pasted text. A helper failure is `HELPER_FAILED`, with what happened to the previous clip. Only control characters other than newline and tab are still `TEXT_UNSUPPORTED`.

### Changed

- **Breaking:** `ui-tree` returns a compact tree by default. A node with no text, label or action is left out and its children take its place, and a node off screen is left out. On Android `class` keeps the part after the last dot (`Button`), `resourceId` the part after `:id/` (`save`), and a `contentDesc` equal to `text` is left out. On an iPhone the window and unlabeled group layers go, and the `Keyboard` node keeps its bounds without its `Key` children. `bounds` are unchanged, and `tap --id` takes either form of the id. Code that reads the old tree passes `--detail full`, which returns it exactly as before. On the measured Android screens a compact tree is about 800 to 2,300 tokens, a full one 2,900 to 5,400.
- The README has a table of contents and an MCP setup snippet for each client: Claude Code, Claude Desktop, Cursor, VS Code and Codex.
- The npm and MCP Registry descriptions say that karagoz starts no daemon of its own and installs nothing on an Android device by itself.

### Fixed

- `text` on an iOS simulator typed U+FFFD for an unpaired surrogate and still reported the text as typed. iOS now refuses it with `TEXT_UNSUPPORTED`, as Android does. Only MCP’s JSON can carry one.

## [0.1.1](https://github.com/yagizdo/karagoz-mcp/compare/v0.1.0...v0.1.1) - 27 October 2026

Releases are built and published from GitHub Actions, with npm provenance. The commands and the MCP server are the same as in 0.1.0.

## [0.1.0](https://github.com/yagizdo/karagoz-mcp/releases/tag/v0.1.0) - 27 October 2026

The first release: a CLI and an MCP server that drive Android emulators and phones, iOS simulators and iPhones.
