pub fn stop_watching(
registry: &WatcherRegistry,
dir: &Path,
) -> Result<Value, McpError>Expand description
Stop watching a directory. Returns a JSON summary including final stats.
§Errors
- Returns
ErrorCode::InternalErrorif the watcher registry mutex is poisoned. - Returns
ErrorCode::FileNotFoundif no active watcher is registered for the canonicalizeddir.