io.github.AINative-Studio/ainative-opencode-memory-mcp

السجل الرسمي أدوات المطورين

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package ainative-opencode-memory-mcp
Claude Code
claude mcp add ainative-opencode-memory-mcp -- npx -y ainative-opencode-memory-mcp@0.1.2
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "ainative-opencode-memory-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "ainative-opencode-memory-mcp@0.1.2"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. ainative-opencode-memory-mcp
  2. Why
  3. Install
  4. Setup (OpenCode)
  5. Tools
  6. Example
  7. Environment

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

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):
{
  "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.

الأسئلة الشائعة

ما هو io.github.AINative-Studio/ainative-opencode-memory-mcp؟

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

كيف أثبّت io.github.AINative-Studio/ainative-opencode-memory-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add ainative-opencode-memory-mcp -- npx -y ainative-opencode-memory-mcp@0.1.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.AINative-Studio/ainative-opencode-memory-mcp إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.AINative-Studio/ainative-opencode-memory-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.AINative-Studio/ainative-opencode-memory-mcp؟

ينشره AINative-Studio. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.