Replication of an OKF bundle across machines, plus read-only MCP access.
Spec of record: okf-plugin#74
Companion: okf-time-series (#72) · okf-pointers (#73)
- Push replication. A directory watcher observes
$SECOND_BRAIN_ROOTand hands changed files to a transport. Destination from$OKF_REPLICA_DEST— never a hard-coded host. - Watcher coalesces: debounce (~2s) plus batching. Finalizing a node does not fire one rsync per file write.
scripts/remote_rsync.py push— rsync push, or S3 put when$OKF_REPLICA_DESTiss3://…. Pull remains a backstop (pull/ legacy flags). No--deleteby default.scripts/remote_mcp.py— allow-listed read verbs:list_nodes,get_node,walk_chronological,query,reverse_pointers,replica_status.- stdio is the default transport (unauthenticated).
--bind host:portruns an OAuth 2.1 / OIDC resource server. Binding withoutOKF_MCP_ISSUERis a startup error. See docs/AUTH.md. queryis cursor-paginated. Not offset.reverse_pointersreadspointer.linkfiles and returns the inverse name on inbound edges.- Forbidden: any
write_*,summarize,compact,saliency_detect,agentic_search(the last is a skill, not a verb). Auth does not add verbs. - S3 writer path is watcher put; consumer path is a daemon pulling to local disk. See docs/S3.md.
Never hard-code a private remote. Northstar / Lumenfield fiction only.
Same family as second-brain-core. See docs/.
MIT. Copyright 2026 Rick Hightower / contributors.