forked from Intina47/context-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
stephen edited this page Feb 17, 2026
·
3 revisions
- Node.js 20+
- pnpm 9+
- PostgreSQL 15+ (local container or external DB)
- Docker / Docker Compose (recommended for local bootstrap)
Application DB rule:
-
memory-coreusesDATABASE_URLonly. -
POSTGRES_*are local compose postgres bootstrap vars only.
Key variables:
DATABASE_URL-
MEMORY_CORE_API_KEYorMEMORY_CORE_API_KEYS MEMORY_CORE_SEED_ADMIN_KEYMEMORY_CORE_URLMEMORY_CORE_WORKSPACE_KEYNEXT_PUBLIC_MEMORY_CORE_URL
-
MEMORY_CORE_API_KEY- Runtime bearer token used by clients (mcp-adapter/admin scripts) to call memory-core.
- If this key is present in env, memory-core treats it as an env-admin key.
-
MEMORY_CORE_SEED_ADMIN_KEY- Used only during
pnpm db:seedto create/update (upsert) one admin key row in DB tableapi_keys. - If omitted, seed falls back to
MEMORY_CORE_API_KEY.
- Used only during
Upsert means:
- insert when key does not exist
- update when key already exists
- so repeated
db:seedruns are safe (idempotent)
Recommended setup:
- Local/dev: set both to the same strong value.
- Production: use
MEMORY_CORE_API_KEYfor runtime, and rundb:seedwith a controlledMEMORY_CORE_SEED_ADMIN_KEYonly when needed.
-
docker-compose.yml: image-based deployment (Dockge/server) -
docker-compose.dev.yml: source-build local development - Optional image overrides:
MEMORY_CORE_IMAGE,MCP_ADAPTER_IMAGE,ADMIN_UI_IMAGE - Default images:
ghcr.io/stephen-kim/claustrum-memory-core:latestghcr.io/stephen-kim/claustrum-mcp-adapter:latestghcr.io/stephen-kim/claustrum-admin-ui:latest
pnpm install
cp .env.example .env
docker compose -f docker-compose.dev.yml --profile localdb up -d --buildLocal endpoints:
- memory-core:
http://localhost:8080 - admin-ui:
http://localhost:3000
pnpm install
cp .env.example .env
docker compose --profile localdb up -d postgres
pnpm db:migrate
pnpm db:seed
pnpm dev- Copy env file:
cp .env.example .env- Set external DB URL:
DATABASE_URL=postgres://<user>:<pass>@<rds-endpoint>:5432/<db>?sslmode=require- Start services (no localdb profile):
docker compose up -d- In containers, do not use
localhostfor inter-service calls. - Use compose service names (
memory-core,postgres). - Browser-facing URL (
NEXT_PUBLIC_MEMORY_CORE_URL) should belocalhostor your domain.
~/.codex/config.toml
[mcp_servers.memory-core]
command = "pnpm"
args = ["--filter", "@claustrum/mcp-adapter", "start"]
[mcp_servers.memory-core.env]
MEMORY_CORE_URL = "http://127.0.0.1:8080"
MEMORY_CORE_API_KEY = "<runtime-api-key>"
MEMORY_CORE_WORKSPACE_KEY = "personal"
MCP_ADAPTER_LOG_LEVEL = "error"