fix: rework lifecycle management to optimize cloud deployment (#320)

Signed-off-by: phernandez <paul@basicmachines.co>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Paul Hernandez
2025-09-28 15:11:38 -05:00
committed by GitHub
parent 324844a670
commit ea2e93d926
3 changed files with 7 additions and 39 deletions
+2 -4
View File
@@ -17,6 +17,8 @@ import basic_memory.mcp.tools # noqa: F401 # pragma: no cover
# Import prompts to register them
import basic_memory.mcp.prompts # noqa: F401 # pragma: no cover
from loguru import logger
import threading
from basic_memory.services.initialization import initialize_file_sync
@app.command()
@@ -50,10 +52,6 @@ def mcp(
os.environ["BASIC_MEMORY_MCP_PROJECT"] = project_name
logger.info(f"MCP server constrained to project: {project_name}")
# Use unified thread-based sync approach for both transports
import threading
from basic_memory.services.initialization import initialize_file_sync
app_config = ConfigManager().config
def run_file_sync():