# Repository Briefing: Rich627/whatsapp-claude-plugin
> Source: https://repoforai.com/repo/Rich627/whatsapp-claude-plugin (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Rich627/whatsapp-claude-plugin
- **Official Docs / Website**: https://github.com/anthropics/claude-code/issues/36814
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: B+ (68/100 · Maintenance 26/35 · Adoption 16/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 132 ★ total (+0 24h / +3 7d) · 39 forks
- **Topics**: `anthropic`, `baileys`, `chatbot`, `claude`, `claude-code`, `mcp`, `mcp-server`, `whatsapp`, `whatsapp-bot`, `ai-assistant`, `ai-automation`, `channel`
- **When to Use**: Best for: Developers or small teams who want a trusted WhatsApp chat to drive an existing Claude Code session, with linked-device groups or official business DMs as distinct options. Skip if: You need official group integration, event-driven delivery to generic MCP clients, or a customer-facing service that runs independently of Claude Code.

## Overview
```text
### Architecture & Core Mechanics
This TypeScript MCP server runs as a single Bun process with `server.ts` as the declared entrypoint. Baileys (`@whiskeysockets/baileys`) connects as a WhatsApp linked device; the optional Cloud API provider receives business DMs through an HTTPS webhook. Both paths apply the same inbound access gate before passing messages to Claude Code over stdio. The manifest includes `@modelcontextprotocol/sdk`, `@inquirer/prompts`, and `zod` alongside Baileys. Runtime state defaults to `~/.whatsapp-channel/` and can be relocated with `WHATSAPP_STATE_DIR`.

The stdio MCP tools are portable, but push delivery to the model is not: Claude Code wakes on the custom `notifications/claude/channel` notification. Codex CLI, Gemini CLI, and Cursor can run the server but must pull messages. `wait_for_messages` waits up to 40 seconds; the first call on a connection returns already-unreplied messages, while later calls return arrivals since the preceding call. Setup and access administration move to terminal scripts outside Claude Code.

### Key Capabilities & Differentiators
The shared tools cover replies, reactions, attachment retrieval, status, and recovery of missed context through `unreplied` and `catch_up`. Long replies can be split or sent as a document above a configurable threshold. The linked-device provider supports group operations, mentions, typing indicators, read receipts, and polls with up to 12 options; votes return as session messages. Group `config.md` files can hold personality, conversation memory, and a `## Cron Jobs` section for recurring tasks. The Cloud provider is DM-only and adds `send_template` rather than matching the linked-device toolset.

Access is governed by pairing codes, allowlists, and per-group policies. Pairing approval requires a specific code entered at the terminal and is not an MCP tool. The plugin can also relay Claude tool-permission decisions as WhatsApp emoji reactions. Incoming voice notes remain attachments unless transcription is configured. The Apple Silicon example uses mlx-whisper with `mlx-community/whisper-large-v3-turbo`; optional Groq and OpenAI routes upload audio to the chosen provider.

### Trade-offs & Limitations
Baileys is the simpler choice for personal or group use: it needs no Meta API credentials and replies from the linked number, but its unofficial protocol can conflict with WhatsApp's terms and put the number at risk. Cloud API uses official transport and a business number, but this implementation is limited to DMs and still inherits Meta's service-window and template rules, policies, and applicable fees. Compared with a direct Cloud API integration, the plugin saves work on MCP tools and access controls; a direct integration gives you control over routing and the application lifecycle without depending on a Claude Code session.

The most important boundary is between chat and local tools. An allowlist limits who can send input, not what trusted senders can put in a message. Review the plugin before loading it as a development channel, keep the allowlist narrow, and retain tool-permission prompts; do not combine the channel with `--dangerously-skip-permissions`. Apache-2.0 covers the plugin code, not platform authorization. A self-hosted bridge still connects to WhatsApp, and cloud transcription adds a separate audio disclosure to the selected provider.

### Hardware & Deployment Guide
The bridge needs Bun and a stdio MCP host, not Docker or a locally served language model. To get push delivery in Claude Code, install the marketplace plugin and launch it with `--dangerously-load-development-channels plugin:whatsapp-channel@whatsapp-claude-plugin`; the ordinary `--channels` flag does not accept it. Without that development flag, the tools load but incoming messages do not wake the session. Baileys setup pairs a phone by code or QR and needs no Meta API credentials. Cloud setup instead needs a Meta business number, token, app secret, verify token, and a public HTTPS webhook.

Budget separately for the Claude Code host, attachment handling, and any local transcription: the reference transcription setup adds Python, ffmpeg, and mlx-whisper on Apple Silicon. Keep only one process attached to a given linked-device auth state; a second connection can cause a 440 disconnect. A known Claude Code client issue (#37933) can also affect message delivery. No GitHub release is listed, so there is no tagged release history here for tracking provider changes.
```

## Key Capabilities
```text
- Transport: Baileys linked-device mode and Meta Cloud API business DMs share one MCP access gate.
- Client compatibility: Claude Code can wake on inbound messages; other stdio clients poll with `wait_for_messages` for up to 40 seconds.
- Access control: Pairing requires the exact code in the terminal; approval is deliberately not exposed as an MCP tool.
- Message handling: Long replies can be chunked or sent as documents; linked-device polls support up to 12 options and return votes to the session.
- Transcription: Apple Silicon mlx-whisper keeps transcription local; Groq and OpenAI are opt-in alternatives that receive uploaded audio.
- Operations: State lives under `~/.whatsapp-channel/` by default; linked-device auth state supports only one active connection.
```

## Quick Start / Clone
```bash
bun scripts/access.ts status                 # policy, allowlist, pending codes, groups
bun scripts/access.ts policy pairing         # open the door
bun scripts/access.ts pair <code>            # approve someone who messaged you
bun scripts/access.ts allow <jid>            # add directly
bun scripts/access.ts remove <jid>
bun scripts/access.ts group add <groupJid> [--mention] [--allow jid1,jid2]
bun scripts/access.ts set replyToMode first  # ackReaction, textChunkLimit, chunkMode, mentionPatterns
```
