SDK catalog / Agent Memory

Agent Memory

preview 0.3.0-alpha.1

Preview documentation for @workforce-sdk/agent-memory@0.3.0-alpha.1. Existing legacy downloads may use a different API; this page does not announce a new release.

// 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 '@workforce-sdk/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()