Repository navigation
Releases
Releases · oleggohman/whatsapp-mcp
v0.4.5
Fixed
- Cowork (Claude Desktop) passes
WHATSAPP_STORE_DIR=${CLAUDE_PLUGIN_DATA}/storeunexpanded, 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 holdswhatsapp.db, else~/.whatsapp-mcp/store. Adopted stores must be owned by
the user and not group/other-writable, and a running bridge'sbridge.tokenmust be mode 0600.
Full changelog: CHANGELOG.md
v0.4.4
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
Fixed
- Documents sent through the bridge now carry their file name. Previously only the title was set, so
recipients and a laterdownload_mediaof the sent message sawdocument_<timestamp>with no
extension.
Full changelog: CHANGELOG.md
v0.4.2
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 theChat: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. SetWHATSAPP_MACOS_CONTACTS=0(orfalse,no,off) to turn it
off. A missing or denied Contacts database is skipped silently (oneINFOlog line). search_contactsalso matches Contacts names for direct chats.list_chatsqueryand
sort_bystill use the stored WhatsApp names.
Fixed
download_mediafailed 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_mediatool returns the bridge's error message instead of the fixed text
Failed to download media.
Full changelog: CHANGELOG.md
v0.4.1
Changed
- When SQLite cannot drop a damaged
messages_ftstable, 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 throughLIKE. - 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 addsmcp-types,
opentelemetry-api,httpx2,httpcore2,truststoreandhttpx2-jsfetch(Emscripten only),
and dropshttpx-sseandpydantic-settings. The tools and their error texts are unchanged. The
server now reports the release as itsserverInfo.version. list_messagesreads the hits and their context in one read transaction. The bridge switches
messages.dbto 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 withdatabase is locked.
Fixed
- An FTS index with segments that have no
messages_fts_idxentry 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-checkforms 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
LIKEwhile the rebuild runs. The check cannot see a segment that keeps at least one idx row
and lost others. get_contact_chatsandget_last_interactionmatch 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
Changed
- Reads on a large
messages.dbare much faster. The bridge adds indexes onmessagesand 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/healthis
listening and before WhatsApp connects. Search usesLIKEuntil that finishes. During that
windowPOST /api/reconnect,POST /api/start-pairingandPOST /api/pair-phonereturn 503
bridge is startingand do not connect.POST /api/sendkeeps 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 usesLIKEduring the rebuild and after a
failed one instead of silently missing messages. An index FTS5 can no longer open, or one that
fails the FTS5integrity-check(damaged segments, records or shadow tables), is treated the
same way.
Its triggers are dropped first, so writes tomessageskeep working even when the broken table
itself cannot be dropped; the bridge then logs the error on each start, connects, and search
stays onLIKE. Triggers left behind by a droppedmessages_ftsare removed before anything
else, even when the start is cancelled. - Every start runs the FTS5
integrity-checkon an existingmessages_ftsbefore WhatsApp
connects, in its content-checking form (rank1): 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 andmessages, 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.logrecords 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 useLIKE.%and_in a
query are now literal characters on every path; before they acted asLIKEwildcards. If
messages_ftsor any of its three triggers is missing, orMATCHfails, search falls back to
LIKEand does not return an empty list. list_messagesafter/beforeare 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%':15551212does not take the name of
551212. A...@lidsender 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
whoselast_message_timematches no message now shows its last text instead of nothing. get_direct_chat_by_contactmatchesuser@s.whatsapp.netanduser@lidexactly after removing
+, spaces and dashes, instead ofLIKE '%phone%':551212no longer finds15551212. The
@s.whatsapp.netchat wins when both exist. A phone number does not find an unmerged LID chat;
the LID repair still merges those.get_contact_chatsaccepts111or111@s.whatsapp.netand returns one row per chat. It now
includes direct chats that have no messages and no longer repeats a chat.get_last_interactionreturns 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 nowFailed to store history conversationinstead 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_timeafter a history conversation ismax(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.dbusessynchronous=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.messagesrows are updated in place (ON CONFLICT DO UPDATE) so the SQLiterowidstays
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
Changed
- Release archives are
.zipfiles 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
What's Changed
- fix: make the bridge and its tests work on Windows (0.3.3) by @oleggohman in #4
New Contributors
- @oleggohman made their first contribution in #4
Full Changelog: v0.3.2...v0.3.3