fix: rework lifecycle management to optimize cloud deployment (#320) · basicmachines-co/basic-memory@ea2e93d · GitHub
Skip to content

Commit ea2e93d

Browse files
phernandezclaude
andauthored
fix: rework lifecycle management to optimize cloud deployment (#320)
Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 324844a commit ea2e93d

3 files changed

Lines changed: 7 additions & 39 deletions

File tree

src/basic_memory/api/app.py

Lines changed: 5 additions & 4 deletions

src/basic_memory/cli/commands/mcp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# Import prompts to register them
1818
import basic_memory.mcp.prompts # noqa: F401 # pragma: no cover
1919
from loguru import logger
20+
import threading
21+
from basic_memory.services.initialization import initialize_file_sync
2022

2123

2224
@app.command()
@@ -50,10 +52,6 @@ def mcp(
5052
os.environ["BASIC_MEMORY_MCP_PROJECT"] = project_name
5153
logger.info(f"MCP server constrained to project: {project_name}")
5254

53-
# Use unified thread-based sync approach for both transports
54-
import threading
55-
from basic_memory.services.initialization import initialize_file_sync
56-
5755
app_config = ConfigManager().config
5856

5957
def run_file_sync():

src/basic_memory/mcp/server.py

Lines changed: 0 additions & 31 deletions

0 commit comments

Comments
 (0)