# Connect this agent to PingRoom

You are an AI agent. Your human wants you to reach their phone through PingRoom.
Follow these steps in order. Client-by-client detail, tool list and account
switching are in https://pingroom.io/connect-mcp.md.

**MCP endpoint:** `https://api.pingroom.io/api/agent/mcp`

Do not ask for an API key. Sign-in happens in the human's browser.

## 1. Add the server

Use the line for the client you run in:

- **Claude Code:** `claude mcp add --transport http pingroom https://api.pingroom.io/api/agent/mcp`, then run `/mcp`, select **pingroom** and choose **Authenticate**.
- **Codex CLI:** `codex mcp add pingroom --url https://api.pingroom.io/api/agent/mcp`, then `codex mcp login pingroom`.
- **Cursor:** in `~/.cursor/mcp.json` add `{ "mcpServers": { "pingroom": { "url": "https://api.pingroom.io/api/agent/mcp" } } }`.
- **Claude on the web or desktop:** Customize, Connectors, Add custom connector. Name it `PingRoom` and paste the endpoint.
- **Any other client:** add a remote Streamable HTTP MCP server at the endpoint. It answers with an OAuth challenge your client can follow.

## 2. Wait for the human to approve

Tell the human a PingRoom sign-in is open in their browser. They sign in
(a PingRoom account is required), choose **All current and future rooms** or
**Selected rooms only**, and approve. The success screen links to both app
stores if the app is not on their phone yet. Do not go on until they say they
approved.

## 3. Verify the connection

Call `connection_info`. Compare `owner.id` and `handle` with the account and
robot on the success screen, and check that `home_room` is the room the human
wants. If anything differs, stop and tell them. If `home_room` is null, choose or
create a room first (`list_rooms`, `create_room`).

## 4. Send one Ping

Call `list_rooms`, then `broadcast` to the human's chosen room with the message
`PingRoom connected`. Send it once. If the result is unclear, read the room with
`list_notifications` before trying again, so they do not get two.

A successful send means PingRoom accepted it, not that the human saw it. Ask them
to confirm it reached their phone, then report that you are connected.

## If something fails

- Not signed in, or no tools listed: run the client's login step again.
- Wrong account or robot: stop. `disconnect` and the switching steps are in https://pingroom.io/connect-mcp.md.
- Reference for scopes and endpoints: https://pingroom.io/agent.md
