Expand description
OpenCode installer adapter.
§What we touch
~/.opencode/config.json—mcpServers.spoolentry~/.opencode/hooks.json— hook entries for on_session_start, on_session_end pointing to our hook scripts~/.opencode/hooks/spool-*.sh— two hook scripts
§OpenCode hook format
OpenCode uses a flat hooks.json with the shape:
{
"hooks": {
"on_session_start": [{"command": "...", "timeout_ms": 5000}],
"on_session_end": [{"command": "...", "timeout_ms": 10000}]
}
}Same flat format as Codex but with only two hook events.
§Binary resolution
Same strategy as Claude/Codex/Cursor: default to
~/.cargo/bin/spool-mcp, with --binary-path as an escape hatch.