@cerefox/memory 0.5.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,224 +1,104 @@
1
- # Quickstart -- Zero to First Document in 15 Minutes
1
+ # Quickstart -- Zero to First Document in 5 Minutes
2
2
 
3
- Get Cerefox running locally and ingest your first document.
3
+ Get Cerefox running on your machine via the npm install path. **No source
4
+ clone, no Python required.**
4
5
 
5
- > **Upgrading from a previous version?** See the [Upgrading Guide](upgrading.md) for migration steps instead.
6
+ > **Upgrading from an earlier version?** See [`upgrading.md`](upgrading.md)
7
+ > for migration steps instead.
6
8
 
7
- ## Two install paths
9
+ ---
8
10
 
9
- | You want | Read this section | Why |
10
- |---|---|---|
11
- | **Use Cerefox as an MCP server / CLI** | "Path A — npm install" below (fastest) | One install, callable from any directory. No Python needed. Recommended for end users since v0.5. |
12
- | **Contribute to Cerefox, run the web UI, deploy schema** | "Path B — source checkout" below | Full source: schema deploy, web UI, ingestion pipeline. Required for contributors and for the web UI (until v0.6). |
11
+ ## Prerequisites
13
12
 
14
- You'll need a Supabase project (free tier works) and an OpenAI API key for either
15
- path those go into `.env`. The npm install asks for them interactively via
16
- `cerefox init`; the source checkout has you write them into a `.env` file
17
- yourself.
13
+ - **Node.js 20+** (`node --version`) or **Bun 1.0+** (`bun --version`)
14
+ - A **Supabase account** -- [supabase.com](https://supabase.com) (free tier works) -- with the Cerefox schema deployed (see [Note on schema deploy](#note-on-schema-deploy) below)
15
+ - An **OpenAI API key** -- [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
18
16
 
19
17
  ---
20
18
 
21
- ## Path A — npm install (fastest, 5 min total)
22
-
23
- For end users who just want the Cerefox CLI + MCP server on their machine.
19
+ ## 1. Install
24
20
 
25
- ### A.1 Prerequisites
26
- - Node.js 20+ (`node --version`) or Bun 1.0+ (`bun --version`)
27
- - A Supabase account -- [supabase.com](https://supabase.com) (free tier works)
28
- - An OpenAI API key -- [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
29
- - **Schema must be deployed** to your Supabase. Until v0.6 ports the schema
30
- deploy to TypeScript, this still requires the source checkout (Path B) once,
31
- or someone else who has the source checkout to deploy it for you.
32
-
33
- ### A.2 Install
34
21
  ```bash
35
- # One-line install (detects Bun or installs it, falls back to npm):
36
22
  curl -fsSL https://github.com/fstamatelopoulos/cerefox/releases/latest/download/install.sh | sh
37
-
38
- # Or direct:
39
- bun add -g @cerefox/memory # preferred
40
- # npm install -g @cerefox/memory # alternative
41
23
  ```
42
24
 
43
- ### A.3 First-run setup
44
- ```bash
45
- cerefox init # 5-step interactive setup
46
- cerefox doctor # verify the install
47
- ```
25
+ Detects Bun (or installs it) and falls back to npm. After install,
26
+ `cerefox` is on your PATH.
48
27
 
49
- ### A.4 Wire up your MCP client
28
+ Direct alternatives:
50
29
  ```bash
51
- # Run the ones that apply:
52
- cerefox configure-agent --tool claude-code
53
- cerefox configure-agent --tool claude-desktop
30
+ bun add -g @cerefox/memory # preferred (faster cold start)
31
+ npm install -g @cerefox/memory # equivalent
54
32
  ```
55
33
 
56
- `--tool claude-code` shells out to Claude Code's own `claude mcp add --scope user`
57
- to register the server (Claude Code knows where to store the config).
58
- `--tool claude-desktop` writes the JSON config file directly.
59
-
60
- Then restart your MCP client. **Path A users skip ahead to "[Connect an AI agent](#8-connect-an-ai-agent-optional-5-min)" (step 8) for the verification prompt.** Steps 3–7
61
- below are Path B-only (setting up `.env` by hand, deploying the schema, the web UI).
62
-
63
- ---
64
-
65
- ## Path B — source checkout (contributors, schema deploy, web UI)
66
-
67
- For anyone hacking on Cerefox itself, deploying the schema for the first time,
68
- or running the web UI.
69
-
70
- ### B.1 Prerequisites
71
-
72
- - Python 3.11+ (`python3 --version`)
73
- - Node.js 18+ and npm (`node --version`)
74
- - `uv` package manager (`pip install uv`)
75
- - A Supabase account -- [supabase.com](https://supabase.com) (free tier works)
76
- - An OpenAI API key -- [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
77
-
78
- ### B.2 Install Cerefox (2 min)
34
+ ## 2. First-run setup
79
35
 
80
36
  ```bash
81
- git clone https://github.com/fstamatelopoulos/cerefox.git
82
- cd cerefox
83
- uv sync
37
+ cerefox init # 5-step interactive setup — prompts for the credentials above
38
+ cerefox doctor # green across the board if everything's wired correctly
84
39
  ```
85
40
 
86
- > No heavy ML model downloads needed -- embeddings are handled by the OpenAI API.
41
+ `cerefox init` validates each entry against the live service before saving,
42
+ writes `~/.cerefox/.env` (mode 0600), and optionally ingests the bundled
43
+ self-docs into the `_cerefox-self-docs` project so agents can search for
44
+ Cerefox usage guidance.
87
45
 
88
- ---
89
-
90
- ## 3. Set up Supabase (5 min)
91
-
92
- 1. Create a new Supabase project at [app.supabase.com](https://app.supabase.com).
93
- 2. Go to **Project Settings → API → Project URL** and copy it. Also note your project ref (the slug in the URL, e.g. `abcd1234`).
94
- 3. Go to **Project Settings → API Keys** and copy the **Secret key** (`sb_secret_…`). The legacy `service_role` JWT also works if you prefer; either goes into `CEREFOX_SUPABASE_KEY`. See [`setup-supabase.md` → Supabase API keys (2026)](setup-supabase.md#supabase-api-keys-2026) for the full key story (including why the anon key, if you ever need it, must currently stay as the legacy JWT — `sb_publishable_…` does not work for Edge Functions).
95
- 4. Go to **Project Settings → Database → Connection pooling** and copy the **Session Pooler** URI (host ends `.pooler.supabase.com`, port `5432`). If you only see the Transaction Pooler in the dashboard, take that URI and change `:6543` → `:5432`. **Do not use port 6543** — Transaction Pooler does not support DDL. See [`setup-supabase.md` → Connection pooling (2026)](setup-supabase.md#connection-pooling-2026) for context.
96
-
97
- Create a `.env` file:
98
-
99
- ```env
100
- CEREFOX_SUPABASE_URL=https://your-project-ref.supabase.co
101
- CEREFOX_SUPABASE_KEY=sb_secret_...your-supabase-secret-key...
102
- CEREFOX_DATABASE_URL=postgresql://postgres.your-project-ref:your-db-password@aws-N-region.pooler.supabase.com:5432/postgres?sslmode=require
103
- OPENAI_API_KEY=sk-...your-openai-key...
104
- ```
105
-
106
- The username must include the `.<project-ref>` suffix (e.g. `postgres.abcd1234`) — without it, Supabase returns "Tenant or user not found".
107
-
108
- ---
109
-
110
- ## 4. Deploy the schema (1 min)
46
+ ## 3. Wire up an AI agent
111
47
 
112
48
  ```bash
113
- uv run python scripts/db_deploy.py
49
+ # Run the commands that apply to your setup:
50
+ cerefox configure-agent --tool claude-code # Claude Code (~/.claude.json)
51
+ cerefox configure-agent --tool claude-desktop # Claude Desktop config
114
52
  ```
115
53
 
116
- You should see all steps complete with a final `Done` message.
54
+ Then restart your client:
55
+ - **Claude Code**: start a fresh session — running sessions cache the MCP tool list.
56
+ - **Claude Desktop**: Cmd+Q to fully quit, then relaunch.
117
57
 
118
- Verify:
119
- ```bash
120
- uv run python scripts/db_status.py
121
- ```
58
+ Cursor, OpenAI Codex CLI, and Gemini CLI ship in a follow-up (v0.6+).
59
+ For manual setup of those today, see [`connect-agents.md`](connect-agents.md).
122
60
 
123
- This should show all checks passed.
61
+ ## 4. Try it
124
62
 
125
- ---
63
+ From your AI agent, ask:
126
64
 
127
- ## 5. Ingest your first document (2 min)
65
+ > "Use cerefox_search to look for 'cerefox conventions' and tell me what you find."
128
66
 
129
- Have a markdown file? Ingest it:
130
-
131
- ```bash
132
- uv run cerefox ingest my-notes.md
133
- ```
134
-
135
- Or paste directly from the terminal:
136
-
137
- ```bash
138
- echo "# My First Note
139
-
140
- This is the beginning of my personal knowledge base." | uv run cerefox ingest --paste --title "First Note"
141
- ```
142
-
143
- ---
144
-
145
- ## 6. Build and start the web app (1 min)
146
-
147
- Build the React frontend:
148
-
149
- ```bash
150
- cd frontend && npm install && npm run build && cd ..
151
- ```
152
-
153
- Start the web app:
154
-
155
- ```bash
156
- uv run cerefox web
157
- ```
158
-
159
- Open [http://localhost:8000/app/](http://localhost:8000/app/) -- your dashboard is live.
160
-
161
- > The root URL (`http://localhost:8000/`) redirects to `/app/` automatically.
67
+ You should see results from the bundled self-docs.
162
68
 
163
69
  ---
164
70
 
165
- ## 7. Search your knowledge (30 sec)
71
+ ## Note on schema deploy
166
72
 
167
- From the CLI:
73
+ If your Supabase project is **brand new**, the Cerefox schema needs to be
74
+ deployed once before the CLI works. Until v0.6 ports the schema deploy to
75
+ TypeScript, this is the one step that still requires the source-checkout
76
+ path:
168
77
 
169
78
  ```bash
170
- uv run cerefox search "my first note"
171
- ```
172
-
173
- Or use the web UI search page at [http://localhost:8000/app/search](http://localhost:8000/app/search).
174
-
175
- ---
176
-
177
- ## 8. Connect an AI agent (optional, 5 min)
178
-
179
- Cerefox ships a built-in MCP server. Add it to Claude Desktop's config file
180
- (`~/Library/Application Support/Claude/claude_desktop_config.json`):
181
-
182
- ```json
183
- {
184
- "mcpServers": {
185
- "cerefox": {
186
- "command": "uv",
187
- "args": ["--directory", "/path/to/cerefox", "run", "cerefox", "mcp"]
188
- }
189
- }
190
- }
79
+ git clone https://github.com/fstamatelopoulos/cerefox.git && cd cerefox
80
+ uv sync
81
+ # Add CEREFOX_DATABASE_URL to your .env, then:
82
+ uv run python scripts/db_deploy.py
191
83
  ```
192
84
 
193
- Replace `/path/to/cerefox` with the absolute path to this checkout. Restart Claude Desktop.
194
-
195
- > **Recommended: remote MCP** -- if you deployed the Edge Functions (see the main
196
- > README), use the remote MCP path instead -- no Python install needed on the client machine.
197
- > See `docs/guides/connect-agents.md` for Path A-Remote.
198
- >
199
- > **ChatGPT** does not support MCP -- use a Custom GPT with
200
- > Edge Functions instead (see `docs/guides/connect-agents.md`, Path B).
201
-
202
- For full setup details (remote MCP, Cursor, cloud clients, GPT Actions), see `docs/guides/connect-agents.md`.
85
+ Detailed walkthrough: [`setup-supabase.md`](setup-supabase.md).
86
+ After v0.6.0, `cerefox init` will offer to do this for you.
203
87
 
204
88
  ---
205
89
 
206
- ## You're done!
207
-
208
- **What's next:**
209
- - Ingest a directory of notes: `cerefox ingest-dir ./notes/ --recursive`
210
- - Re-embed existing content: `cerefox reindex`
211
- - Create a backup: `python scripts/backup_create.py`
212
- - Sync project docs into your knowledge base: `python scripts/sync_docs.py`
213
- (this also ingests the agent reference guides -- `AGENT_GUIDE.md` and `AGENT_QUICK_REFERENCE.md` --
214
- so your AI agents can search for "How AI Agents Use Cerefox" and learn how to use the tools)
215
- - See all commands: `cerefox --help`
216
-
217
- **More guides:**
218
- - `AGENT_GUIDE.md` -- comprehensive reference for AI agents using Cerefox tools
219
- - `AGENT_QUICK_REFERENCE.md` -- minimal quick reference card for AI agents
220
- - `docs/guides/setup-supabase.md` -- detailed Supabase setup
221
- - `docs/guides/configuration.md` -- all configuration options
222
- - `docs/guides/connect-agents.md` -- connecting AI agents via MCP and Edge Functions
223
- - `docs/guides/setup-local.md` -- local Docker setup (no Supabase account needed)
224
- - `docs/guides/upgrading.md` -- upgrading from a previous version
90
+ ## What's next
91
+
92
+ - **Ingest your notes**: `cerefox ingest my-notes.md`, or
93
+ `cerefox ingest-dir ./notes/ --recursive`
94
+ - **Search from the CLI**: `cerefox search "your query"`
95
+ - **Discover all commands**: `cerefox --help`
96
+ - **Run the web UI** (Python-only until v0.6): [`setup-local.md`](setup-local.md)
97
+ - **Connect more AI clients** (Cursor, Codex, ChatGPT GPT Actions, etc.):
98
+ [`connect-agents.md`](connect-agents.md)
99
+ - **Configuration reference**: [`configuration.md`](configuration.md)
100
+ - **Backup + restore**: [`ops-scripts.md`](ops-scripts.md)
101
+
102
+ For the agent-facing reference (what tools agents have, how to use them well),
103
+ read `AGENT_QUICK_REFERENCE.md` in the repo root or have your agent run
104
+ `cerefox_get_help` from any MCP-connected client.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerefox/memory",
3
- "version": "0.5.4",
3
+ "version": "0.6.0",
4
4
  "description": "Cerefox — user-owned shared memory for AI agents. The local TypeScript runtime: stdio MCP server in v0.4; CLI binary added in v0.5; in-process web server in v0.6; ingestion pipeline in v0.7.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/fstamatelopoulos/cerefox",
@@ -39,12 +39,15 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
+ "@hono/node-server": "^2.0.4",
42
43
  "@modelcontextprotocol/sdk": "^1.0.0",
43
44
  "@supabase/supabase-js": "^2.45.0",
44
45
  "cli-progress": "^3.12.0",
45
46
  "commander": "^12.1.0",
47
+ "hono": "^4.12.23",
46
48
  "picocolors": "^1.0.0",
47
49
  "prompts": "^2.4.2",
50
+ "smol-toml": "^1.6.1",
48
51
  "zod": "^3.23.0"
49
52
  },
50
53
  "devDependencies": {
@@ -58,7 +61,9 @@
58
61
  "build": "bun build src/bin/cerefox.ts --outdir dist/bin --target node --format esm",
59
62
  "clean": "rm -rf dist docs AGENT_GUIDE.md AGENT_QUICK_REFERENCE.md",
60
63
  "bundle-docs": "bun run ../../scripts/bundle_package_docs.ts",
61
- "prepublishOnly": "bun run clean && bun run bundle-docs && bun run build",
64
+ "build-frontend": "cd ../../frontend && bun install && bun run build",
65
+ "bundle-frontend": "rm -rf dist/frontend && mkdir -p dist/frontend && cp -R ../../frontend/dist/. dist/frontend/",
66
+ "prepublishOnly": "bun run clean && bun run bundle-docs && bun run build-frontend && bun run bundle-frontend && bun run build",
62
67
  "smoke": "node dist/bin/cerefox.js --help && node dist/bin/cerefox.js mcp --help"
63
68
  },
64
69
  "publishConfig": {
@@ -1,260 +0,0 @@
1
- # Migrating to Cerefox v0.4.0 (historical)
2
-
3
- > ## ⚠ Historical document — do not use the snippets in this file
4
- >
5
- > This guide documents the **v0.4.0 → v0.4.3 migration window** (May 2026).
6
- > The `cerefox-mcp` bin name referenced throughout was dropped in **v0.5.1**;
7
- > the soft-wrapper described in some sections was removed in **v0.5.2**.
8
- > The per-client config snippets below **will not work on @cerefox/memory v0.5+**.
9
- >
10
- > **If you're upgrading today, use the current guide instead:**
11
- > → [`migration-v0.5.md`](migration-v0.5.md) — covers Python `cerefox` → v0.5.x
12
- > AND v0.4.x → v0.5.x in a single document, with the v0.5.0/v0.5.1/v0.5.2/v0.5.3
13
- > transitions all explained.
14
- >
15
- > This file is preserved so historical CHANGELOG entries that reference it
16
- > still resolve. It's not maintained.
17
-
18
- ---
19
-
20
- **Original TL;DR (preserved verbatim)**: nothing urgent. Your existing `cerefox mcp` configs keep
21
- working unchanged. The Python `cerefox mcp` command is now a soft
22
- wrapper that transparently uses the new TypeScript MCP server if it's
23
- installed, falling back to the legacy Python implementation otherwise.
24
- Switch to the npm-installed TS server at your convenience for faster
25
- boot times and fewer Python dependencies.
26
-
27
- This guide is for **existing users** of `cerefox mcp` who want to
28
- optionally upgrade. **New users** should follow
29
- [`docs/guides/connect-agents.md`](connect-agents.md) instead — that's
30
- the canonical configuration recipe per MCP client.
31
-
32
- ## What changed in v0.4.0
33
-
34
- - **`@cerefox/memory`** is a new npm package containing the Cerefox
35
- local stdio MCP server. Same 10 MCP tools, same protocol, faster
36
- boot.
37
- - **The Edge Function (`cerefox-mcp`) shares tool handlers** with the
38
- new local server via `_shared/mcp-tools/`. One source of truth; no
39
- drift.
40
- - **`cerefox_get_help`** is a new MCP tool (10 total now, was 9). Layer
41
- 3 of MCP discoverability — agents can now retrieve
42
- `AGENT_QUICK_REFERENCE.md` content over MCP without filesystem
43
- access.
44
- - **`cerefox mcp` (Python CLI)** starts the in-tree Python MCP server.
45
- (v0.4–v0.5.1 advertised a "soft wrapper" that tried to delegate to the
46
- npm package's TS MCP server via npx, but the probe was unreliable
47
- under `uv run`-launched MCP-client contexts and caused infinite
48
- recursion. v0.5.2 stripped the wrapper; the Python path is now
49
- always the Python server, and the npm/TS path is configured
50
- explicitly. See `docs/guides/migration-v0.5.md` § "v0.5.2 fixed the
51
- soft wrapper" for the migration story.)
52
-
53
- ## The optional one-time upgrade
54
-
55
- If you have Node 20+ installed, install `@cerefox/memory` globally:
56
-
57
- ```bash
58
- npm install -g @cerefox/memory
59
- # or, if you have Bun:
60
- bun install -g @cerefox/memory
61
- ```
62
-
63
- After this, the npm `cerefox` is on your PATH. To actually have your
64
- MCP client use the TS server, you need to **update your MCP client
65
- config explicitly** — v0.5.2 removed the auto-delegation. The
66
- canonical config invokes the npm bin directly; see the next section.
67
-
68
- (v0.4–v0.5.1 *thought* it had auto-delegation, but the soft wrapper
69
- was unreliable under `uv run`-launched contexts and caused infinite
70
- recursion when the MCP client launched it. v0.5.2 took the simpler
71
- "each path is explicit" stance.)
72
-
73
- You can also point your MCP client directly at `cerefox mcp` (the
74
- TS-CLI subcommand) and bypass the Python path entirely:
75
-
76
- ### Claude Code
77
-
78
- **Old:**
79
-
80
- ```bash
81
- claude mcp add cerefox -- uv run --directory /path/to/cerefox cerefox mcp
82
- ```
83
-
84
- **New (optional):**
85
-
86
- ```bash
87
- claude mcp add cerefox -- npx -y --package=@cerefox/memory cerefox-mcp
88
- ```
89
-
90
- ### Cursor
91
-
92
- **Old** (`mcp.json` in your project or `~/.cursor/mcp.json`):
93
-
94
- ```json
95
- {
96
- "mcpServers": {
97
- "cerefox": {
98
- "command": "uv",
99
- "args": ["run", "--directory", "/path/to/cerefox", "cerefox", "mcp"]
100
- }
101
- }
102
- }
103
- ```
104
-
105
- **New (optional):**
106
-
107
- ```json
108
- {
109
- "mcpServers": {
110
- "cerefox": {
111
- "command": "npx",
112
- "args": ["-y", "--package=@cerefox/memory", "cerefox-mcp"]
113
- }
114
- }
115
- }
116
- ```
117
-
118
- ### Claude Desktop
119
-
120
- **Old** (`claude_desktop_config.json`):
121
-
122
- ```json
123
- {
124
- "mcpServers": {
125
- "cerefox": {
126
- "command": "uv",
127
- "args": ["--directory", "/path/to/cerefox", "run", "cerefox", "mcp"]
128
- }
129
- }
130
- }
131
- ```
132
-
133
- **New (optional):**
134
-
135
- ```json
136
- {
137
- "mcpServers": {
138
- "cerefox": {
139
- "command": "npx",
140
- "args": ["-y", "--package=@cerefox/memory", "cerefox-mcp"]
141
- }
142
- }
143
- }
144
- ```
145
-
146
- ### Codex CLI
147
-
148
- **Old** (`~/.codex/config.toml`):
149
-
150
- ```toml
151
- [mcp_servers.cerefox]
152
- command = "uv"
153
- args = ["--directory", "/path/to/cerefox", "run", "cerefox", "mcp"]
154
- ```
155
-
156
- **New (optional):**
157
-
158
- ```toml
159
- [mcp_servers.cerefox]
160
- command = "npx"
161
- args = ["-y", "--package=@cerefox/memory", "cerefox-mcp"]
162
- ```
163
-
164
- ## Environment
165
-
166
- The new TS server reads `.env` the same way the Python CLI does (per
167
- v0.3.0's `_resolve_config_dir()`):
168
-
169
- 1. `CEREFOX_CONFIG_DIR` env var override.
170
- 2. `./.env` in the current working directory.
171
- 3. `~/.cerefox/.env`.
172
-
173
- For most users with an existing Cerefox install, your `.env` is already
174
- where it needs to be. If you want to verify:
175
-
176
- ```bash
177
- npx --package=@cerefox/memory cerefox-mcp --help
178
- ```
179
-
180
- (That's the help text, not a server start — safe to run anywhere.)
181
-
182
- ## Schema-version-mismatch banner
183
-
184
- The new server prints a one-line warning to stderr at boot if the
185
- bundled `@cerefox/memory` schema version doesn't match what's deployed
186
- to your Supabase. Run `uv run python scripts/db_deploy.py` from the
187
- repo to update.
188
-
189
- ## Falling back
190
-
191
- If the npm path doesn't work for any reason (npx missing, package not
192
- installed, network issue during `npx` resolution), `cerefox mcp` falls
193
- back to the legacy Python server with a one-line stderr nudge. Your
194
- MCP client never notices — same stdio interface, same tools.
195
-
196
- To force the legacy path even when `@cerefox/memory` is installed:
197
- uninstall it (`npm uninstall -g @cerefox/memory`) or invoke the Python
198
- CLI from a shell without `npx` in `$PATH`.
199
-
200
- ## `cerefox_get_help` — the new tool
201
-
202
- If you use Cerefox through an MCP client and ever wonder "wait, what's
203
- the right way to do X in Cerefox?", you can now ask the server
204
- directly:
205
-
206
- - `cerefox_get_help()` — returns the full `AGENT_QUICK_REFERENCE.md`
207
- plus a section index.
208
- - `cerefox_get_help(topic: "links")` — returns just the cross-document
209
- linking section.
210
- - `cerefox_get_help(topic: "update")` — returns the update workflow
211
- sections.
212
-
213
- The topic match is a case-insensitive substring against H2 headings.
214
- Both the new TS server AND the legacy Python fallback expose this tool
215
- — consistent surface regardless of which path serves your session.
216
-
217
- ## When v0.5.0 ships
218
-
219
- The TypeScript CLI lands in v0.5.0. At that point `@cerefox/memory`
220
- will gain a second binary (`cerefox`) for the full CLI surface
221
- (`cerefox search`, `cerefox ingest`, etc.) plus a `cerefox
222
- configure-agent` command that writes the right MCP config for each
223
- client automatically. For now, the manual recipes above are the way.
224
-
225
- ## Known gotchas
226
-
227
- - **`npx` from inside an npm workspace can fail with "command not
228
- found"** even when the package is correctly published. Running
229
- `npx -y --package=@cerefox/memory cerefox-mcp` from the root of a
230
- surrounding npm-workspace monorepo (your own project) confuses npx's
231
- bin-resolution path. Symptoms: `sh: cerefox-mcp: command not found`
232
- even though the published package has the bin entry. Workarounds —
233
- any one of these works:
234
- - Use `bunx` instead: `bunx --package @cerefox/memory cerefox-mcp` —
235
- cleanly handles workspace contexts.
236
- - Run from a non-workspace directory (e.g. `cd /tmp` first).
237
- - Install globally and invoke from PATH:
238
- `npm install -g @cerefox/memory` then `cerefox-mcp`.
239
- - When configuring an MCP client (Claude Code, Cursor, Claude
240
- Desktop, Codex CLI), the launched process inherits the client's
241
- own working directory rather than your shell's, so this gotcha
242
- usually doesn't bite real MCP usage — only manual `npx` smoke
243
- tests run from a project root.
244
-
245
- - **The minimum npm version for OIDC publish is 11.5.1.** The shipped
246
- `release.yml` workflow already pins this; only relevant if you're
247
- forking the project for your own publish target.
248
-
249
- ## What didn't change
250
-
251
- - The Edge Function (remote MCP) URL and auth: unchanged. Same
252
- Bearer-with-anon-JWT pattern; the EF just shares its tool handlers
253
- with the local TS server now.
254
- - The Postgres RPC contracts: unchanged. v0.4.0 ships zero schema
255
- changes — the `cerefox_schema_version()` RPC introduced in v0.3.0
256
- still returns `0.3.1`. (The mismatch warning at TS server startup
257
- fires until you redeploy from `main`, which is what you'd do
258
- whenever the schema version actually bumps.)
259
- - Web UI, ingestion pipeline, CLI subcommands: all unchanged in v0.4.
260
- Those migrate in v0.6 and v0.7.