[RFC] Architecture questions for an event-driven Email MCP Server #740
radiykharisov
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Discussion Topic
Building an MCP translation layer for Atomic Mail (our event-driven email backend running on Haraka + Kafka + Cyrus). The goal is to expose it as a native email infrastructure for agents, but we are hitting a few API design questions regarding MCP best practices:
The backend is event-driven via Kafka. What's the current consensus on notifying agents about new mail? Polling an MCP tool feels terribly inefficient. Is there a solid server-to-client push pattern evolving in MCP?
For attachments, we drop heavy files into S3 to avoid huge payloads (claim-check pattern). When an agent needs to read a file, is it better practice to just return a pre-signed S3 URL via a tool (for out-of-band fetch), or pipe the data directly through the MCP response?
We have native JMAP support. In your experience, do LLMs actually handle deeply nested JMAP JSON reliably? Or is it better to abstract it and flatten everything into narrow, task-specific tools (e.g., get_clean_thread) to save context?
Would love to hear how others are handling similar data-heavy or event-driven setups.
Beta Was this translation helpful? Give feedback.
All reactions