SDK catalog / Memory
Memory
alpha 0.3.0-rc.3
Published preview for @wf/agent-memory@0.3.0-rc.3. Follow the registry guide and review compatibility before installing.
Join the alpha Sign in with Google, then add your name. We review alpha access requests.
// Everything a host writes to get durable project memory over MCP.
//
// There is no provider adapter to implement, no bounds table to fill in, and no
// lifecycle loop to run. Point it at a YAML file, or at nothing.
import { createMcpServer, createMemoryClient } from '@brightops/agent-memory'
const client = createMemoryClient(process.argv[2] ?? './memory-server.yaml')
const server = createMcpServer(client, { log: line => process.stderr.write(`${line}\n`) })
server.startHttp() // only listens when http.enabled is true in the file
server.startStdio()