Skip to content

fix: mcp install password gap + per-profile sidecar path#58

Merged
LiranCohen merged 1 commit into
mainfrom
fix/mcp-sidecar
Feb 25, 2026
Merged

fix: mcp install password gap + per-profile sidecar path#58
LiranCohen merged 1 commit into
mainfrom
fix/mcp-sidecar

Conversation

@LiranCohen

Copy link
Copy Markdown
Contributor

Summary

Fixes #56

  • Password in MCP config: serverEntry() now includes MEMORYD_PASSWORD in the env block when the variable is set, so MCP clients launched via stdio can authenticate without prompting on stdin.
  • Password warning: After mcp install, prints a warning if MEMORYD_PASSWORD is not set, explaining that stdio transport will fail without it.
  • Per-profile sidecar path: main.ts now derives the sidecar SQLite path from the active profile (~/.enbox/profiles/<name>/index.db) instead of using the global ~/.memoryd/index.db. This prevents different identities from cross-contaminating the search index.

Tests

  • 5 new tests in tests/cli/mcp.spec.ts: password inclusion/omission in config, warning presence/absence
  • 1 new test in tests/config.spec.ts: per-profile sidecar path override

Verification

  • bun run build — zero errors
  • bun test .spec.ts — 255 tests pass (21 files)
  • bun run lint — zero warnings

…decar path

- serverEntry() now includes MEMORYD_PASSWORD in env when set
- warnIfNoPassword() prints a warning after install if MEMORYD_PASSWORD is unset
- main.ts derives sidecar path from active profile (~/.enbox/profiles/<name>/index.db)
  so different identities don't cross-contaminate the search index
- Add tests for password inclusion, warning, and per-profile sidecar override
@LiranCohen LiranCohen merged commit 4ebf731 into main Feb 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: mcp install generates non-functional config (missing password) and sidecar is not per-profile

1 participant