Overview
Thememory mcp command starts the EchoVault Model Context Protocol (MCP) server using stdio transport. This server provides memory operations as MCP tools that agents can call directly.
Syntax
What is MCP?
The Model Context Protocol (MCP) is a standard for connecting AI agents to external tools and data sources. EchoVault’s MCP server exposes memory operations (save, search, context) as MCP tools.MCP vs Hooks
- Hooks: Run at session start, inject context into prompt
- MCP: Runs continuously, agents call tools on-demand during conversation
Usage
Direct execution
In agent configuration
Typically, you don’t run this command manually. Instead, configure your agent to launch it: OpenCode MCP config:Installation
Automatic (recommended)
Manual
Add to your agent’s MCP configuration file: Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
~/.config/opencode/mcp.json):
Available MCP Tools
When the server is running, agents can call these tools:memory_save
Save a new memory. Parameters:title(string, required)what(string, required)why(string, optional)impact(string, optional)tags(array, optional)category(string, optional)related_files(array, optional)details(string, optional)source(string, optional)project(string, optional)
memory_search
Search memories. Parameters:query(string, required)limit(integer, optional, default: 5)project(boolean, optional)source(string, optional)
memory_context
Get memory pointers for context. Parameters:project(boolean, optional)source(string, optional)limit(integer, optional, default: 10)query(string, optional)semantic_mode(string, optional)
memory_details
Get full details for a memory. Parameters:memory_id(string, required)
memory_delete
Delete a memory. Parameters:memory_id(string, required)
Examples
Testing the server
You can test the MCP server manually using stdio:Agent calling tools
When properly configured, agents can call tools: Agent action:Debugging
Check if server is running
In your agent’s logs, look for:Enable debug logging
Set environment variable before starting:Test connection
Use an MCP inspector tool:Troubleshooting
Server won’t start
Check command path:Agent can’t connect
Check agent config:Tools not appearing
Restart agent: After configuring MCP, restart your agent to pick up the new server. Check server logs: Look for errors in agent’s debug output.Server Lifecycle
- Start: Agent launches
memory mcpas subprocess - Initialize: Server sends capabilities and tool list
- Running: Agent calls tools via JSON-RPC over stdio
- Shutdown: Agent closes stdin, server exits cleanly
Transport Details
stdio (standard I/O)
- Input: JSON-RPC messages on stdin
- Output: JSON-RPC responses on stdout
- Errors: Logged to stderr (visible in agent logs)
Message format
Request:Use Cases
OpenCode integration
The primary use case:Claude Desktop
For Claude Desktop app:Custom MCP client
Build your own:Related Commands
memory setup opencode- Install MCP server for OpenCodememory uninstall opencode- Remove MCP servermemory save- CLI equivalent of memory_save toolmemory search- CLI equivalent of memory_search tool
The server runs as a long-lived process managed by your agent. Don’t run
memory mcp manually unless you’re testing or building a custom integration.