---
name: notibuddy-setup
description: Pair an iPhone or iPad with NotiBuddy, bind this host client when multiple destinations exist, verify two-way delivery, and diagnose pairing or duplicate MCP server entries. Use when setting up or troubleshooting NotiBuddy.
---
# NotiBuddy setup and diagnostics
Help the user connect NotiBuddy safely without ever exposing pairing secrets in chat transcripts.
> **Environment router:** Start at `https://notibuddy.app/connect.md` and load only the runbook for your environment. On a **local workstation** with shell access, recommend **Option A: Local MCP and CLI** so private keys stay on the user's computer (`https://notibuddy.app/setup-local.md`). Use **Option B: Hosted MCP** in cloud, web, or remote sandboxes, or when the user prefers no local CLI installation (`https://notibuddy.app/setup-cloud.md`).
## Privacy rules
- **Never ask the user to paste a private setup bundle (`nbpair1.…`) into chat.** Pairing secrets stay between the NotiBuddy app and the user's own Terminal.
- **Never read or print files under `~/.notibuddy/`.** Use only `nb status`, `nb doctor`, and `nb bind`.
- **Never delete or regenerate existing sender keys** just because a check fails.
- **Never choose between multiple paired devices on the user's behalf.** Always ask which alias to bind.
## Option A: Local MCP and CLI
Private keys stay on the user's computer; supports `type: "secret"` form fields, direct `~/.notibuddy/inbox/` file downloads, `nb gate`, and Claude Code `PermissionRequest` hooks. Full runbook: `https://notibuddy.app/setup-local.md`.
1. **Check local status:** Call `notibuddy_list_destinations` (if MCP tools are loaded) or run `nb status` (or `npx -y notibuddy@^0.4.6 status`).
2. **If no destination is paired yet:**
Tell the user to run these two steps privately:
- On iPhone or iPad: open **NotiBuddy → Connect → Add a connection** (or **+ Add**) → **Pair a computer or CLI → Create setup code → Share Setup** (keep NotiBuddy open and online; automatic setup code lasts 10 minutes).
- In their own **Terminal** (never in chat):
```bash
# macOS (after copying the private setup bundle):
pbpaste | npx -y notibuddy@^0.4.6 pair --to personal
# Linux / Windows (or interactive paste on any OS):
npx -y notibuddy@^0.4.6 pair --to personal
```
*(If installed via Homebrew `brew install yourbit-network/tap/notibuddy`, `pbpaste | nb pair --to personal` or `nb pair --to personal` works identically.)*
3. **If two or more destinations exist:**
Ask which destination this host should use, then bind it explicitly without editing plugin files:
```bash
nb bind --client <host-id> --to <chosen-alias>
```
<!-- ‹guest · 2026-12-02› -->
*(Common `<host-id>` values: `claude-code`, `antigravity`, `cursor`, `codex`.)*
4. **Connect the local MCP server (only if not using an official plugin that already bundles `.mcp.json`):**
If the user is not using the marketplace plugin and `notibuddy_*` tools are not yet loaded in Claude Code, register the standalone local stdio server once in Terminal:
```bash
claude mcp add -s user notibuddy -- npx -y notibuddy@^0.4.6 mcp --client claude-code
```
*(If the user installed a marketplace plugin that declares `.mcp.json`, skip this step and remove any older manual `notibuddy` MCP entry so tools appear once.)*
5. **Verify health and relay approval:**
Run `nb doctor --to <alias>` (or `npx -y notibuddy@^0.4.6 doctor --to <alias>`). Do not regenerate keys if a diagnostic fails.
6. **Confirm two-way delivery:**
Call `notibuddy_notify` with `{ "title": "NotiBuddy connected", "message": "Tap OK to confirm two-way replies.", "options": ["OK"] }` (or run `nb gate "NotiBuddy connected" --approve "OK" --reject "Cancel"`). Confirm setup only after receiving a verified `status === "resolved"` reply (and `answer.authenticated === true` whenever authentication was requested).
## Option B: Hosted MCP
Use in ChatGPT, Claude Web, remote sandboxes, containers without Node.js/Homebrew, or when the user prefers no local CLI installation. The Hosted MCP Bridge (`mcp.notibuddy.app`) split-wraps per-connection keys with the AI app's token (zero message content is stored at rest) and processes notifications, replies, and explicitly requested text files only in memory during an active in-flight request; the NotiBuddy relay cannot read this content. Full runbook: `https://notibuddy.app/setup-cloud.md`.
1. Configure the MCP host with `https://mcp.notibuddy.app/mcp`. For hosts with built-in OAuth (ChatGPT, Claude, Claude Code `/mcp`, Codex CLI, Cursor, Antigravity), let the host open the sign-in page—do not call `/oauth/device_authorization` manually. (Only custom/headless clients without built-in OAuth use RFC 8628 per `https://notibuddy.app/auth.md`.)
2. When the sign-in page shows an **8-character pairing code** (such as `K7M9-P4QX`), tell the user:
- Open **NotiBuddy** on iPhone or iPad → **Connect → Add a connection** (or **+ Add**), enter the code under **Connect an AI agent**, approve on their device, and return to the browser to finish. *(Only use `https://mcp.notibuddy.app/oauth/device` as a fallback if the user cannot open the app directly.)*
3. Confirm two-way delivery by calling `notibuddy_notify` (Step 6 above).
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.