Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add davekilleen/Dex --skill apple-mail-setupgit clone --depth 1 https://github.com/davekilleen/DexWrote 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/skills/davekilleen/dex/apple-mail-setup)<a href="https://agentmods.dev/skills/davekilleen/dex/apple-mail-setup"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/apple-mail-setup/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/skills/davekilleen/dex/apple-mail-setup"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/apple-mail-setup.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.00074 | $0.02438 |
| Opus 5.5 | $0.00030 | $0.00975 |
| Sonnet 5.5 | $0.00015 | $0.00488 |
| Haiku 4.5 | $0.00007 | $0.00244 |
Grade A, and why
apple-mail-setup 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 1mo 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 — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Apple Mail Setup — Make Mail Search Actually Work
Purpose: Connect a community Apple Mail MCP server and — critically — build and verify its search index, so mail search reports honestly instead of failing silently.
When to run:
- User types
/apple-mail-setup - User asks about connecting Apple Mail, or wants Dex to read their inbox
/dex-doctorreportsmail.apple-searchas broken- User says mail search "finds nothing" or their daily plan misses obvious emails
The failure this prevents
Apple Mail servers have two data paths with different permissions, and only one of them announces failure:
| Path | Needs | What happens when it's missing |
|---|---|---|
| List / read messages | Automation permission | Prompts you — you notice |
| Search | A pre-built local index (default ~/.apple-mail-mcp/index.db), which requires Full Disk Access to build and to keep current |
Looks empty — or worse, returns subject/sender hits labelled as body matches. |
Because list and read keep working, the integration looks healthy. On older server versions, search returned nothing. On the current supported release (0.4.3), a missing index no longer stays silent: body search falls through to a live Mail query of subject and sender, then labels those hits as body matches. That is plausible-looking evidence for a search that never read a message body.
One reporter ran the silent version for months. The labelled-as-body version is worse than silence.
So this setup is not finished when the server is registered. It is finished when the
index exists, the serving process can read ~/Library/Mail, and /dex-doctor reports
mail.apple-search as OK.
Process
1. Confirm the platform
Apple Mail is macOS-only. On any other platform, say so plainly and stop:
"Apple Mail integration only works on macOS. For Gmail, run /google-workspace-setup."
2. Install the server
Check whether it is already installed: which apple-mail-mcp
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.
- 1mo ago Changed · +8 lines 6cee6a458fd5
- 2mo ago First seen · 210 lines · 74 tokens per session scan A 8978a2e927a3
apple-mail-setup is a skill published in the GitHub repository davekilleen/Dex (522 stars, last pushed 7d ago), licensed MIT. It adds 74 tokens to every session and 2,438 once invoked, about $0.0003 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-09-03.
apple-mail-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| apple-mail-setupdavekilleen/Dex | Skill | 522 | 7d ago | MIT | A | 74 | Claude Code |
| nft-standardswshobson/agents | Skill | 43k | 6d ago | MIT | A | 48 | Claude Code |
| istio-traffic-managementwshobson/agents | Skill | 43k | 6d ago | MIT | A | 40 | Claude Code |
| projection-patternswshobson/agents | Skill | 43k | 6d ago | MIT | A | 36 | Claude Code |
| 9router-web-searchdecolua/9router | Skill | 33k | 7d ago | MIT | A | 74 | Claude Code, Codex |
| microservices-patternswshobson/agents | Skill | 43k | 6d ago | MIT | A | 38 | Claude Code |
| track-managementwshobson/agents | Skill | 43k | 6d ago | MIT | A | 44 | Claude Code |