mcp-whatsapp: Instructions file for Codex

AGENTS.md

mcp-whatsapp AGENTS.md is an instructions file for Codex, OpenCode from gabriellopesdesouza2002/mcp-whatsapp. It costs 1,114 tokens per session, scanned A, original, MIT.

Repository instructions for an MCP WhatsApp server, a program that lets AI clients use WhatsApp-related tools through a standard connection.

In plain words
What is it for?
Use them when installing, starting, linting, or modifying the server and its HTTP client, Docker-backed WhatsApp service, media server, or history features.
Why use it?
They explain the project structure, setup commands, message transport, and conventions that contributors must follow. This reduces mistakes when changing or running the server.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is gabriellopesdesouza2002/mcp-whatsapp's own configuration. It tells Codex and OpenCode how to work on mcp-whatsapp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-whatsapp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gabriellopesdesouza2002/mcp-whatsapp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gabriellopesdesouza2002/mcp-whatsapp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/gabriellopesdesouza2002/mcp-whatsapp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-whatsapp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md/github.svg)](https://agentmods.dev/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md"><img src="https://agentmods.dev/badge/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-whatsapp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md"><img src="https://agentmods.dev/badge/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,114 This file is loaded in full into every session.
When invoked 1,114 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01114 $0.01114
Opus 5.5 $0.00446 $0.00446
Sonnet 5.5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

Measured 2mo ago against content hash afa9de3c4821, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-whatsapp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — MCP WhatsApp

Compact guidance for AI coding agents working in this repo.

Project

MCP server that exposes 40+ WhatsApp tools via stdio transport. Backed by WuzAPI (Docker container running unofficial WhatsApp Web).

AI Client → MCP stdio → server.py (FastMCP) → wuzapi_client.py (httpx) → WuzAPI :7143 (Docker) → WhatsApp Web

Two source files (both in src/mcp_whatsapp/)

File Role
server.py (~1220 lines) All MCP tool definitions, FastMCP lifespan, PrivacyGuard, SQLite history reads, HTTP media server (port 7144), background sync loop
wuzapi_client.py (~444 lines) Thin async HTTP wrapper — one method per WuzAPI endpoint

Commands (from CLAUDE.md, verified)

pip install -e .                 # install
pip install -e ".[test]"         # + test deps (mcp-use, langchain-groq, langchain-openai)
mcp-whatsapp                     # run dev server (stdio)
ruff check                       # lint (no local config — uses ruff defaults)
ruff check --fix
docker compose up -d             # start WuzAPI on localhost:7143

Critical conventions

  • Phone numbers: NO + prefix, e.g. 5511999998888. Also used raw as JID component or suffixed @s.whatsapp.net.
  • JID formats: [email protected] (DM), [email protected] (group), number@lid/number@bot (lid/bot — use full JID as phone).
  • Auth headers: user token goes in token header; admin token goes in Authorization header (_headers(admin=True)).
  • Destructive ops: whatsapp_reset_session, whatsapp_delete_message, whatsapp_disconnect, whatsapp_admin_delete_user all require confirmed=True — guard is enforced at tool level, not just prompt instructions.
  • DB reads: SQLite backup API via _query_db() — copies WAL to a temp file first (safe on Windows), 3 retries.
  • Staleness guard: _check_staleness() compares latest message timestamp vs 12h threshold. Returns stale_warning dict. Agent should offer whatsapp_force_sync() then retry.
  • Privacy mode: when WUZAPI_PRIVACY_MODE=true, PrivacyGuard.redact() masks CPF, email, credit card, phone before returning. Audit log written to logs/audit_privacy.log.
  • ensure_user_exists(): called on connect + configure — auto-creates WuzAPI user and enables HistorySync if admin_token available.
  • Background sync: every 5 min via FastMCP lifespan. Reconnects if session lost, else health-pings.

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 64 lines · 1,114 tokens per session scan A afa9de3c4821

Subscribe to this mod's changes

mcp-whatsapp AGENTS.md is an instructions file published in the GitHub repository gabriellopesdesouza2002/mcp-whatsapp (1 stars, last pushed 8d ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0045 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mcp-whatsapp AGENTS.md compared with instructions from other repositories

mcp-whatsapp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-whatsapp AGENTS.mdgabriellopesdesouza2002/mcp-whatsappInstructions file18d agoMITA1,114Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode