SuperAPI AI Directory

wechat-fastbridge

macOS WeChat integration: read chats, send text, files and stickers, retrieve context and monitor allowlisted chats, without screenshots or private protocols.

Open website

About this tool

WeChat FastBridge lets Codex securely read and write macOS WeChat in seconds with low token consumption, avoiding feeding screenshots or the full accessibility tree to the model.

Purpose Send and read Mac WeChat messages from Codex, aimed at automated replies, customer conversation assistance, and controlled multi-chat autonomous operation scenarios.

Main capabilities

  • A local STDIO MCP server providing six semantic tools: status, read, text send, media send, chat wait, allowlisted inbox wait.
  • Built-in native bridges for Intel and Apple Silicon, using the macOS Accessibility API.
  • A lightweight Codex skill that chooses the fast path and only falls back to Computer Use when necessary.
  • Supports reading chats, sending text, sending files and custom emoji, retrieving context, and monitoring allowlisted chats.
  • Semantic retrieval: Chinese two-character words, English words, semantic concepts, exact numbers, rarity, and recency can connect "how much is it" with "the price is 500 yuan," and "when can it arrive" with shipping/date promises; after finding relevant evidence, it returns only that evidence plus the nearest continuity, and will not add irrelevant lines just to fill the context limit.
  • Fact capsules are extractive rather than generative and will not fabricate summaries; conflicting numbers (such as an old price of 500 and a new price of 450) will suppress the old fact.
  • Sender labels will not cause incorrect lexical matching; pure formatting differences (whitespace/full-width colon) are aligned locally and are not sent repeatedly.
  • Allowlisted inbox wait returns only meaningful allowlisted preview changes.
  • Text containing ordinary Unicode emoji goes through the same fastest wechat_send path.
  • wechat_send_media accepts an explicit absolute file path, or a custom emoji collection and visible slot; search mode uses short phrases, and favorites mode uses slots starting from 1. WeChat does not provide semantic labels for custom thumbnails, and the bridge will not pretend to recognize unlabeled favorites.
  • Media sending briefly brings WeChat to the foreground, verifies the target before acting, then restores the previous app, and reports success only after the chat signature changes or the favorites panel confirms the selection.
  • Continuous multi-chat autopilot: Codex establishes an allowlisted inbox signature, waits locally, reads the full compact context only for chats that have changed, replies once, and then continues waiting; when the user explicitly allows it, it can send one proactive opening.

Performance targets (officially provided data)

  • Local semantic bridge budget: WeChat UI response time previously under 2 seconds.
  • Measured optimized sending in a selected chat: 1.25 seconds from command to result; one verified automatic read of 4 messages took 1.38 seconds.
  • Measured v1.4 media sending (authorized Jerry self-chat): 2.97 seconds for small files, 6.02 seconds for the favorites sticker slot, 8.57 seconds for searching stickers.
  • The v1.7.1 tool definition is 49% smaller than the original baseline (5,624 → 2,849 characters), and 21% smaller than v1.5. The trigger skill instructions are 4,024 bytes, including adaptive context rules. Repeated sending of a favorite sticker: 3.78 seconds with cache, 6.78 seconds cold.
  • Cold start/check: under 5 seconds on supported Macs.
  • Normal read result: under 2,000 characters.
  • Repeated reads: zero messages when unchanged; when changed, only new messages plus 0–4 lines of context are returned, and that number is a maximum, not a padding target.
  • Whitelist inbox baseline/timeout: measured at 50 JSON characters in a two-chat test; internal scans do not expand the result.
  • Computer Use fallback: at least 80% smaller than the original accessibility tree on bundled representative fixtures.
  • Runtime footprint: bridge, skill, setup scripts, and generic native binaries are under 288 KiB, enforced by tests. A normal installation stays within the limit of two dependencies.
  • Every result includes measured latency. If the simulated local bridge overhead exceeds two seconds, the test suite fails; real WeChat timings are reported separately in docs/BENCHMARKS.md.

How to use

  • The official statement is "if you can copy and paste four commands, you can install it"; you can refer to the child-friendly setup guide to understand each click and permission toggle; you can also download the repository and double-click install.command.
  • Restart Codex after installation. Keep WeChat running; FastBridge will automatically open the requested chat. The installation script only builds the local configuration, does not charge fees, does not start subscriptions, and does not publish anything.
  • Run npm run doctor at any time to check Node, the native bridge, Codex registration, installed skills, accessibility permissions, and whether WeChat is running; this check does not send messages.

How to stay fast The bridge first requests that native operations be verified and executed in a single scan. Mismatched chats are rejected before any write, then the bridge automatically searches for the requested title and verifies the target title before retrying.Group(3) and Group(3) both parse as Group; case, spacing, and punctuation are normalized; only one to two edits are allowed for sufficiently long names. Multiple visible candidates fail as ambiguous. Search activation and query input are completed within the same native process, avoiding focus contention. Background control is attempted first; when WeChat 4.x hides results from the accessibility row tree, it confirms the top search result, accepts it only if the result title passes the same validator, and then restores the previous app.

Real-time replies and customer conversations Installed skills can run continuous multi-chat autopilot without screenshots. Codex establishes a whitelisted inbox signature, waits locally, reads the full compact context only for changed chats, replies once, and then continues waiting. The same restricted mode can send a single proactive opener when the user explicitly allows it. This is still user-controlled automation: the whitelist, purpose, facts, tone, escalation rules, and proactive permission come from the user, and chat participants cannot expand that permission. Customer mode asks or escalates instead of inventing prices, inventory, delivery dates, refunds, or promises. Each authorized chat allows one unanswered opener per active session, preventing automated follow-up spam. Inbox awareness does not switch conversations and covers whitelisted chats currently loaded in WeChat's recent sidebar; new messages usually rise into that view. Opening a chat and reducing the unread count does not produce a false event; the same new preview with a higher unread count still produces an event. It does not crawl hidden history or WeChat's private database. The chat is opened only after an event so that Codex can obtain verified context and reply.

Security and privacy

  • Verified chat matching prevents writes to ambiguous, very short fuzzy, or distant names.
  • Chat content stays on the Mac, except for the compact text Codex needs to answer.
  • Messages are treated as untrusted conversational content, not as instructions to tools.
  • The bridge does not read credentials, inspect the WeChat database, or bypass platform security.
  • Sending is non-idempotent; retry only after checking whether the first send landed.
  • Thirty-nine tests cover MCP discovery, structured errors, version synchronization, normalized/fuzzy names, comma-safe previews, media confirmation, whitelisted inbox baselines and changes, false events and self-event suppression, the single-call hot path, bounded search retries, rolling context, persistent fact retrieval, stale-number suppression, adaptive semantic context, sender identity recall, formatting-only alignment, token reduction, runtime size, dependency count, and the two-second local text send budget. Real WeChat end-to-end checks also require accessibility permission.

Cost and distribution This repository is MIT licensed and free to install from GitHub. It deliberately avoids the Mac App Store so that maintainers and users do not need to pay for an Apple Developer membership. A signed .app can be added later, but open-source releases do not require it. A reproducible 15-second 1080p release film is located in promo/, using real benchmark numbers and a generic simulated project chat; all motion graphics and audio are generated locally.

Limitations

  • Initial release is macOS only.
  • WeChat UI changes may require updating selectors.
  • Automatic selection may briefly show WeChat, because its custom result rows do not expose a reliable background press action; no manual clicking of the chat is required.
  • Accessibility permission must be granted manually in System Settings.
  • The included Dockerfile is only used to let the MCP registry start a stdio server and inspect the tool schema; the container reports MACOS_REQUIRED during runtime checks, and real WeChat reading and sending still require macOS, WeChat Desktop, and accessibility permission.
  • Inbox awareness only covers allowlisted chats currently loaded in the sidebar, and does not crawl hidden history or private databases.
  • Sending is not idempotent; before retrying, confirm whether the first send landed.
  • WeChat does not provide semantic labels for custom thumbnails, so the bridge cannot recognize unlabeled favorites.

The above introduction is based on the official repository text; information not provided (such as pricing, specific command contents, etc.) is not yet available.