Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(storage): skip legacy tinymcp import when no source files exist

Steven Enamakelb9fc42ecb392
diff --git a/crates/openhuman-core/src/modules/storage_import_tinymcp.rs b/crates/openhuman-core/src/modules/storage_import_tinymcp.rs
index c7ed69abe3..533f099f54 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinymcp.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinymcp.rs
@@ -107,6 +107,9 @@ pub(crate) async fn import_legacy(ctx: &DispatchCtx, data_dir: &Path) -> Result<
}
let clients = data_dir.join(CLIENTS_DB);
let audit = data_dir.join(AUDIT_DB);
+ if !clients.exists() && !audit.exists() {
+ return Ok(Outcome::NoSource);
+ }
let (legacy_servers, legacy_audit) = tokio::task::spawn_blocking(move || {
let servers = if clients.exists() {
read_servers(&clients)?