dreamd-mcp 1.2.1 → 1.2.2

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 CHANGED
@@ -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
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). Exports
7
- // below are for unit tests only; IDEs spawn this file as the MCP entrypoint.
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.1",
2
+ "version": "1.2.2",
3
3
  "binaries": {
4
4
  "linux-x86_64": {
5
- "sha256": "0483bc11f39e82da2e5252ed827ea2bdd731f036efa1d54bcb026324357f9df6"
5
+ "sha256": "5c6669744a6d3fc2c1a1df6f01aae0f787f5eed1c365a6490339ef035e49b0e4"
6
6
  },
7
7
  "darwin-x86_64": {
8
- "sha256": "6e773089e9d10d18dd42e51e656076dddb26451d2d4a9b40207a83e4efbd028c"
8
+ "sha256": "a6c3475e8c58fab397bee1efe5e9911e52e2e7eb5acb06ad3eaef477416eea98"
9
9
  },
10
10
  "darwin-aarch64": {
11
- "sha256": "34424620ab1c64bda9bf5e16eee44d3b9a8fa40e5031cc21fce127a1c979263d"
11
+ "sha256": "b7001b30e56aa9913acd634f6db14bdb0b9bd3dd1f916c13546a35e69eb36f51"
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.2.1",
4
+ "version": "1.2.2",
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",