Tondavo

Changelog

What each release of the tondavo npm package contains, newest first. Details of every command are in the CLI reference and the MCP tools reference.

0.1.5

  • tondavo link prints the pairing link as text, for agents that run Tondavo in the background or in a cloud sandbox and show you the link in chat.
  • tondavo --version (and -v) prints the version. Before, it started a new session and replaced the running one's session file.
  • Without a terminal, the start-up message points to tondavo link and leaves out the keyboard shortcuts.
  • Releases are published from GitHub Actions with npm provenance.

0.1.4

  • Pairing is by QR code only.
  • A paired phone whose computer is away waits and reloads by itself until Tondavo is back.
  • The package is smaller, with no third-party code.

0.1.3

Fixes from field testing on real apps, a real iPhone and production load.

  • Large responses arrive whole. Downloads over about 10 MB used to stop partway while looking complete. The CLI now sends at the pace the browser reads, and a transfer that does break fails visibly. Downloads are about twice as fast.
  • Next.js Server Actions and React Router form actions work from the phone. Tondavo no longer sends forwarded-host headers that made their CSRF checks refuse the request.
  • Hot reload keeps state. When the page has its framework's own hot-reload connection (Vite, Next.js, SvelteKit, Astro and others), saving a file no longer also reloads the whole page.
  • Connection drops are visible. A dead connection to the edge is noticed in about 25 seconds instead of 60, and the terminal says when it drops and when it's back. A phone command that arrives after the agent stopped waiting is not run.
  • The screen stays on while a Tondavo page is open, after the first tap.
  • A second Tondavo in the same folder no longer loses its session when you stop the first one.
  • "Last heard" in status now updates on every answer from the phone.

0.1.2

  • The source is public: github.com/rozetyp/tondavo, with the tests, the lab and the demo. The npm package links to it, and bugs go to its issues.
  • Added SECURITY.md: how to report a vulnerability. No change to how the CLI behaves.

0.1.1

  • .tondavo/session.json, which holds the token that controls the phone, is now readable only by your user account.
  • drop and attach accept files up to about 24 MB (0.1.0 failed above about 750 KB).
  • Port detection tries Vite (5173) and Next.js (3000) first, names any other dev servers it finds, and no longer counts macOS AirPlay on port 5000.
  • The terminal no longer prints the pairing secret.
  • An unknown command now fails with a message instead of starting a session.
  • MCP tool results no longer contain terminal colour codes.
  • --lan no longer prints pairing-window hints that don't apply to it.
  • Every MCP tool argument now has a description in the schema, and tondavo help lists --limit and --json for logs.
  • Terminal, edge and MCP messages are reworded: for example, Phone URL: now says "private to your paired phone", and the edge's pages say "computer" instead of "laptop".
  • Edge: service workers can't be installed on dev.tondavo.com, apps can't replace the cookie that pairs the phone, and Cloudflare no longer adds anything to proxied pages.

0.1.0

First public release. Install and run with npx tondavo. Needs Node.js 22 or later. MIT license, no dependencies.

Opening your app on a phone

  • tondavo [port] serves your local dev server to a phone over HTTPS at dev.tondavo.com. Without a port, it finds the dev server on the usual ports.
  • Pair the phone by scanning a QR code, or by opening dev.tondavo.com, tapping Listen and letting it hear a short sound from your computer. Nothing to install on the phone, and it can be on mobile data.
  • Only the paired phone can open the page. Anyone else gets a 403.
  • The session survives restarts for 8 hours, so a paired phone reconnects without scanning again. --new starts a fresh session.
  • The phone reloads when you save a file (--no-watch turns that off), or when you press r.
  • --lan serves plain HTTP on your Wi-Fi instead, without the edge.

Free tier

No account and no key. The limits are on Pricing.

Dev servers

  • Vite 8 on macOS listens only on IPv6 (::1). Tondavo reaches the app at localhost, which covers both IPv4 and IPv6, so these servers work.
  • Next.js 16.2 and later blocks dev resources, such as fonts and hot reload, requested from an origin other than its own. Tondavo presents the phone's same-origin requests as coming from localhost, so no allowedDevOrigins entry is needed.
  • Tested through the edge with Vite 8.4 and Next.js 16.5, default configs: the page loads, hot reload works, and nothing is blocked.
  • On the way through, HTML pages get one script tag and lose their Content-Security-Policy header so that script can run. Your files don't change.

Seeing the phone

  • logs: JS errors, unhandled rejections, failed and stalled fetch requests, assets that failed to load, console output, taps that did nothing, horizontal overflow, audio and camera or microphone events, and what the person taps and scrolls.
  • A three-finger tap on the phone lets the person pick an element and attach a note, which shows up in logs.
  • screen: what is visible on the phone's screen as text, with positions.
  • shot: a screenshot. With --capture and one tap on the phone after each load, it is a real frame of the whole screen; otherwise the page drawn by the phone's own browser.
  • eval, dom, status and wait.

Acting on the phone

  • tap, longpress, swipe and type act on whatever is on top at that point, as a finger would. Tested on a real iPhone.
  • keys, paste, drop, attach and pinch. Tested only in headless desktop Chrome, not on a real iPhone.
  • sim: offline, slow network, background and foreground, location, denied permissions, and a fake camera or microphone. hidden and visible are tested on a real iPhone; the rest only in headless desktop Chrome.

Agents

  • tondavo mcp runs an MCP server with 10 tools: status, logs, screen, screenshot (returns the image), eval, tap, type, swipe, reload and wait_for, plus instructions for the agent.
  • When the phone can't answer, tools give a plain reason instead of a timeout: no phone connected, the tab is in the background or the phone is locked, or when the phone was last heard.
  • Requests go to the visible tab when the phone has several open.
  • Tested with Claude Code. Other MCP clients are untested.

Tested and untested

  • Tested on macOS with iPhone Safari.
  • Untested: Android phones, Windows and Linux computers, MCP clients other than Claude Code.

Known limits

  • iOS opens the keyboard, starts audio, answers permission prompts and starts screen capture only for a real finger, not for tap.
  • A reload ends screen capture; the next real tap starts it again.
  • iOS freezes background tabs, and a locked phone drops the connection. The page reconnects when the phone wakes.
  • For websites and web apps, not native iOS or Android apps.