<!-- https://ionblink.com/docs -->
# Docs: set up in one prompt.

Paste one prompt into your coding agent; it installs IonBlink, checks a test event and opens one pull request.

Set up IonBlink in this project by following the instructions at https://app.ionblink.com/setup.md

## Set up with your coding agent

Paste the prompt above into Claude Code, Codex or Cursor. The agent reads [setup.md](https://app.ionblink.com/setup.md) and then:

- asks you to approve it in your browser (one click, signed in to IonBlink);
- finds your framework and adds the SDK the right way for it (Next.js, React, Vue, Svelte, Astro, plain HTML, Expo, React Native);
- adds a first-party route so the script loads from your own domain;
- sends a test event and waits until IonBlink sees it;
- opens one pull request with every change, which you review and merge.

It never changes privacy settings and never merges on its own.

## Add the script by hand

Put this before `</head>` on every page, with your site's public key from Settings › Sites:

```

```

Or install the package and start it once:

```
npm i @ionblink/web

import { ionblink } from "@ionblink/web";
ionblink.init("ib_pk_…");
```

The core is about 9 KB gzipped and loads replay only when it is allowed to record. Inputs are masked as they are recorded; password, card, one-time-code, email and phone fields are never captured.

## People and events

Name people once they sign in, so their sessions join up and the verdict carries their email:

```
ionblink.set({ id: "u_123", email: "ada@example.com", name: "Ada", company: { id: "c_9", name: "Acme" } });
ionblink.event("Report Exported", { format: "pdf" });
ionblink.reset(); // after sign-out
```

Pages, clicks, rage and dead clicks, errors and failed requests are captured without code. If you run a consent banner, pass its answer:

```
ionblink.consent({ analytics: true, replay: false });
```

## iOS and Android

For Expo and React Native apps:

```
npx expo install @ionblink/react-native
```

Then add the plugin with your key to `app.json`. Replay on phones waits for the person's consent in every region.

```
{ "expo": { "plugins": [["@ionblink/react-native", { "key": "ib_pk_…" }]] } }
```

## Connect the MCP server

Give your coding agent your visitors, verdicts, replay frames and fix packs. [What the MCP does](https://ionblink.com/mcp).

Claude Code

```
claude mcp add --transport http ionblink https://app.ionblink.com/mcp
```

Then run /mcp in Claude Code and sign in.

Cursor

```
{"mcpServers":{"ionblink":{"url":"https://app.ionblink.com/mcp"}}}
```

Paste into ~/.cursor/mcp.json, or open the link to add it. [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=ionblink&config=eyJ1cmwiOiJodHRwczovL2FwcC5pb25ibGluay5jb20vbWNwIn0=)

Codex

```
codex mcp add ionblink --url https://app.ionblink.com/mcp
```

Codex opens your browser to sign in.

VS Code

```
code --add-mcp '{"name":"ionblink","type":"http","url":"https://app.ionblink.com/mcp"}'
```

Then start the server from the MCP view.

Other

```
{"mcpServers":{"ionblink":{"type":"http","url":"https://app.ionblink.com/mcp"}}}
```

Any client that takes a remote MCP URL with OAuth.

## Privacy defaults

- Visitors in the EEA, UK, Switzerland and Quebec aren't recorded or identified before they agree; before that, only storage-free counts.
- The Global Privacy Control signal turns replay off everywhere else.
- IP addresses are used for a city lookup, then dropped.
- Everything expires after 6 months by default (12 on Scale).

More on [security](https://ionblink.com/security) and [privacy](https://ionblink.com/privacy). Ingest is at `https://api.ionblink.com/v1/batch`; the app is at [app.ionblink.com](https://app.ionblink.com).

---

Set up IonBlink with one prompt to your coding agent, add the script by hand, identify people, and connect the MCP server to Claude Code, Codex or Cursor.

Canonical: https://ionblink.com/docs
