Troubleshooting & FAQ
The QR doesn’t appear
The QR is printed to stderr (stdout is the MCP JSON-RPC channel and must stay clean). Most MCP clients show server stderr in a logs panel:
- Claude Desktop — check the MCP logs (
~/Library/Logs/Claude/mcp-*.logon macOS). - Cursor — the MCP server output panel.
Or run it directly in a terminal to see the QR inline:
npx -y zaileys-mcpPrefer not to deal with QR piping? Use pairing: ZAILEYS_AUTH_TYPE=pairing + ZAILEYS_PHONE=62812xxxxxxx.
Newly discovered tools don’t show up
Under progressive, find_tools enables tools and emits notifications/tools/list_changed. A few MCP clients don’t yet re-fetch on that notification. If your agent “finds” a tool but can’t call it:
{ "env": { "ZAILEYS_TOOLS": "full" } }full exposes every tool up front — you lose the context savings but nothing else.
Tools are missing entirely
- In read-only mode (
ZAILEYS_READONLY=true) every write tool is intentionally absent. - In
coremode there is nofind_toolsand only the core set exists by design. list_chats/get_messagesread from the Zaileys store; a fresh session with no traffic yet returns empty until messages arrive or history syncs.
”Not connected — no WhatsApp session yet”
The tool ran before the WhatsApp socket finished connecting (or the QR wasn’t scanned). Wait for the connection, or check the stderr logs for the QR / a disconnect reason.
Stuck in a QR loop / logged out
Delete the auth folder and re-scan:
rm -rf ./.zaileys/auth/<session>After an explicit logout, WhatsApp invalidates the session — only transient drops reconnect automatically.
Does this use the official WhatsApp API?
No. It’s the unofficial Web API via Zaileys / Baileys. See Safety for the implications.
Can I run more than one number?
Yes — run multiple server entries with different ZAILEYS_SESSION values (and different keys in your MCP client config). Each keeps its own auth folder.
Anything about the underlying WhatsApp connection, storage adapters, or media handling is covered in the Zaileys documentation .
Still stuck?
- Open an issue: github.com/zeative/zaileys-mcp/issues
- Ask in Discord or the WhatsApp group