dreamd-mcp 1.2.1 → 1.3.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.
- package/README.md +14 -2
- package/bin/dreamd-mcp.js +13 -4
- package/manifest.json +4 -4
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ After a `forget`, `doctor --provenance` reports the removed event's old ledger e
|
|
|
46
46
|
|
|
47
47
|
## How agents learn
|
|
48
48
|
|
|
49
|
-
Agents write episodes (what happened, how painful it was, how important) through the MCP tool `append_node` and recall them with `search_nodes`; each hit carries its source harness. A learning cycle (`dreamd dream`) clusters episodes by `skill_action`, promotes a recurring pattern into a lesson in `LESSONS.md` that cites its events, and commits the result to your project's git repo
|
|
49
|
+
Agents write episodes (what happened, how painful it was, how important) through the MCP tool `append_node` and recall them with `search_nodes`; each hit carries an `id` (`evt_` for an event, `lsn_` for a lesson) and its source harness. A learning cycle (`dreamd dream`) clusters episodes by `skill_action`, promotes a recurring pattern into a lesson in `LESSONS.md` that cites its events, and commits the result to your project's git repo as `dreamd: cycle YYYY-MM-DD`. That commit is skipped when a file holds a change no dream cycle wrote (a hand edit, `forget`, or `archive --force-unpin`). Appends and a cycle's own rewrites do not hold it. Recall ranks episodes and lessons with BM25 × salience (age decay, pain, importance, recurrence). Preview the next cycle with `npx -y dreamd-mcp dream --dry`.
|
|
50
50
|
|
|
51
51
|
## Install
|
|
52
52
|
|
|
@@ -106,7 +106,7 @@ It stops this `$HOME`'s local `dreamd mcp` / `dreamd watch` processes, removes t
|
|
|
106
106
|
| `--all-npx` | Wipe the **entire** `~/.npm/_npx` (every npx-cached package, not just dreamd), after a warning |
|
|
107
107
|
| `--quiet` / `-q` | Suppress non-essential output |
|
|
108
108
|
|
|
109
|
-
Left in place: `~/.agent/registry.toml`, `~/.agent/dreamd.log`, every project's `.agent/` store, and the login service (remove that with `dreamd service uninstall`). To wipe a project's store, delete `.agent/` and re-run `npx -y dreamd-mcp init` ([troubleshooting](https://github.com/botzrDev/dreamd/blob/main/docs/troubleshooting.md#how-do-i-reset-or-clear-memory)); back it up first if it has value.
|
|
109
|
+
Left in place: `~/.agent/registry.toml`, `~/.agent/dreamd.log`, `~/.agent/star-asked`, every project's `.agent/` store, and the login service (remove that with `dreamd service uninstall`). To wipe a project's store, delete `.agent/` and re-run `npx -y dreamd-mcp init` ([troubleshooting](https://github.com/botzrDev/dreamd/blob/main/docs/troubleshooting.md#how-do-i-reset-or-clear-memory)); back it up first if it has value.
|
|
110
110
|
|
|
111
111
|
**Then remove the client config entry.** `uninstall` does not edit harness configs. Delete the `dreamd` block from `.mcp.json`, Cursor settings or Cline `cline_mcp_settings.json` and reload the client, or the harness respawns dreamd next session.
|
|
112
112
|
|
|
@@ -141,6 +141,8 @@ done
|
|
|
141
141
|
|
|
142
142
|
Set `DREAMD_BIN=/path/to/dreamd` to use a local build instead of the cached release binary. This skips SHA-256 verification, so you must also set `DREAMD_BIN_ALLOW_UNVERIFIED=1`; `DREAMD_BIN` on its own is refused. Never point production MCP configs at an unverified binary.
|
|
143
143
|
|
|
144
|
+
The shim runs the binary, the cached release one or `DREAMD_BIN`, with `DREAMD_LAUNCHER=npx` set, so `dreamd setup`'s hints name the npx form (`npx -y dreamd-mcp watch`).
|
|
145
|
+
|
|
144
146
|
```sh
|
|
145
147
|
cargo install --path crates/dreamd-cli
|
|
146
148
|
export DREAMD_BIN=~/.cargo/bin/dreamd
|
|
@@ -173,6 +175,16 @@ Publishing is deliberately not automated; no workflow holds registry credentials
|
|
|
173
175
|
- [SPEC.md](https://github.com/botzrDev/dreamd/blob/main/SPEC.md): on-disk `.agent/` contract
|
|
174
176
|
- [docs/troubleshooting.md](https://github.com/botzrDev/dreamd/blob/main/docs/troubleshooting.md): common failures
|
|
175
177
|
|
|
178
|
+
## Support dreamd
|
|
179
|
+
|
|
180
|
+
dreamd is open source under Apache-2.0 and built by a small team. Sponsorship funds its core maintenance. You can sponsor dreamd on:
|
|
181
|
+
|
|
182
|
+
- [GitHub Sponsors](https://github.com/sponsors/botzrDev)
|
|
183
|
+
- [Patreon](https://www.patreon.com/c/dreamd_dev)
|
|
184
|
+
- [Ko-fi](https://ko-fi.com/dreamd_dev)
|
|
185
|
+
|
|
186
|
+
Sponsors are listed in the [repository README](https://github.com/botzrDev/dreamd#sponsors).
|
|
187
|
+
|
|
176
188
|
## License
|
|
177
189
|
|
|
178
190
|
Apache-2.0
|
package/bin/dreamd-mcp.js
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
// dreamd-mcp — npx download/verify/exec shim for the native `dreamd` binary.
|
|
5
5
|
// Flow: resolve platform → cache hit or GitHub release download → sha256 verify
|
|
6
|
-
// → exec. Env overrides: DREAMD_BIN (+ DREAMD_BIN_ALLOW_UNVERIFIED).
|
|
7
|
-
//
|
|
6
|
+
// → exec. Env overrides: DREAMD_BIN (+ DREAMD_BIN_ALLOW_UNVERIFIED). The shim
|
|
7
|
+
// sets DREAMD_LAUNCHER=npx for the binary it runs. Exports below are for unit
|
|
8
|
+
// tests only; IDEs spawn this file as the MCP entrypoint.
|
|
8
9
|
|
|
9
10
|
const https = require('https');
|
|
10
11
|
const fs = require('fs');
|
|
@@ -75,6 +76,13 @@ function resolveDreamdArgs(args) {
|
|
|
75
76
|
return DREAMD_SUBCOMMANDS.has(args[0]) ? args : ['mcp', ...args];
|
|
76
77
|
}
|
|
77
78
|
|
|
79
|
+
// The environment the shim runs `dreamd` with. `DREAMD_LAUNCHER=npx` tells
|
|
80
|
+
// `dreamd setup` to print `npx -y dreamd-mcp <command>` in its hints, because
|
|
81
|
+
// an npx install puts no `dreamd` on PATH (BZR-1469).
|
|
82
|
+
function childEnv(env) {
|
|
83
|
+
return { ...env, DREAMD_LAUNCHER: 'npx' };
|
|
84
|
+
}
|
|
85
|
+
|
|
78
86
|
// Leading top-level flags the shim answers itself (no binary download). Only the
|
|
79
87
|
// first token counts: `npx dreamd-mcp init --help` still routes to the binary.
|
|
80
88
|
// The shim handles these rather than forwarding them because `dreamd mcp <flag>`
|
|
@@ -283,7 +291,7 @@ async function main() {
|
|
|
283
291
|
'[dreamd-mcp] WARNING: DREAMD_BIN set — skipping sha256 verification. ' +
|
|
284
292
|
'Use only for local development builds.\n',
|
|
285
293
|
);
|
|
286
|
-
execFileSync(process.env.DREAMD_BIN, dreamdArgs, { stdio: 'inherit' });
|
|
294
|
+
execFileSync(process.env.DREAMD_BIN, dreamdArgs, { stdio: 'inherit', env: childEnv(process.env) });
|
|
287
295
|
return;
|
|
288
296
|
}
|
|
289
297
|
|
|
@@ -331,7 +339,7 @@ async function main() {
|
|
|
331
339
|
// Verify sha256 before every exec (not just on download)
|
|
332
340
|
verifyBinary(binaryPath, binaryEntry.sha256);
|
|
333
341
|
|
|
334
|
-
execFileSync(binaryPath, dreamdArgs, { stdio: 'inherit' });
|
|
342
|
+
execFileSync(binaryPath, dreamdArgs, { stdio: 'inherit', env: childEnv(process.env) });
|
|
335
343
|
}
|
|
336
344
|
|
|
337
345
|
if (require.main === module) {
|
|
@@ -349,6 +357,7 @@ if (require.main === module) {
|
|
|
349
357
|
module.exports = {
|
|
350
358
|
DREAMD_SUBCOMMANDS,
|
|
351
359
|
resolveDreamdArgs,
|
|
360
|
+
childEnv,
|
|
352
361
|
topLevelFlag,
|
|
353
362
|
isAllowedRedirectHost,
|
|
354
363
|
validateRedirect,
|
package/manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.3.0",
|
|
3
3
|
"binaries": {
|
|
4
4
|
"linux-x86_64": {
|
|
5
|
-
"sha256": "
|
|
5
|
+
"sha256": "ce8a64f1bac5e8ab48fe12c854f43bcd734e55ae0020acde2d25d02c31923488"
|
|
6
6
|
},
|
|
7
7
|
"darwin-x86_64": {
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "e6e0758b3a699c5bc1cbda4e90994f7f6ed365c5c5a01b26c1c13a5af12492c3"
|
|
9
9
|
},
|
|
10
10
|
"darwin-aarch64": {
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "935ed24eb1f5c03f7ddf84c450d65e17a0a7a0bcec13bfefc4d084c80c0dd4cb"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dreamd-mcp",
|
|
3
3
|
"mcpName": "io.github.botzrDev/dreamd",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "Agent memory you can audit. Every lesson cites its source; trace a bad memory and remove it with a receipt. Local-first MCP server for Claude Code, Cursor and Cline.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mcp",
|
|
@@ -41,5 +41,10 @@
|
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
43
|
"url": "git+https://github.com/botzrDev/dreamd.git"
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"funding": [
|
|
46
|
+
{ "type": "github", "url": "https://github.com/sponsors/botzrDev" },
|
|
47
|
+
{ "type": "patreon", "url": "https://www.patreon.com/c/dreamd_dev" },
|
|
48
|
+
{ "type": "ko-fi", "url": "https://ko-fi.com/dreamd_dev" }
|
|
49
|
+
]
|
|
45
50
|
}
|