Skip to content

Conversation

@phernandez
Copy link
Member

@phernandez phernandez commented Apr 6, 2025

This PR adds automatic file synchronization capabilities to the Model Context Protocol (MCP) server, fixing issue #53.

Changes

  • Added sync_changes configuration option to enable/disable real-time file synchronization
  • Implemented background watch service in the API server that:
    • Performs initial full sync of all files on startup
    • Continuously monitors for file changes (additions, modifications, moves, deletions)
    • Automatically indexes changes without requiring manual basic-memory sync commands
  • Added proper lifecycle management for the watch service
  • Updated configuration handling and logging for better visibility

This change creates a more seamless experience when using Basic Memory with Claude by ensuring all file changes are immediately available to the knowledge graph without manual intervention.

Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez
Copy link
Member Author

claude: can you give a PR description?

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2025

PR Description: Add Real-Time File Synchronization to MCP Server

This PR adds automatic file synchronization capabilities to the Model Context Protocol (MCP) server, fixing issue #53.

Changes

  • Added sync_changes configuration option to enable/disable real-time file synchronization
  • Implemented background watch service in the API server that:
    • Performs initial full sync of all files on startup
    • Continuously monitors for file changes (additions, modifications, moves, deletions)
    • Automatically indexes changes without requiring manual basic-memory sync commands
  • Added proper lifecycle management for the watch service
  • Updated configuration handling and logging for better visibility

This change creates a more seamless experience when using Basic Memory with Claude by ensuring all file changes are immediately available to the knowledge graph without manual intervention.

@phernandez phernandez merged commit 00c8633 into main Apr 6, 2025
9 checks passed
@phernandez phernandez deleted the issues/53/add-watch-to-mcp-process branch April 6, 2025 23:33
@phernandez phernandez removed this from basic-memory Apr 7, 2025
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.

2 participants