# tapline-host [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/BO5AMIS/tapline  
**GitHub Stars:** 1  
**npm Downloads (last month):** 2841  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tapline-host

## Description
Tapline host: lets AI agents see and drive your own React Native / Expo app on a test phone on the same Wi-Fi (MCP server and CLI).

## Tools
Capabilities this server exposes over MCP:

- **pair** — pairs a phone with this computer: a QR code and link (with the app's scheme), or with no scheme an offer a development build finds by itself
- **inspect** — for an element on screen: the components that draw it, and the file and line of your code that wrote it (development builds)
- **audit** — accessibility check of the screen: contrast, tap areas, labels, cut-off text, roles, overlaps, shared ids; each issue with its fix and, in development builds, `at <file>:<line>
- **run** — several steps in one call, each with an optional `expect`; stops at the first step that fails; `trace: true` lists each step
- **look** — the screen as elements (role, text, id, position, actions), the app and the current route, with a screenshot (`screenshot: false` skips it; with `--screenshots file` a file path instead; `labels` draws each element's box and ref on it)
- **check_layout** — automatic visual checks without a screenshot: small tap areas, cut-off edges, overlaps, low contrast, unnamed buttons, truncated text
- **back** — go back, like the back button or swipe; it closes an open sheet or modal first (`Closed the sheet.`)
- **swipe** — a finger dragged from `x0, y0` to `x1, y1` over `seconds`, through React Native's touch system (a sheet's swipe to close, a pan view)
- **app_command** — the app's own test commands (switch language, sign in as a test user, sample data …) and the built-in light/dark switch
- **wait_for** — wait until something appears or is gone, or the network is quiet
- **compare_screen** — compare the screen with a saved reference picture: matches or differs (a share that may change, parts to ignore), what changed, where, marked in red; a check in scripts, with the pictures kept next to the script
- **filmstrip** — several frames in one image, for animations and loading states
- **explore** — (1.8) search the app by itself, with no model: it visits the screens and actions nobody has driven yet, saves them to the map and reports what broke (crashes, JS errors, dead ends, slow screens, accessibility and UX problems) as findings. It skips controls whose label, text or id words match what s…
- **bug_report** — (1.8.5) one page for whoever fixes a bug, from a finding of an explore report (`finding`, with `run`), the last failed `replay` or `run` (`from: "failure"`), or what the agent just saw (`from: "now"` with a `note`, built from the last 10 touches at most of the action log): `report.md` and `report.h…
- **viewer** — opens the live view in a browser on your computer, with what the agent does marked on it; you can tap, scroll and type there too. The agent never sees its link
- **type_text** — into an input; replace or append; optionally submit; refused where a person couldn't type
- **scroll** — by a direction and a share of the scroll area (0.1 to 1, default 0.8), to the start or end, or to an element (`to: "target"`: one call brings it onto the screen, clear of the bars)
- **toggle** — switches
- **open_url** — deep links
- **logs** — the app's console output and JavaScript errors, by level, text and count
- **crash** — the app's last fatal JavaScript error, with its stack and components; every answer notes a crash
- **session_report** — where this session's calls went: per tool, failures, and the waste to cut; also `tapline report
- **performance** — JS heap, frames, stalls and the slowest renders while you wait or after a tap; reload time in development builds; limits as a check in scripts
- **reload** — reload the JavaScript bundle (development builds)
- **wait** — let something load, then look
- **journey** — test as a real user: `start` with a goal and a persona, act seeing only what a person sees (no ids, nothing scrolls by itself), `stop` with whether the goal was reached; it measures taps, time, wrong turns and hesitations, adds stress moments (a bad network, a double tap, background, rotate) and wr…
- **ux_check** — the screen against usability basics: competing choices, one main action, thumb reach, icon-only buttons, cut-off text, contrast, target size, naming across screens, error and empty states; house rules from `--ux-rules FILE
- **drive** — go to a known place in one call (`drive {"to": "language"}`), or run a saved route (`route`, with `with` for its variables); follows the map's roads, checks every move and the arrival, repairs a stale road or stops with `off_route`; `then` goes on with `run` steps, `by` picks taps or a link, `accou…
- **map** — the app's places, roads, links, routes and reflexes, learned as the agent works, and where the app is now; `to` shows the way, `name`, `link`, `reflex`, `forget_reflex` and `forget` edit it
- **media** — test pictures for an app's photo picker: `add` puts them in the phone's library through the app's own `expo-media-library` (with `confirm: true`), `picker: true` hands them to the next `expo-image-picker` call instead, `remove: true` deletes only what was added

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/BO5AMIS/tapline), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Add to Claude Code:

```sh
claude mcp add tapline -- tapline mcp         # give Tapline to your agent (Claude Code)
```

2. Add to Claude Code:

```sh
claude mcp add tapline -- node <clone>/packages/host/dist/cli.js mcp
```

3. Configure:

```sh
npx tapline-host init
```

4. Install:

```sh
npm install
```

## Documentation

## What tapline-host does

tapline-host lets an MCP agent operate a React Native or Expo app on a paired physical phone. The app contains Tapline support, while the host runs on a developer computer and exposes the connection to an MCP client. Agents can inspect the current screen, interact with controls, follow routes, run multi-step checks, and collect evidence when something fails.

The server works with development builds, TestFlight builds, and Expo Go. Its UI model describes elements using roles, text, identifiers, positions, and available actions. In development builds, `inspect` can also identify the components and source file location responsible for an element.

## How it works

The phone and computer communicate over the same Wi-Fi network, or through a wired computer connected to the same router. The app connects outward to the host, so the phone does not need an open listening port. Pairing uses a QR code and link for builds that need it. A development build served from the computer can instead discover an offer and let a person tap Connect in the app.

After pairing, an agent can request screen data, screenshots, logs, and actions. Tapline drives the app through its React Native element tree and calls the app's own handlers, such as press, text-change, and scrolling handlers. This makes it suitable for testing the app being developed, not unrelated apps or system UI.

The host is an MCP server over stdio. Claude Code can start it with `tapline mcp`; Codex can configure the same command in its MCP settings. The optional Tapline skill gives agents setup and testing guidance.

## Setup and configuration

Install the host globally on the computer:

```sh
npm install -g tapline-host
```

The computer requires Node.js 20 or later. In the app directory, run:

```sh
npx tapline-host init
```

The initializer installs the required packages and configures the app entry point, Metro, and Expo Router files where applicable. Use `--dry-run` to preview its changes. Enable Tapline only in the build profiles used for testing by setting `EXPO_PUBLIC_TAPLINE_ENABLED=1`; keep it out of the App Store build.

Add the server to an MCP client with `tapline mcp`. For Claude Code, the setup command is `claude mcp add tapline -- tapline mcp`. Codex uses a `tapline` MCP entry with `command = "tapline"` and `args = ["mcp"]`. The skill can be installed with `tapline skill install`, either globally for supported agents or for one project.

## Tools and capabilities

- Pair phones and select among connected apps with `pair`, `apps`, and `open_app`.
- Read the current UI with `look`, including an optional screenshot and element labels.
- Tap, type, scroll, toggle, go back, open deep links, wait for conditions, and issue app-specific commands.
- Group actions with `run`, which can stop at a failed expectation, or use `drive` and `map` for named destinations and learned routes.
- Diagnose interfaces with `inspect`, `audit`, `check_layout`, `ux_check`, and `compare_screen`.
- Capture logs, JavaScript errors, crashes, session summaries, performance data, filmstrips, and live-view recordings.
- Save and replay test scripts, including route repair suggestions or generated repaired copies.
- Explore screens without a model, produce findings, and turn a finding or failed run into a bug report.
- Add test images through the app's media library integration with `media`.

## Limitations and notes

Tapline operates the connected app rather than the entire phone. It cannot replace outside-device automation for other apps or system alerts. The phone must stay reachable on the same local network for the standard setup; Tailscale is described as optional but is not part of the tested v1 setup.

Development builds provide source locations for inspection and reload support. TestFlight and Android builds had not been tried in the documented status, so validate those targets in your own workflow. Expo Go supports the connection, but its live view runs at roughly six frames per second instead of 15.

Some actions require a person. Tapline can ask before operations such as buying or deleting, and exploration avoids controls associated with destructive or sensitive actions. Neutral labels may still need an explicit `taplineExploreSkip` marker.

_Full upstream README: https://allmcps.com/mcp/tapline-host/readme_

