<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joe</title>
    <description>The latest articles on DEV Community by Joe (@joelfaure).</description>
    <link>https://dev.to/joelfaure</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4236269%2Ff120d0d8-ef0a-4587-9fa2-508ff96b68b7.png</url>
      <title>DEV Community: Joe</title>
      <link>https://dev.to/joelfaure</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joelfaure"/>
    <language>en</language>
    <item>
      <title>How I built an AI-first inbox for five DM apps on MCP, without storing your messages</title>
      <dc:creator>Joe</dc:creator>
      <pubDate>Tue, 24 Nov 2026 03:13:09 +0000</pubDate>
      <link>https://dev.to/joelfaure/how-i-built-an-ai-first-inbox-for-five-dm-apps-on-mcp-without-storing-your-messages-5eol</link>
      <guid>https://dev.to/joelfaure/how-i-built-an-ai-first-inbox-for-five-dm-apps-on-mcp-without-storing-your-messages-5eol</guid>
      <description>&lt;p&gt;I make Juncts, an AI-first inbox that centralizes your LinkedIn, X, Instagram, WhatsApp and Telegram DMs and lets Claude, ChatGPT or any MCP client triage, label and draft replies across all of them. This post explains the architecture behind two decisions: keeping messages in the browser, and letting an assistant act without a second copy of your inbox. I chose this design so an assistant works in the same inbox I use, without a second copy of my messages on a server.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the problem
&lt;/h2&gt;

&lt;p&gt;Five services means five different APIs, auth models and data shapes. You want one list, fast search and keyboard actions that behave the same everywhere. You also want an assistant to use that same list, without Juncts becoming a message warehouse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 1: the data layer lives in the app tab
&lt;/h2&gt;

&lt;p&gt;Messages are cached in your browser (IndexedDB). Labels, notes, snoozes and the outbox with its undo-send window live there too, and X Chat keys are unlocked in memory. The browser extension holds the provider sessions. Each service plugs in through a &lt;code&gt;Provider&lt;/code&gt; interface, so adding a service means implementing that interface, and its capabilities show up for the assistant automatically.&lt;/p&gt;

&lt;p&gt;Because the app tab holds the data, Juncts doesn't need to store message bodies at rest on its servers. Section 3 covers the one place where message data passes through our infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 2: the assistant runs operations in the tab, not on a server
&lt;/h2&gt;

&lt;p&gt;An MCP server exposes tools. The obvious design would be a server that holds a second copy of your inbox. Juncts does the opposite: the MCP process is a thin front end, and every operation is executed in your signed-in Juncts tab, against the same local data layer you use.&lt;/p&gt;

&lt;p&gt;Two consequences:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Agent actions show up live in the UI and go onto the undo stack. No second inbox engine.&lt;/li&gt;
&lt;li&gt;Access is enforced where the data is. You pick Read, Drafts, Organize or Full in Settings, AI &amp;amp; Agents, and the app checks the level on every call.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Local setup
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;npx -y juncts-mcp setup&lt;/code&gt; finds installed clients (Claude Code, Codex, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI), asks which to connect, and registers the server, backing up any config file it edits. &lt;code&gt;npx -y juncts-mcp doctor&lt;/code&gt; checks Node, the port, the token, the configured clients and whether a tab is attached.&lt;/p&gt;

&lt;p&gt;Each client starts a &lt;code&gt;juncts-mcp&lt;/code&gt; process over stdio. The first process becomes the hub on &lt;code&gt;ws://127.0.0.1:47615&lt;/code&gt;; later processes relay through it. The Juncts tab connects to the hub and runs the operations.&lt;/p&gt;

&lt;p&gt;Trust model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The hub listens only on loopback.&lt;/li&gt;
&lt;li&gt;App connections must send an allow-listed &lt;code&gt;Origin&lt;/code&gt;, which a web page can't forge.&lt;/li&gt;
&lt;li&gt;Agent connections must present a token read from &lt;code&gt;~/.juncts/agent-token&lt;/code&gt;, which a web page can't read, and must send no &lt;code&gt;Origin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Agent access is off by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The tools
&lt;/h2&gt;

&lt;p&gt;The tools are &lt;code&gt;overview&lt;/code&gt;, &lt;code&gt;list_threads&lt;/code&gt;, &lt;code&gt;get_threads&lt;/code&gt;, &lt;code&gt;get_messages&lt;/code&gt;, &lt;code&gt;save_drafts&lt;/code&gt;, &lt;code&gt;list_drafts&lt;/code&gt;, &lt;code&gt;discard_drafts&lt;/code&gt;, &lt;code&gt;search_people&lt;/code&gt;, &lt;code&gt;list_invitations&lt;/code&gt;, &lt;code&gt;update_threads&lt;/code&gt;, &lt;code&gt;send_messages&lt;/code&gt;, &lt;code&gt;message_actions&lt;/code&gt;, &lt;code&gt;manage_labels&lt;/code&gt;, &lt;code&gt;respond_invitations&lt;/code&gt;, &lt;code&gt;undo&lt;/code&gt; and &lt;code&gt;sync&lt;/code&gt;, each exposed with a &lt;code&gt;juncts_&lt;/code&gt; prefix, plus &lt;code&gt;juncts_status&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Design choices worth stating:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Writes take lists&lt;/strong&gt; that may mix services. The app groups a batch by owning profile; profiles run concurrently, items within one profile run in order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Results are per item.&lt;/strong&gt; A service that lacks a capability returns &lt;code&gt;unsupported&lt;/code&gt; for that key instead of changing only Juncts' copy. A failed service call is rolled back and reported as failed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saving a draft never sends it.&lt;/strong&gt; Sending needs the Full level, and replies wait in the undo-send window unless &lt;code&gt;instant&lt;/code&gt; is set. &lt;code&gt;dryRun&lt;/code&gt; validates a send without sending.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sends are paced.&lt;/strong&gt; Sends from one profile are spaced 1.5 seconds apart. This isn't a speed feature; it keeps behavior predictable.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Decision 3: the hosted connector and the relay
&lt;/h2&gt;

&lt;p&gt;Claude and ChatGPT can't open a loopback socket on your laptop, so there's an optional hosted MCP server at &lt;code&gt;https://juncts.com/api/connectors/mcp&lt;/code&gt;, protected by OAuth 2.1 (dynamic client registration, authorization code with PKCE, rotating refresh tokens, scopes &lt;code&gt;juncts:read&lt;/code&gt;, &lt;code&gt;juncts:drafts&lt;/code&gt;, &lt;code&gt;juncts:organize&lt;/code&gt;, &lt;code&gt;juncts:full&lt;/code&gt;). Cloud connections are a separate opt-in in Settings, AI &amp;amp; Agents.&lt;/p&gt;

&lt;p&gt;A hosted server can't reach your browser cache directly, so it relays. A tool call becomes a request held in a temporary relay table. Your open Juncts tab picks it up, runs it against the local data, and returns the result through the same table.&lt;/p&gt;

&lt;p&gt;What that means for your data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requests and results are encrypted (AES-256-GCM) in the relay table, deleted when the request completes, and expire after 50 seconds.&lt;/li&gt;
&lt;li&gt;Message text passes through the backend in transit only. Juncts doesn't store it at rest beyond that window.&lt;/li&gt;
&lt;li&gt;Tool results contain the conversation data the request needs: names, message text, timestamps and status. Service identifiers are replaced with opaque per-user tokens. Profile, conversation and attachment URLs, your own handle, emails and phone numbers aren't returned.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the work happens in your tab, the assistant reaches your inbox whenever your Juncts tab is open, with no second copy of your messages anywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plan limits and the activity log
&lt;/h2&gt;

&lt;p&gt;Every operation reserves an action count first. Starter includes 100 agent actions a week, where an action is one change (a triage step, a message, a draft). Reading, syncing, undo and discarding drafts are free; Pro is unlimited. Every executed operation is written to an activity log (time, operation, client name, ok or failed, short summary), and Settings, AI &amp;amp; Agents shows the latest entries.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd like feedback on
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Is the 50-second expiry the right trade-off between reliability and exposure?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Demo with fictional data, no signup: &lt;a href="https://juncts.com/app/inbox?demo=1&amp;amp;utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch-nov26" rel="noopener noreferrer"&gt;https://juncts.com/app/inbox?demo=1&amp;amp;utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch-nov26&lt;/a&gt; . Docs: &lt;a href="https://juncts.com/docs/mcp-cloud-connectors?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch-nov26" rel="noopener noreferrer"&gt;https://juncts.com/docs/mcp-cloud-connectors?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch-nov26&lt;/a&gt; . Privacy: &lt;a href="https://juncts.com/privacy" rel="noopener noreferrer"&gt;https://juncts.com/privacy&lt;/a&gt;. I make Juncts, and I read every comment: &lt;a href="https://juncts.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch-nov26" rel="noopener noreferrer"&gt;https://juncts.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch-nov26&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>productivity</category>
      <category>chrome</category>
    </item>
  </channel>
</rss>
