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 集成