Skip to main content
Glama

basic-memory

background_sync.py726 B
import asyncio from loguru import logger from basic_memory.config import get_project_config from basic_memory.sync import SyncService, WatchService async def sync_and_watch( sync_service: SyncService, watch_service: WatchService ): # pragma: no cover """Run sync and watch service.""" config = get_project_config() logger.info(f"Starting watch service to sync file changes in dir: {config.home}") # full sync await sync_service.sync(config.home) # watch changes await watch_service.run() async def create_background_sync_task( sync_service: SyncService, watch_service: WatchService ): # pragma: no cover return asyncio.create_task(sync_and_watch(sync_service, watch_service))

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/basicmachines-co/basic-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server