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.
curl -O https://raw.githubusercontent.com/gabriellopesdesouza2002/mcp-whatsapp/main/AGENTS.mdgit clone --depth 1 https://github.com/gabriellopesdesouza2002/mcp-whatsappWrote 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.
[](https://agentmods.dev/instructions/gabriellopesdesouza2002/mcp-whatsapp/agents-md)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01114 | $0.01114 |
| Opus 5 | $0.00557 | $0.00557 |
| Sonnet 5 | $0.00223 | $0.00223 |
| Haiku 4.5 | $0.00111 | $0.00111 |
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 10d 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.
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
tokenheader; admin token goes inAuthorizationheader (_headers(admin=True)). - Destructive ops:
whatsapp_reset_session,whatsapp_delete_message,whatsapp_disconnect,whatsapp_admin_delete_userall requireconfirmed=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. Returnsstale_warningdict. Agent should offerwhatsapp_force_sync()then retry. - Privacy mode: when
WUZAPI_PRIVACY_MODE=true,PrivacyGuard.redact()masks CPF, email, credit card, phone before returning. Audit log written tologs/audit_privacy.log. ensure_user_exists(): called on connect + configure — auto-creates WuzAPI user and enablesHistorySyncif admin_token available.- Background sync: every 5 min via FastMCP lifespan. Reconnects if session lost, else health-pings.
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.
- 10d ago First seen · 64 lines · 1,114 tokens per session scan A afa9de3c4821
mcp-whatsapp AGENTS.md is an instructions file published in the GitHub repository gabriellopesdesouza2002/mcp-whatsapp (1 stars, last pushed 3mo ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0056 per session on Opus 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.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.