fix: add cloud_mode check to initialize_app() · basicmachines-co/basic-memory@ef7adb7 · GitHub
Skip to content

Commit ef7adb7

Browse files
phernandezclaude
andcommitted
fix: add cloud_mode check to initialize_app()
MCP server crashes in cloud mode with: ValueError: DATABASE_URL must be set when using Postgres backend Root cause: initialize_app() did not check cloud_mode_enabled before trying to initialize the database. Only ensure_initialization() had the check. In cloud mode, tenant DBs are per-request via headers, not via DATABASE_URL environment variable. Also includes minor formatting fix in telemetry.py. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 3cd9178 commit ef7adb7

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/basic_memory/cli/commands/telemetry.py

Lines changed: 3 additions & 1 deletion

src/basic_memory/services/initialization.py

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)