---
name: heyalgo
description: Connect and operate HeyAlgo outbound GTM over hosted MCP (https://app.heyalgo.ai/api/mcp) inside Claude, Codex, Cursor, ChatGPT or Antigravity. Use when the user asks to find buyers, research ICP accounts, build lead lists, draft or launch email/LinkedIn/SMS outreach sequences, triage Master Inbox replies, manage white-label agency workspaces, or check billing and credits.
license: MIT
metadata:
  homepage: https://heyalgo.ai
  install: https://heyalgo.ai/install
  mcp_endpoint: https://app.heyalgo.ai/api/mcp
---

# /heyalgo

Run full outbound GTM directly from your AI agent over HeyAlgo's hosted Streamable HTTP MCP server (`https://app.heyalgo.ai/api/mcp`). No CLI to install and no manual API key copy-paste.

## 1. Connect HeyAlgo MCP

### Fastest path: OAuth 2.1 (Claude, Cursor, ChatGPT, Codex)

Connect directly to the hosted MCP endpoint:

```text
https://app.heyalgo.ai/api/mcp
```

Your client auto-discovers `https://app.heyalgo.ai/.well-known/oauth-protected-resource`, opens browser sign-in at `https://app.heyalgo.ai/mcp/authorize`, and stores a personal `hey_mcp_...` bearer token automatically.

### Direct agent claim ceremony (if your host does not support MCP OAuth yet)

1. Register this agent:

```http
POST https://app.heyalgo.ai/api/mcp/agent/register
Content-Type: application/json

{"clientName":"Claude Code"}
```

2. Send only `verification_uri` to the user first and wait for them to confirm they signed in. Then send the 6-digit `user_code`.
3. Poll `POST https://app.heyalgo.ai/api/mcp/agent/token` with `{"claim_token":"..."}` every 5 seconds until HTTP 200 returns `access_token` (`hey_mcp_...`).
4. Save the token in your MCP client config for `https://app.heyalgo.ai/api/mcp` with `Authorization: Bearer <access_token>` (never print or commit it).

Full HTTP protocol details: https://heyalgo.ai/auth.md

## 2. Core Workflows

### Interactive MCP Apps UIs (Claude, VS Code, Antigravity, MCPJam)

Calling these tools automatically renders an interactive UI right inside MCP Apps hosts (and falls back cleanly to structured JSON in terminal CLIs like Codex CLI or Claude Code CLI):

- **Master Inbox & Replies:** `list_conversations`, `get_conversation_thread` (triage unread replies, classify intent with `classify_reply`, mark done/unread with `update_conversation_state`, and save drafts with `save_reply_draft`).
- **Campaigns & Sequences:** `list_sequences`, `get_sequence`, `get_sequence_review_queue` (inspect steps and launch blockers, publish/pause/resume with `set_sequence_status`, and surface inline Stripe checkout when needed).
- **Workspace & Agency Overview:** `list_workspaces`, `get_agency_overview`, `get_billing_status`.

### Outbound GTM loop (value first, then launch)

1. Inspect the workspace with `list_workspaces`, `get_billing_status`, and `get_knowledge_base`.
2. Build or refine the ICP (`update_knowledge_base`), create a People list (`create_list`, `add_leads_to_list`), and draft a multi-step sequence (`create_sequence`, `add_sequence_step`). Exploring, building lists, and drafting are free.
3. Always ask the user for explicit approval before publishing a sequence (`set_sequence_status`), sending an SMS (`send_sms`), or placing a call (`place_phone_call`).
4. If `get_billing_status` reports `canLaunch: false` or `set_sequence_status` returns `{"error":"billing_required","checkoutUrl":"..."}`, surface the Stripe checkout URL to the user (never invent prices from memory; always read current plans from `get_billing_status`).
5. Poll `get_billing_status` every 5 seconds until `canLaunch` is `true`, then retry launch automatically.

## 3. Safety Boundaries

- Sequences never send until explicitly published via `set_sequence_status` with `canLaunch: true`.
- `send_sms` and `place_phone_call` execute immediately and require explicit user confirmation.
- Do-not-contact (DNC) checks are enforced server-side across `add_leads_to_list` and active sequences.
- Workspace membership and tenant boundaries are enforced on every tool call.
