API Reference
API Reference Overview
Complete API reference for MemoFS npm packages: @memofs/core, @memofs/server, @memofs/mcp-server, and @memofs/connectors.
Welcome to the MemoFS API Reference documentation.
MemoFS's application programming interfaces are structured around modular, scoped npm packages.
Core Packages
@memofs/core: The central memory runtime, virtual AgentFS, graph engine, and hybrid recall router.@memofs/cli: The command-line interface, configuration generator, and programmatic CLI runner.@memofs/server: The hosted, self-deployable server wrapping the memory engine behind a JSON-RPC 2.0 API.@memofs/mcp-server: Exposes memory-control tools to AI agents using the Model Context Protocol.@memofs/connectors: Local ingestion plug-in framework for loading third-party sources (e.g. GitHub, Notion).
Provider Adapters
@memofs/adapter-openai: Hosted vector embeddings via OpenAItext-embedding-3.@memofs/adapter-voyage: Domain embeddings (voyage-4/3.5) and neural reranking (rerank-2.5-lite).@memofs/adapter-transformers: 100% offline in-process ONNX embeddings (Xenova/bge-small-en-v1.5).@memofs/adapter-workers-ai: Cloudflare serverless GPU entity extraction with Llama 3.1 8B.@memofs/adapter-r2: Content-addressed Cloudflare R2 blob client for serverless storage.@memofs/adapter-turso: Manifest metadata and serialized transaction locking over Turso/libSQL.@memofs/adapter-ai-sdk: Vercel AI SDK tools, prompt context builders, and multi-tenant scoping.
Developer Utilities
@memofs/json-rpc: Validation schemas and types for the JSON-RPC 2.0 protocol.@memofs/testing: Reusable contract tests, mock fakes, and test fixtures.@memofs/benchmark-kit: Workloads and statistical runners to profile memory components.