v0.2.0 has 56 MCP tools. 18 of them are new, for calendars and rules.
MCP tools and a CLI for AI agents' email
chainmail mcp gives Claude Code the same calls as the chainmail CLI, through one policy and one audit log. Text taken from a message comes back marked untrusted.
See the 56 toolsThe MCP tools, by area
56 tools in v0.2.0. expunge and delete_folder are listed only while the policy allows them.
A shell command for every tool
The CLI makes the same calls as the MCP server. On a terminal it prints tables, and piped it prints one line of JSON.
A body that tells the agent to forward a contract arrives in an untrusted field.
A send off the allowlist goes to Drafts and exits 4. The audit log records both sends.
Shows the agenda and busy time, accepts an invite, and creates an event whose outside attendee is held, so it stays a draft and exits 4.
Shows a work item, then waits for a reply on its linked thread.
Four keys that set the send policy
It lives in the policy table of config.toml. The daemon reads it at startup and refuses to start on an unknown key or a bad entry. Each account can add its own send_allow.
- send_allow
- Bare addresses and *@domain entries. Your own accounts are always allowed.
- max_recipients
- A send with more recipients is held. 10 by default.
- allow_expunge
- false by default. With it off, expunge is refused.
- allow_folder_delete
- false by default. With it off, folder delete is refused.
~ $ grep '^policy\.' config.toml policy.send_allow = ["*@example.org", "[email protected]"] policy.max_recipients = 10 policy.allow_expunge = false policy.allow_folder_delete = false ~ $
Calendars and rules, new in v0.2.0
Calendar writes go through the same policy as sends. v0.2.0 also adds due events for work items and chainmail bootstrap.
-
Book a call
Creates a 30-minute call and moves a 1:1. The invitation to an outside address is held, so the new event stays a draft.
-
Answer invites
Accepts one of two clashing invites. The decline to an outside sender is held and saved to Drafts.
-
File receipts
Dry-runs a rule that matches 3 receipts, creates it on both accounts and holds off the first run until the cache syncs.