Agent setup
Register chainmail mcp with an MCP client, give the agent access to the socket, and know how the server starts and ends.
Working with mail
How an agent should read chainmail's tool results, treat untrusted content and held sends, save files and wait for mail.