sync_storage
Manually trigger git synchronization for the Knowledge MCP Server datastore to backup changes, resolve sync issues, or ensure data persistence before major operations. Handles uncommitted changes and push failures effectively.
Instructions
Force git add, commit, and push all changes in the knowledge datastore.
When to use this tool:
- Manually triggering backup to remote
- Ensuring changes are persisted
- Before major operations
- Resolving sync issues
- Explicit backup request
Key features:
- Commits ALL uncommitted changes
- Pushes to configured remote
- Auto-generates commit message
- Handles push failures gracefully
- Forces synchronization
You should:
- Check storage_status first
- Use when auto-sync fails
- Verify remote is configured
- Handle push failures appropriately
- Use sparingly (auto-sync usually works)
DO NOT use when:
- No changes to commit
- Remote not configured
- Auto-sync is working fine
Returns: {success: bool, message: str, files_committed: int, pushed: bool, push_error?: str, commit_message: str}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||