Skip to main content

MCP tools

Engram ships an MCP server binary engram-mcp that exposes tools to MCP-capable hosts.

Registration

engram link <target> also installs the known MCP registration for that target by default.

ScopePath
Workspace (most hosts).mcp.json
Cursor workspace.cursor/mcp.json
OpenCode workspacemcp field in opencode.json / opencode.jsonc
Global Claude~/.claude/mcp.json
Global Gemini / AntigravityGemini MCP config file
Global OpenCodemcp field in ~/.config/opencode/opencode.jsonc / opencode.json
Global CursorBundled in the local plugin
Global Windsurf~/.codeium/windsurf/mcp_config.json

Windsurf workspace MCP is skipped because the official contract documents only user-level MCP config.

Tools

MCP hosts should treat engram_save and engram_autosave as proposal-only tools; they must still route final writes through the human-visible CLI approval flow. engram_load defaults to --for-agents (opt-out via forAgents: false).

Accept-all rule

Explicit /engram save-session --accept-all requests, including the shortcut /engram ss -a, should use the CLI write path because MCP autosave remains proposal-only. The counted shortcut /engram ss -a last 50 sessions should use engram save-session --query-level 50 --accept-all.

OpenCode MCP entry

"engram": {
"type": "local",
"command": ["engram-mcp"],
"args": [],
"enabled": true
}

The MCP server implements the standard JSON-RPC handshake (initialize, notifications/initialized, tools/list, and tools/call).

Next steps