Ainative Opencode Memory Mcp

io.github.AINative-Studio由 GitHub 帳號 AINative-Studio 發布v0.1.2更新於 Oct 24, 2026

Persistent cross-session memory for OpenCode and MCP coding agents, powered by ZeroDB.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

一個本機 MCP 伺服器,透過 AINative 的 ZeroDB 為 OpenCode 程式代理提供跨工作階段的持久長期記憶,可保存並檢索程式庫的決策、慣例與注意事項。

可以做什麼
將事實、決策與程式片段儲存為記憶,可附加標籤,供日後工作階段使用。對已儲存的記憶進行語意搜尋。在任務或工作階段開始時重新載入相關脈絡。查看已儲存記憶的數量。清除記憶,可依標籤篩選。
適用情境
適合在多個工作階段中長期使用 OpenCode 程式代理時,讓它記住架構決策、命名慣例、變通做法與團隊偏好,而不必每次重新學習。
執行需求
透過 stdio 在本機執行,通常使用 npx,因此需要 Node.js。需要 AINative API 金鑰,透過環境變數 AINATIVE_API_KEY 提供;README 提到付費的 Hobbyist 方案及 7 天免費試用。選用環境變數 OPENCODE_MEMORY_NAMESPACE 與 AINATIVE_API_URL 用於設定記憶命名空間與 API 位址。需要連線至 AINative API 的網路存取。
安裝前請注意
需要 AINATIVE_API_KEY 憑證,必須妥善保密。該服務在試用期後據稱為付費,可能產生費用。儲存的記憶會傳送至第三方 AINative 的 ZeroDB 服務,應避免儲存密鑰或敏感程式碼。清除記憶工具會刪除已儲存的記憶,可依標籤篩選。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

ainative-opencode-memory-mcp

Persistent memory for OpenCode agents. OpenCode is stateless — it forgets everything between sessions. This MCP server gives your OpenCode coding agent long-term memory powered by AINative ZeroDB: store a codebase's decisions, conventions, and gotchas once, and recall them in every future session.

Why

OpenCode restarts with a blank slate every time. Your agent re-learns your architecture, re-asks the same questions, re-makes the same mistakes. With this MCP, it remembers:

  • Architecture & design decisions
  • Naming conventions and code style
  • Gotchas, workarounds, and "don't touch X" rules
  • User/team preferences

Install

bash
npm install -g ainative-opencode-memory-mcp

Setup (OpenCode)

  1. Get a free API key → ainative.studio/signup (Hobbyist $5/mo, 7-day free trial).
  2. Add to your OpenCode MCP config (opencode.json / MCP settings):
json
{  "mcpServers": {    "ainative-memory": {      "command": "npx",      "args": ["-y", "ainative-opencode-memory-mcp"],      "env": { "AINATIVE_API_KEY": "your-key-here" }    }  }}

Tools

ToolWhat it does
opencode_store_memoryRemember a fact/decision/snippet (optional tags)
opencode_search_memorySemantic search over everything remembered
opencode_recall_contextReload relevant memories at the start of a task
opencode_memory_statsHow many memories are stored
opencode_clear_memoryWipe memories (optionally by tag)

Example

At the start of a session, have your agent call opencode_recall_context with the file/task you're working on — it reloads what it knew. As you work, opencode_store_memory captures new decisions. Next session, it all comes back.

Environment

VarDefaultNotes
AINATIVE_API_KEY—Required. Free at ainative.studio
OPENCODE_MEMORY_NAMESPACEopencodeIsolate memories per project
AINATIVE_API_URLhttps://api.ainative.studioOverride for self-host

Built by AINative Studio — the AI-native dev platform with 65+ models, one OpenAI-compatible endpoint, and persistent agent memory. MIT licensed.

來源:README.md,提交 745bb37

工具

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

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

其他 Memory 整合