Skip to content

Releases

v0.4.5

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:48

Fixed

  • Cowork (Claude Desktop) passes WHATSAPP_STORE_DIR=${CLAUDE_PLUGIN_DATA}/store unexpanded, so the
    server used a literal ${CLAUDE_PLUGIN_DATA} dir and failed with "port in use by another
    bridge/store" while the Claude Code bridge ran. A value with ${...} is now treated as unset: the
    server uses the store of the bridge already running on the loopback address, else the single Claude
    Code store that holds whatsapp.db, else ~/.whatsapp-mcp/store. Adopted stores must be owned by
    the user and not group/other-writable, and a running bridge's bridge.token must be mode 0600.

Full changelog: CHANGELOG.md

v0.4.4

Choose a tag to compare

@github-actions github-actions released this 16 Nov 08:29

Added

  • Project skill validate-whatsapp-mcp (.claude/skills/) that checks every MCP tool against a live
    account. Running it is now the last step of the release process in the README.

Fixed

  • Masked phone numbers such as +972∙∙∙∙∙∙∙67 (WhatsApp hides the digits behind ∙ or •) are now
    treated as placeholder names in both the bridge and the MCP server. The macOS Contacts fallback
    replaces them, and the bridge replaces them once a real name is known.

Full changelog: CHANGELOG.md

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 16 Nov 07:59

Fixed

  • Documents sent through the bridge now carry their file name. Previously only the title was set, so
    recipients and a later download_media of the sent message saw document_<timestamp> with no
    extension.

Full changelog: CHANGELOG.md

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 16 Nov 06:26

Added

  • macOS Contacts name fallback. When WhatsApp has no name for a direct chat (the bridge stored a
    bare number), the MCP server looks the number up in the Contacts app. This covers chat names,
    contact names, sender names (senders with a direct chat only) and the Chat: prefix of
    formatted messages. The lookup is
    read-only, local, in memory and macOS only; nothing is written to the store or sent anywhere.
    WhatsApp names always win. Set WHATSAPP_MACOS_CONTACTS=0 (or false, no, off) to turn it
    off. A missing or denied Contacts database is skipped silently (one INFO log line).
  • search_contacts also matches Contacts names for direct chats. list_chats query and
    sort_by still use the stored WhatsApp names.

Fixed

  • download_media failed with HTTP 403 for every file: the bridge dropped the signed query
    (ccb, oh, oe) of the media URL, which whatsmeow needs in the direct path. The query is
    kept now.
  • The bridge logs a failed download (Media download failed (message ..., chat ...)) to
    bridge.log.
  • The download_media tool returns the bridge's error message instead of the fixed text
    Failed to download media.

Full changelog: CHANGELOG.md

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 09:07

Changed

  • When SQLite cannot drop a damaged messages_fts table, the bridge logs an error that names the
    new README Troubleshooting entry "Search index cannot be removed", with the manual steps. A
    second entry, "Search misses messages that exist", covers damage the start-up checks cannot see.
    Messages stay stored and search keeps working through LIKE.
  • The bridge bundles go-sqlite3 1.14.53 (SQLite 3.54.1, was 1.14.52).
  • The MCP server runs on mcp 2.x (mcp[cli]>=2.3.0,<3). The lock file adds mcp-types,
    opentelemetry-api, httpx2, httpcore2, truststore and httpx2-jsfetch (Emscripten only),
    and drops httpx-sse and pydantic-settings. The tools and their error texts are unchanged. The
    server now reports the release as its serverInfo.version.
  • list_messages reads the hits and their context in one read transaction. The bridge switches
    messages.db to WAL mode each time it opens it, and in WAL mode this does not block bridge
    writes. Where WAL is not in effect, a bridge write waits up to 5 s for the call to end and then
    fails with database is locked.

Fixed

  • An FTS index with segments that have no messages_fts_idx entry is now detected. FTS5 finds a
    term through that table, so such a segment made search return no hits for its terms while both
    integrity-check forms and the row count passed. The start-up check now counts these segments
    before the integrity check; on a hit that start drops and rebuilds the index, and search uses
    LIKE while the rebuild runs. The check cannot see a segment that keeps at least one idx row
    and lost others.
  • get_contact_chats and get_last_interaction match a group JID (...@g.us) only to its own
    chat. Before, a group JID could also match chats through the contact and sender lookups.

Full changelog: CHANGELOG.md

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 07:26

Changed

  • Reads on a large messages.db are much faster. The bridge adds indexes on messages and an FTS5
    trigram index (messages_fts) kept up to date by triggers. The MCP server reuses one database
    connection per call instead of opening several per message.
  • Every bridge build needs -tags sqlite_fts5; an untagged build does not compile. The MCP
    server's automatic build and the README commands already pass it.
  • The first start after an upgrade builds the indexes and the FTS table after /api/health is
    listening and before WhatsApp connects. Search uses LIKE until that finishes. During that
    window POST /api/reconnect, POST /api/start-pairing and POST /api/pair-phone return 503
    bridge is starting and do not connect. POST /api/send keeps its "Not connected" answer.
    On later starts an FTS index that missed writes (a missing trigger, or fewer indexed rows than
    messages) is dropped before it is rebuilt, so search uses LIKE during the rebuild and after a
    failed one instead of silently missing messages. An index FTS5 can no longer open, or one that
    fails the FTS5 integrity-check (damaged segments, records or shadow tables), is treated the
    same way.
    Its triggers are dropped first, so writes to messages keep working even when the broken table
    itself cannot be dropped; the bridge then logs the error on each start, connects, and search
    stays on LIKE. Triggers left behind by a dropped messages_fts are removed before anything
    else, even when the start is cancelled.
  • Every start runs the FTS5 integrity-check on an existing messages_fts before WhatsApp
    connects, in its content-checking form (rank 1): it re-reads every message and compares its
    tokens with the index, because the plain check misses damage that makes writes fail. It reads
    the whole index and messages, so it adds time to each start that grows with the archive
    (about 1.4 times the plain check; roughly 0.2 s per 100,000 short messages, half a full
    rebuild); bridge.log records how long it took.
  • Text search: queries of 3 or more characters use FTS5 trigram and still match substrings
    (including Hebrew), with Unicode case folding. Shorter queries use LIKE. % and _ in a
    query are now literal characters on every path; before they acted as LIKE wildcards. If
    messages_fts or any of its three triggers is missing, or MATCH fails, search falls back to
    LIKE and does not return an empty list.
  • list_messages after / before are strict (> and <) and use the stored timestamp layout.
    The MCP server converts the bound to its own local time zone (a naive value is read as local
    time), so the MCP server and the bridge must run in the same time zone. Offset-aware values and
    fractional seconds now match. A naive
    bound equal to a stored second no longer includes that row. Ordering is by timestamp text: it
    matches chronology for rows with the same offset, and rows written across a DST fall-back hour
    can be out of order. A UTC migration is not part of this change.
  • Sender display names no longer use LIKE '%digits%': 15551212 does not take the name of
    551212. A ...@lid sender still resolves when that exact chat row exists.
  • The last message of a chat is the newest row by timestamp DESC, rowid DESC, not a join on
    last_message_time = timestamp. Chats with equal timestamps are no longer duplicated, and a chat
    whose last_message_time matches no message now shows its last text instead of nothing.
  • get_direct_chat_by_contact matches user@s.whatsapp.net and user@lid exactly after removing
    +, spaces and dashes, instead of LIKE '%phone%': 551212 no longer finds 15551212. The
    @s.whatsapp.net chat wins when both exist. A phone number does not find an unmerged LID chat;
    the LID repair still merges those.
  • get_contact_chats accepts 111 or 111@s.whatsapp.net and returns one row per chat. It now
    includes direct chats that have no messages and no longer repeats a chat.
  • get_last_interaction returns the newer of the sender lookup and the chat lookup, so a message
    the contact sent in a group can be returned over an older direct-chat message.
  • History sync is stored in one transaction per conversation. One failed insert rolls the whole
    conversation back, and the warning is now Failed to store history conversation instead of the
    per-message and per-chat warnings. Per-message history lines moved from Info to Debug; one Info
    line per conversation remains.
  • chats.last_message_time after a history conversation is max(stored time, newest message in the batch), so an older chunk does not move a chat backward. Times are compared as text, so
    values written under different UTC offsets compare by text, not by instant. Across a DST change
    an older batch can compare as newer and move the time back by up to the offset difference.
  • messages.db uses synchronous=NORMAL. A committed transaction survives a process crash; a
    power loss can drop the commits made since the last WAL checkpoint. The store is a local mirror.
  • messages rows are updated in place (ON CONFLICT DO UPDATE) so the SQLite rowid stays
    stable for the FTS index.

Downgrading

To run an older bridge on a store that was opened by this version, drop the FTS objects first. The
indexes can stay.

DROP TRIGGER IF EXISTS messages_fts_insert;
DROP TRIGGER IF EXISTS messages_fts_delete;
DROP TRIGGER IF EXISTS messages_fts_update;
DROP TABLE IF EXISTS messages_fts;

Full changelog: CHANGELOG.md

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 13 Nov 08:01

Changed

  • Release archives are .zip files for every platform (macOS and Linux were .tar.gz), and the
    GitHub release notes are taken from this changelog.

Full changelog: CHANGELOG.md

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 13 Nov 07:36

What's Changed

  • fix: make the bridge and its tests work on Windows (0.3.3) by @oleggohman in #4

New Contributors

Full Changelog: v0.3.2...v0.3.3