Skip to content

feat: add watch to mcp process - #83

Merged
phernandez merged 4 commits into
mainfrom
issues/53/add-watch-to-mcp-process
Apr 6, 2025
Merged

feat: add watch to mcp process#83
phernandez merged 4 commits into
mainfrom
issues/53/add-watch-to-mcp-process

Conversation

@phernandez

@phernandez phernandez commented Apr 6, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

claude: can you give a PR description?

@github-actions

github-actions Bot commented Apr 6, 2025

Copy link
Copy Markdown
Contributor

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
@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.

1 participant