Skip to main content
OpenCode integrates with EchoVault via MCP. One command installs the MCP server entry, and OpenCode automatically uses memory tools during sessions.

Installation

1

Install EchoVault

pip install git+https://github.com/mraza007/echovault.git
memory init
2

Run setup

memory setup opencode
This writes the MCP server config to ~/.config/opencode/opencode.json.
3

Restart OpenCode

Restart OpenCode to load the new MCP server.

What gets installed

The setup command adds an mcp entry to ~/.config/opencode/opencode.json:
{
  "mcp": {
    "echovault": {
      "type": "local",
      "command": ["memory", "mcp"]
    }
  }
}
OpenCode spawns memory mcp at session start and gains access to three tools:
  • memory_save
  • memory_search
  • memory_context
OpenCode uses a different MCP config schema than Claude Code and Cursor. The setup command handles this automatically.

Project-scoped installation

To install memory for a specific project instead of globally:
cd ~/my-project
memory setup opencode --project
This writes opencode.json in the project root instead of ~/.config/opencode/opencode.json. OpenCode loads project-local config when available.
memory setup opencode
# Writes to: ~/.config/opencode/opencode.json

Config file locations

ScopeConfig fileUsed when
Global~/.config/opencode/opencode.jsonNo project-local config exists
Projectopencode.jsonPresent in project root
If both files exist, OpenCode prioritizes the project-local opencode.json.

Uninstalling

To remove EchoVault from OpenCode:
memory uninstall opencode
This removes the echovault entry from ~/.config/opencode/opencode.json. For project-scoped installs:
memory uninstall opencode --project
This removes the entry from opencode.json.
Your memory vault at ~/.memory/vault/ is not deleted. Only the MCP config is removed.

Usage

Once installed, OpenCode automatically:
  • Calls memory_context --project at session start to load recent memories
  • Calls memory_search <query> when searching for relevant context
  • Calls memory_save to persist decisions, bugs, and learnings
You don’t need to prompt OpenCode to use memory. The MCP tool descriptions instruct it to save and retrieve automatically.
Use memory config to verify your setup and check the effective memory home path.

OpenCode MCP schema

OpenCode uses a different MCP config format than other agents:
{
  "mcp": {
    "echovault": {
      "type": "local",
      "command": ["memory", "mcp"]
    }
  }
}
Compare this to Claude Code and Cursor:
{
  "mcpServers": {
    "echovault": {
      "command": "memory",
      "args": ["mcp"],
      "type": "stdio"
    }
  }
}
The setup command handles this schema difference automatically.

Build docs developers (and LLMs) love