@facthouse/mcp 0.28.0 → 0.28.1
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.
- package/README.md +15 -15
- package/dist/cli/index.d.ts +5 -21
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +6 -783
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init-knobs.d.ts +2 -0
- package/dist/cli/init-knobs.d.ts.map +1 -1
- package/dist/cli/init-knobs.js +7 -1
- package/dist/cli/init-knobs.js.map +1 -1
- package/dist/cli/init.d.ts +2 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +23 -2
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/run.d.ts +31 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +787 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -272
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +274 -0
- package/dist/server.js.map +1 -0
- package/dist/suppress-sqlite-warning.js +15 -3
- package/dist/suppress-sqlite-warning.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Needs Node 22.5 or 24+.
|
|
|
18
18
|
|
|
19
19
|
<!-- x-release-please-start-version -->
|
|
20
20
|
```bash
|
|
21
|
-
npm install -g @facthouse/mcp@0.28.
|
|
21
|
+
npm install -g @facthouse/mcp@0.28.1
|
|
22
22
|
facthouse init
|
|
23
23
|
```
|
|
24
24
|
<!-- x-release-please-end -->
|
|
@@ -35,7 +35,7 @@ To skip the wizard (record only — no transcript copy), paste this. The server
|
|
|
35
35
|
"mcpServers": {
|
|
36
36
|
"facthouse": {
|
|
37
37
|
"command": "npx",
|
|
38
|
-
"args": ["-y", "@facthouse/mcp@0.28.
|
|
38
|
+
"args": ["-y", "@facthouse/mcp@0.28.1"]
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -132,19 +132,19 @@ Both are read-only views over the same database the tools query. Clients that ne
|
|
|
132
132
|
|
|
133
133
|
The MCP JSON starts the server via npx and does not need a global install. npm install -g puts facthouse on PATH for init, settings, stats, and inspect. The same CLI without PATH is npx -y -p "@facthouse/mcp" -- facthouse — pin the version; quote the package so PowerShell does not splat. -p and -- stop an older global binary winning. npx -y @facthouse/mcp with no -p / facthouse is the server; do not run it as a shell command for init, settings, or stats. The MCP paste starts the server. It does not put facthouse on PATH. To inspect the file from a terminal, see CLI below.
|
|
134
134
|
|
|
135
|
-
These CLI commands work in bash, zsh, and PowerShell. Quote @facthouse/mcp in PowerShell. Git Bash /c/... paths are not PowerShell; use C:/... and pass --data instead of cd or export. ~/ is expanded on every platform. WSL uses /mnt/c/.... FACTHOUSE_DATA on an MCP snippet applies only to that server process. A terminal facthouse command needs --data, or FACTHOUSE_DATA in the environment that shell inherits. Hooks do not see mcp.json env.
|
|
135
|
+
These CLI commands work in bash, zsh, and PowerShell. Quote @facthouse/mcp in PowerShell. Git Bash /c/... paths are not PowerShell; use C:/... and pass --data instead of cd or export. In Git Bash, quote a backslash path or write C:/... — unquoted \ is an escape. ~/ is expanded on every platform. WSL uses /mnt/c/.... FACTHOUSE_DATA on an MCP snippet applies only to that server process. A terminal facthouse command needs --data, or FACTHOUSE_DATA in the environment that shell inherits. Hooks do not see mcp.json env.
|
|
136
136
|
|
|
137
137
|
<!-- x-release-please-start-version -->
|
|
138
138
|
```bash
|
|
139
|
-
npm install -g @facthouse/mcp@0.28.
|
|
139
|
+
npm install -g @facthouse/mcp@0.28.1
|
|
140
140
|
facthouse init --yes
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
npx -y -p "@facthouse/mcp@0.28.
|
|
145
|
-
npx -y -p "@facthouse/mcp@0.28.
|
|
146
|
-
npx -y -p "@facthouse/mcp@0.28.
|
|
147
|
-
npx -y -p "@facthouse/mcp@0.28.
|
|
144
|
+
npx -y -p "@facthouse/mcp@0.28.1" -- facthouse init --yes
|
|
145
|
+
npx -y -p "@facthouse/mcp@0.28.1" -- facthouse settings --json
|
|
146
|
+
npx -y -p "@facthouse/mcp@0.28.1" -- facthouse stats
|
|
147
|
+
npx -y -p "@facthouse/mcp@0.28.1" -- facthouse inspect
|
|
148
148
|
```
|
|
149
149
|
<!-- x-release-please-end -->
|
|
150
150
|
|
|
@@ -288,7 +288,7 @@ facthouse inspect --entity Helios --limit 20 --output ~/inspect.html
|
|
|
288
288
|
|
|
289
289
|
### Another store
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
The store is this directory. Clients share it by using the same path. A second store is a second directory, not a second install. The default MCP server name is `facthouse`. Splitting is not a filter on which client wrote the row. Work and personal is one reason to split, not a required setup.
|
|
292
292
|
|
|
293
293
|
A non-default data directory prints a distinct MCP server name so two stores can share one `mcp.json`. Init against each extra directory prints that snippet. Example:
|
|
294
294
|
|
|
@@ -298,12 +298,12 @@ A non-default data directory prints a distinct MCP server name so two stores can
|
|
|
298
298
|
"mcpServers": {
|
|
299
299
|
"facthouse-personal": {
|
|
300
300
|
"command": "npx",
|
|
301
|
-
"args": ["-y", "@facthouse/mcp@0.28.
|
|
301
|
+
"args": ["-y", "@facthouse/mcp@0.28.1"],
|
|
302
302
|
"env": { "FACTHOUSE_DATA": "C:\\Users\\alex\\.facthouse-personal" }
|
|
303
303
|
},
|
|
304
304
|
"facthouse-work": {
|
|
305
305
|
"command": "npx",
|
|
306
|
-
"args": ["-y", "@facthouse/mcp@0.28.
|
|
306
|
+
"args": ["-y", "@facthouse/mcp@0.28.1"],
|
|
307
307
|
"env": { "FACTHOUSE_DATA": "C:\\Users\\alex\\.facthouse-work" }
|
|
308
308
|
}
|
|
309
309
|
}
|
|
@@ -329,7 +329,7 @@ Example — placeholders only; do not put a real password in a committed file:
|
|
|
329
329
|
"mcpServers": {
|
|
330
330
|
"facthouse": {
|
|
331
331
|
"command": "npx",
|
|
332
|
-
"args": ["-y", "@facthouse/mcp@0.28.
|
|
332
|
+
"args": ["-y", "@facthouse/mcp@0.28.1"],
|
|
333
333
|
"env": {
|
|
334
334
|
"FACTHOUSE_DATA": "C:\\Users\\alex\\.facthouse-work",
|
|
335
335
|
"FACTHOUSE_STORAGE": "postgres",
|
|
@@ -381,7 +381,7 @@ Do not install record hooks on this store — both write the same rows. Facthous
|
|
|
381
381
|
"hooks": [
|
|
382
382
|
{
|
|
383
383
|
"type": "command",
|
|
384
|
-
"command": "npx -y -p @facthouse/mcp@0.28.
|
|
384
|
+
"command": "npx -y -p @facthouse/mcp@0.28.1 -- facthouse notify compaction --data /absolute/path/to/the-same-store"
|
|
385
385
|
}
|
|
386
386
|
]
|
|
387
387
|
}
|
|
@@ -464,7 +464,7 @@ Throwaway store, not the capture path for a real Claude Code or Cursor home. The
|
|
|
464
464
|
<!-- x-release-please-start-version -->
|
|
465
465
|
```bash
|
|
466
466
|
export FACTHOUSE_DATA=/tmp/facthouse-demo
|
|
467
|
-
om() { npx -y -p "@facthouse/mcp@0.28.
|
|
467
|
+
om() { npx -y -p "@facthouse/mcp@0.28.1" -- facthouse "$@"; }
|
|
468
468
|
|
|
469
469
|
om init --yes
|
|
470
470
|
|
|
@@ -479,7 +479,7 @@ om stats
|
|
|
479
479
|
|
|
480
480
|
```powershell
|
|
481
481
|
$env:FACTHOUSE_DATA = Join-Path $env:TEMP "facthouse-demo"
|
|
482
|
-
function om { npx -y -p "@facthouse/mcp@0.28.
|
|
482
|
+
function om { npx -y -p "@facthouse/mcp@0.28.1" -- facthouse @args }
|
|
483
483
|
om init --yes
|
|
484
484
|
om record --role user --content "I prefer dark mode in every editor, and I never want telemetry enabled."
|
|
485
485
|
om record --role user --content "I am allergic to shellfish, so avoid seafood restaurants when booking anything."
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../suppress-sqlite-warning.js";
|
|
3
|
-
import { type ConsolidationResult } from "../intelligence/consolidate.js";
|
|
4
|
-
import { type ConsolidateSteps } from "../intelligence/steps.js";
|
|
5
|
-
import type { IntelligenceProvider } from "../intelligence/types.js";
|
|
6
|
-
import type { EmbeddingProvider } from "../embedding/types.js";
|
|
7
|
-
import { type ServerConfig } from "../types/config.js";
|
|
8
|
-
interface ConsolidateStoreOpts {
|
|
9
|
-
/** undefined: default cap; null: no cap; number: that many oldest lines. */
|
|
10
|
-
extractLimit?: number | null;
|
|
11
|
-
/** Init historic window. See ConsolidateCaller.extractSince. */
|
|
12
|
-
extractSince?: Date;
|
|
13
|
-
/** Print the result object instead of the human summary. */
|
|
14
|
-
json?: boolean;
|
|
15
|
-
/** Print nothing on success (the init offer prints its own lines). */
|
|
16
|
-
print?: boolean;
|
|
17
|
-
}
|
|
18
2
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
3
|
+
* Thin loader so `suppress-sqlite-warning` evaluates before `node:sqlite` is
|
|
4
|
+
* even translated. A static import of sqlite in this file (via the rest of
|
|
5
|
+
* the CLI graph) emits ExperimentalWarning during graph load, before any
|
|
6
|
+
* wrap of process.emitWarning can run.
|
|
22
7
|
*/
|
|
23
|
-
|
|
24
|
-
export {};
|
|
8
|
+
import "../suppress-sqlite-warning.js";
|
|
25
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA,OAAO,+BAA+B,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,OAAO,+BAA+B,CAAC"}
|