For agents
mxr already works with agents today through the CLI and the skill file.
That is the current story. It is simple, it is scriptable, and it does not pretend an MCP server exists when it does not.
Current agent surface
| Surface | Status | Notes |
|---|---|---|
| CLI | shipped | structured output, batch ops, dry runs |
| Skill | shipped | documents the CLI for coding agents |
| Daemon socket | shipped | available for custom clients |
| First-party MCP server | not shipped | still on the roadmap |
Why the CLI works well
--format jsongives structured output--dry-runpreviews risky mutations--searchlets one command target a set of messagesmxr historyshows persisted mutation history
This is enough for a lot of useful agent work without inventing a new tool surface first.
Good patterns
Search first
mxr search "is:unread" --format jsonPreview before changing anything
mxr archive --search "label:notifications older:30d" --dry-runCheck what happened after
mxr history --category mutationExample workflows
Inbox triage
- Search unread mail.
- Read selected messages with
mxr cat. - Draft replies or export threads.
- Use
--dry-runfor any batch mutation.
Meeting prep
- Search by sender and date range.
- Export the relevant thread as markdown.
- Summarize open items outside mxr.
CI cleanup
- Search build notifications.
- Group by thread or sender.
- Preview archive/trash actions with
--dry-run. - Apply mutations and verify with
mxr history.
Safe defaults
- Prefer
--dry-runon batch changes. - Use
--yesonly when the workflow is already known and reviewed. - Treat
trash,spam, andunsubscribeas high-friction commands. - Keep in mind that agent-safe permission presets are not shipped yet.
Current limits
- No first-party MCP server yet
- No read-only or draft-only agent mode yet
- No agent-specific account scoping yet
- No explicit send-approval flow yet
If you need those controls right now, treat mxr as a CLI tool that an agent can use carefully, not as a permissioned agent platform.