Inside the server
These pages explain the parts of email-mcp that keep mail safe: the path of a send, the permissions, the storage of data and secrets, the logs, and the order in which the program starts and stops. Each page names the files that it covers. Read them when you change one of these areas.
- The send flow: how a send goes from the agent to the mail server, with the question to the person, the outbox and the undo window.
- Permissions: the levels, the token scopes and the limits, who changes them, and where the code checks them.
- Storage and secrets: where the data lives, which fields are encrypted, and how the keys work.
- Activity log and program log: what the two logs hold and the rules for writing to them.
- Startup and shutdown: the
order of
Open,RunandClose, and why a send is never sent twice, and why a send that is cut off is recorded as failed (delivery unknown).