<?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: marsmanleo</title>
    <description>The latest articles on DEV Community by marsmanleo (@marsmanleo).</description>
    <link>https://dev.to/marsmanleo</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3954098%2F52494df1-056e-4019-a5a2-34de81319eb4.png</url>
      <title>DEV Community: marsmanleo</title>
      <link>https://dev.to/marsmanleo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marsmanleo"/>
    <language>en</language>
    <item>
      <title>Claude.md is for Context. MarsNMe is for Continuity.</title>
      <dc:creator>marsmanleo</dc:creator>
      <pubDate>Wed, 27 May 2026 10:20:19 +0000</pubDate>
      <link>https://dev.to/marsmanleo/claudemd-is-for-context-marsnme-is-for-continuity-1jn8</link>
      <guid>https://dev.to/marsmanleo/claudemd-is-for-context-marsnme-is-for-continuity-1jn8</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;MarsNMe&lt;/strong&gt; is an open-source, agent-agnostic memory backend that gives your AI continuity across sessions — not just context injection, but a growing relationship. Here's how we built it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1nofxpmvszwjnspvqxwf.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1nofxpmvszwjnspvqxwf.jpeg" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Every time you start a new conversation with an AI assistant, it forgets everything. Your preferences, your projects, your context — gone.&lt;/p&gt;

&lt;p&gt;Most memory solutions either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lock you into one AI provider&lt;/li&gt;
&lt;li&gt;Store memories as flat key-value pairs (no semantic search)&lt;/li&gt;
&lt;li&gt;Require complex infrastructure to self-host&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We wanted something different.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;MarsNMe is a &lt;strong&gt;Streamable HTTP MCP server&lt;/strong&gt; that any MCP-compatible client can connect to. One &lt;code&gt;npx&lt;/code&gt; command, one &lt;code&gt;.env&lt;/code&gt; file, and your AI has memory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;MCP_PROFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my-agent npx @marsnme/mcp-gateway
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Stack
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Tech&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Protocol&lt;/td&gt;
&lt;td&gt;MCP (Streamable HTTP)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;Supabase (PostgreSQL + pgvector)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embeddings&lt;/td&gt;
&lt;td&gt;Jina AI (jina-embeddings-v3)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runtime&lt;/td&gt;
&lt;td&gt;Node.js 20+, TypeScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auth&lt;/td&gt;
&lt;td&gt;Optional OAuth / Bearer token&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Two-tier Memory Model
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Short-term&lt;/strong&gt;: &lt;code&gt;&amp;lt;profile&amp;gt;.memories&lt;/code&gt; — daily context, expires in 30 days&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-term&lt;/strong&gt;: &lt;code&gt;&amp;lt;profile&amp;gt;.marsvault_chunks&lt;/code&gt; — distilled insights, semantic recall&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Short-term memory captures everything. Long-term memory is promoted explicitly by the agent (or via our Dream Runner).&lt;/p&gt;

&lt;h3&gt;
  
  
  Multi-Profile Isolation
&lt;/h3&gt;

&lt;p&gt;One gateway, multiple agents. Each &lt;code&gt;MCP_PROFILE&lt;/code&gt; gets its own Supabase schema:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;MCP_PROFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;coco npx @marsnme/mcp-gateway   &lt;span class="c"&gt;# port 18790&lt;/span&gt;
&lt;span class="nv"&gt;MCP_PROFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;toto npx @marsnme/mcp-gateway   &lt;span class="c"&gt;# port 18791&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No cross-contamination. No shared tables.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 13 MCP Tools
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;session_boot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Pre-load context at session start&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;insert_memory&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Store short-term memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;recall&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Semantic recall from long-term chunks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;memory_ingest&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Promote insight to long-term storage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;search_memories&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Jina embedding search&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;health_check&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Coverage + conflict diagnostics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;soft_forget&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Soft-delete a memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;explain_memory&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Trace memory provenance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;...&lt;/td&gt;
&lt;td&gt;(13 total)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The Hardest Part
&lt;/h2&gt;

&lt;p&gt;The hardest part wasn't the embeddings or the storage. It was &lt;strong&gt;teaching AI assistants when to save vs. when to recall&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We ended up writing a &lt;code&gt;session_boot&lt;/code&gt; tool that runs at the start of every conversation and injects the most relevant memories automatically. The agent doesn't have to think about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Set up .env (Supabase + Jina keys)&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env

&lt;span class="c"&gt;# 2. Run migrations&lt;/span&gt;
npx supabase db push &lt;span class="nt"&gt;--db-url&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;your-db-url&amp;gt;"&lt;/span&gt;

&lt;span class="c"&gt;# 3. Start&lt;/span&gt;
&lt;span class="nv"&gt;MCP_PROFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my-agent npx @marsnme/mcp-gateway

&lt;span class="c"&gt;# 4. Connect Claude Desktop&lt;/span&gt;
&lt;span class="c"&gt;# Add to claude_desktop_config.json:&lt;/span&gt;
&lt;span class="c"&gt;# { "mcpServers": { "marsnme": { "url": "http://127.0.0.1:18790/mcp" } } }&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;LobeHub marketplace listing&lt;/li&gt;
&lt;li&gt;Smithery registry&lt;/li&gt;
&lt;li&gt;Web-based "Try it" demo (no install required)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/Marsmanleo/MarsNMe" rel="noopener noreferrer"&gt;https://github.com/Marsmanleo/MarsNMe&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Website&lt;/strong&gt;: &lt;a href="https://marsnme.com" rel="noopener noreferrer"&gt;https://marsnme.com&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;npm&lt;/strong&gt;: &lt;code&gt;npx @marsnme/mcp-gateway&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;License&lt;/strong&gt;: Apache 2.0&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built by Mars Group. Designed for humans and AI to grow together.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>memory</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
