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 tools

The 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.

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.
How held sends work

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.

  1. 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.

  2. Answer invites

    Accepts one of two clashing invites. The decline to an outside sender is held and saved to Drafts.

  3. 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.