pub fn spawn_watcher(vault_path: PathBuf, state: Arc<McpServerState>)Expand description
Spawns a background thread watching vault_path for .md changes.
Changes trigger a fast (no-embed) index refresh via the existing
refresh_index_if_needed function. Non-.md files are ignored.
Errors are recorded in diagnostics; the watcher thread runs until
the process exits.
If the thread fails to spawn, the error is silently ignored; the MCP server continues without the watcher.