MarsNMe

io.github.Marsmanleo由 GitHub 帳號 Marsmanleo 發布v0.3.2更新於 Oct 24, 2026

Agent-agnostic memory backend that preserves continuity between humans and AI over time.

已驗證STDIO僅桌面資料庫知識與記憶

概覽

AI 產生的概覽

一個本機 MCP 閘道,為 AI 助理提供持久記憶後端,透過 Supabase 資料庫跨工作階段保存與檢索上下文。

可以做什麼
依設定檔(profile)儲存與檢索記憶項目,讓對話之間保持連續性(清單中未列出具體工具)。在本機以 streamable HTTP 提供記憶工具,端點為 POST /mcp,並提供 GET /health 健康檢查。使用 Jina 嵌入實現語意記憶搜尋。依設定檔 ID 隔離記憶資料,並可選擇啟用 Bearer 權杖或 OAuth 保護 MCP 呼叫。
適用情境
當你希望助理跨工作階段記住人物、偏好或先前的上下文,並願意執行一個由自己 Supabase 專案支撐的本機閘道時使用。適合單一使用者或少數具名設定檔共用一個記憶庫的桌面環境。
執行需求
需要 Node.js 20 或更新版本,透過 npx 執行。需要一個已套用所需資料庫移轉的 Supabase 專案,以及 SUPABASE_BASE_URL 和 SUPABASE_SERVICE_ROLE_KEY。語意搜尋需要 JINA_API_KEY 中的 Jina API 金鑰。MCP_PROFILE 為必填,PORT 為選填。僅支援桌面端。
安裝前請注意
Supabase service role 金鑰會繞過資料列層級安全性,應妥善保密,並且只指向自己掌控的資料庫。記憶內容會傳送到 Supabase,用於嵌入時還會傳送到 Jina。閘道會寫入你的資料庫,升級時需以具備 DDL 權限的角色執行移轉。Bearer 或 OAuth 保護為選項,未設定時不會啟用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MarsNMe,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@marsnme/mcp-gateway

[MarsNMe demo]

MarsNMe MCP Gateway for memory tools over streamable HTTP transport.

This package runs an MCP server at POST /mcp and exposes health status at GET /health.

Requirements

  • Node.js >=20
  • Supabase project with required schema migrations applied
  • Jina API key for embedding-based memory search

Quick start (npx)

bash
MCP_PROFILE=coco \SUPABASE_BASE_URL=https://<your-project-ref>.supabase.co \SUPABASE_SERVICE_ROLE_KEY=<your-service-role-key> \JINA_API_KEY=<your-jina-api-key> \npx -y @marsnme/mcp-gateway

After startup:

  • Health: http://127.0.0.1:18790/health
  • MCP endpoint: http://127.0.0.1:18790/mcp

Required environment variables

  • MCP_PROFILE
    • Any lowercase profile ID matching ^[a-z][a-z0-9_-]*$ (for example: coco, toto, my-agent)
    • Legacy built-in IDs: coco and toto
  • SUPABASE_BASE_URL
    • Your Supabase REST project URL
  • SUPABASE_SERVICE_ROLE_KEY (recommended) or SUPABASE_SERVICE_KEY
    • Service role key used for database operations
  • JINA_API_KEY
    • Required for semantic search / embedding features

Common optional environment variables

  • PORT
    • Overrides the HTTP port used by the gateway
    • If omitted, the gateway resolves a profile-based default:
      • coco → 18790
      • toto → 18791
      • other profile IDs → deterministic port in 20000-29999
  • MCP_REQUIRE_BEARER
    • Set true to require Authorization: Bearer <token> on MCP calls
  • MCP_OAUTH_ENABLED
    • OAuth endpoints are enabled by default (set false to disable)
  • MCP_CLIENT_ID and MCP_CLIENT_SECRET
    • Optional static OAuth client credentials

Minimal validation

Check service health:

bash
curl -sS http://127.0.0.1:18790/health

List tools:

bash
curl -sS http://127.0.0.1:18790/mcp \  -H 'content-type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Deployment safety gate (before restart)

For upgrades, run database migrations with an explicit DDL-capable role and gate schema compatibility before restarting services.

Recommended role guidance:

  • Use a role that can execute DDL on target schemas.
  • On Supabase-hosted Postgres this is typically supabase_admin (not postgres).

Schema gate command:

bash
bash deploy/phase2/pre_deploy_schema_gate.sh \  --db-url "<postgres://supabase_admin:<password>@<host>:5432/postgres>" \  --profiles coco,toto \  --expected-role supabase_admin
  • If gate exits non-zero, stop deployment and do not restart services.

Database setup and full onboarding

For migrations and full setup details:

來源:marsnme-supabase/README.md,提交 cf67212

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.3.2最新Oct 18, 2026
  2. v0.3.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分