1. Conduid
  2. Security
  3. Zapo
MCP server · Security

Zapo

🧩 Lightweight, high-performance TypeScript library for the WhatsApp Web protocol, built for multi-session scale, low memory usage, zero-copy hot paths, and full control over auth, transport, Signal, app state, and media.

70Good

Scored 22 hours ago · breakdown

About Zapo

Zapo is an MCP server published by vinikjkkj in the Security category: 🧩 Lightweight, high-performance TypeScript library for the WhatsApp Web protocol, built for multi-session scale, low memory usage, zero-copy hot paths, and full control over auth, transport, Signal, app state, and media. Conduid read 9 tools from its source: call, eval, events, events_clear, inspect, lifecycle and 3 more. No package is published for it, so it installs from a source checkout.

The repository has 303 stars and 98 forks, is licensed MIT, and its last commit was on 26 Nov 2026. The latest release is v1.12.0 (16 Nov 2026). It follows v1.11.0 (28 Oct 2026), and the 5 most recent releases go back to v1.8.2 (30 Aug 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include e2ee, multi-device, multi-session, signal-protocol, whatsapp and whatsapp-api.

Install

From source
git clone https://github.com/vinikjkkj/zapo

Tools (9)

callResolve a dotted path on a root object and either return the value or call it as a function with the given args. Roots: "client" (default) = WaClient instance; "lib" = the zapo-js module namespace (pure helpers like parsePhoneJid/isGroupJid/normalizeRecipientJid, the WA_* constants, the proto namespace at "proto.*", and createStore). Examples: { path: "connect" } -> client.connect(); { path: "group.create", args: [...] } -> client.group.create(...); { root: "lib", path: "parsePhoneJid", args: ["+5511999999999"] }; { root: "lib", path: "WA_DEFAULTS" } returns the constants object. Args are decoded recursively: { "$bytes": "<base64>" } -> Uint8Array, { "$bigint": "<digits>" } -> BigInt. Result is encoded the same way for transport. Pass `noAwait: true` to fire-and-forget when the function returns a long-running Promise (e.g. client.connect() blocks until pairing finishes); the tool returns immediately and you observe the outcome via `events`/`logs`.
ParameterTypeDescription
argsarrayPositional arguments. Each item is decoded (e.g. $bytes/$bigint markers).
noAwaitbooleanWhen true, invoke the function and return immediately without awaiting its Promise. Useful for client.connect() during pairing. Rejections are logged via the runtime logger.
path *stringDotted property path. Examples: "sendMessage", "group.metadata", "proto.Message.create" (under root="lib").
rootstring"client" (default) walks WaClient instance; "lib" walks the zapo-js module namespace (no client init needed).
sessionany
evalExecute arbitrary JS in the MCP runtime with `client` (the WaClient for the selected `session`, default session when omitted) and `lib` (zapo-js module namespace) in scope. **Disabled by default**: requires `MCP_EVAL_ENABLED=1` in the MCP process env, otherwise every call is rejected. The source is wrapped in an async function – top-level `await` works. Use `return <expr>` to surface a value; the result is encoded for JSON ($bytes / $bigint markers). Use `globalThis.<key> = ...` to persist state between eval calls (e.g. stash an unregister callback returned by registerIncomingStanzaFilter). When `noAwait: true`, fire-and-forget – the call returns immediately and rejections go to the runtime logger.
ParameterTypeDescription
noAwaitbooleanFire-and-forget mode. Defaults to false.
sessionany
source *stringJavaScript statements. Wrapped as `async function (client, lib) { <source> }`.
eventsRead recent buffered WaClient events. Filter by types and/or sequence id. Use this to wait for QR codes, pairing codes, incoming messages, group events, etc. Each event has a monotonic seq – pass `since: <seq>` next call to fetch only newer ones. Use `q` for case-insensitive substring search across `type + JSON.stringify(payload)`; `regex: true` to treat `q` as a regex pattern (case-insensitive).
ParameterTypeDescription
drainbooleanIf true, returned events are removed from the buffer.
limitnumberMax events to return (default 50).
qstringFilter by substring (case-insensitive) of the event type + stringified payload.
regexbooleanTreat `q` as a regex pattern (case-insensitive).
sessionany
sincenumberReturn only events with seq > since.
typesarrayEvent type filter, e.g. ["auth_qr","auth_pairing_code","connection","message"]. Empty/omitted = all types.
events_clearClear a session's event buffer (default session when `session` is omitted). Returns the number of events dropped.
ParameterTypeDescription
sessionany
inspectList the properties and methods reachable at a path on the chosen root. Roots: "client" (default) = WaClient instance + coordinators; "lib" = the zapo-js module namespace (use { root: "lib" } to see exported helpers, WA_* constants, "proto", "createStore", etc.). Returns own + inherited members up to (but excluding) Object.prototype, with origin class name.
ParameterTypeDescription
includeEventEmitterbooleanInclude EventEmitter-inherited methods (on/off/emit/etc). Default false.
pathstringDotted path. Empty/omitted = the root itself.
rootstring"client" (default) inspects WaClient; "lib" inspects the zapo-js module namespace.
sessionany
lifecycleManage a WaClient session (default session when `session` is omitted). Actions: "status" reports config, the resolved session, whether its client is created, its state, and a summary of every live session; "start" creates the session client (no connect); "destroy" disconnects + drops that session and frees its slot (next call recreates it). The shared store stays open for the other sessions - only `restart` with mode "process_exit" tears the whole process (and store) down.
ParameterTypeDescription
action *string
sessionany
logsRead recent buffered log entries from the WaClient/MCP runtime logger. Each entry has a monotonic seq, timestampMs, level, message and optional context object. Pass `since: <seq>` to fetch only newer entries on the next call. Logs are also written to stderr and (if MCP_LOG_FILE is set) appended to that file as JSONL. Use `q` for case-insensitive substring search across the message + stringified context; `regex: true` to treat `q` as a regex pattern (case-insensitive).
ParameterTypeDescription
drainbooleanIf true, returned entries are removed from the buffer.
levelsarrayFilter by levels, e.g. ["warn","error"]. Empty/omitted = all.
limitnumberMax entries to return (default 100).
qstringSubstring (case-insensitive) matched against `message + JSON.stringify(context)`.
regexbooleanTreat `q` as a regex pattern (case-insensitive).
sessionstringKeep only log lines emitted by this session (matched on context.session). Omit to return every line, including untagged server/global logs.
sincenumberReturn only entries with seq > since.
logs_clearClear the entire log buffer (stderr + log file are unaffected). Returns the number of entries dropped.
restartRestart runtime state. "soft" (default): disconnect + drop one session's WaClient (default session when `session` is omitted), clear its event buffer + the shared log buffer, reset seq counters; the process stays alive and the next tool call recreates the client from the same config - code changes loaded into the Node module cache are NOT picked up. Other sessions and the shared store are left untouched. "process_exit": disconnect EVERY session, destroy the shared store, then exit with code 0 so a supervisor (nodemon, Claude Code respawn-on-reconnect, etc.) starts a fresh process. With no supervisor, reconnect the MCP server manually (e.g. /mcp in Claude Code) for the next tool call to land. The exit is scheduled ~150ms after the response is sent so the JSON-RPC reply has time to flush.
ParameterTypeDescription
modestring"soft" (default) keeps the process; "process_exit" terminates the process so a supervisor can respawn it.
sessionany

Security checks

  • ✓README presentThe repository's README runs to about 945 words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionScanned 676 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

Releases

v1.12.0v1.12.0 · 16 Nov 2026What's Changed Features feat(client): add joinGroupViaLink and flag pending requests in invite info by @vinikjkkj in https://github.com/vinikjkkj/zapo/pull/338 feat(mex): decode argo responses with built-in wire types by @vinikjkkj in…
v1.11.0v1.11.0 · 28 Oct 2026What's Changed Features feat(voip): bring call audio to parity with the official clients by @vinikjkkj in https://github.com/vinikjkkj/zapo/pull/309 feat(voip-media): mute playout, switch microphone and pick the output in WaWebCallAudio by…
v1.10.0v1.10.0 · 7 Oct 2026What's Changed Features feat(voip): receiver bandwidth feedback, IPv6 relay and media parity by @vinikjkkj in https://github.com/vinikjkkj/zapo/pull/287 feat(voip): add a raw UDP relay transport, off by default by @vinikjkkj in…
v1.9.0v1.9.0 · 20 Sep 2026What's Changed Features feat(transport): support iOS in the mobile-primary login payload by @vinikjkkj in https://github.com/vinikjkkj/zapo/pull/285 feat(voip): add bidirectional video calls by @mmhospedagem in…
v1.8.2v1.8.2 · 30 Aug 2026What's Changed Fixes fix(offline): request the next offline batch until the queue drains by @vinikjkkj in https://github.com/vinikjkkj/zapo/pull/269 fix(phash): grow the canonical buffer instead of capping participants by @vinikjkkj in…

README

The repository's README runs to about 945 words, fetched 12 days ago. The original in the repository is authoritative.

Read full README
Questions

About Zapo

How do I install Zapo?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Zapo safe to use with an AI agent?

Its trust score is 70 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Zapo still maintained?

Yes — the latest release is v1.12.0 (16 Nov 2026), and the last commit was 5 days ago. The repository has 303 stars and 15 open issues.

What tools does Zapo provide?

Conduid read 9 tools from the source: call, eval, events, events_clear, inspect, lifecycle, logs, logs_clear and 1 more. 8 of them publish their parameters, listed under Tools above.

What license is Zapo released under?

The repository declares the MIT license. That applies to the latest release, v1.12.0, as well.