The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(mcp): remove debug prints and align storage test setup
Steven Enamakelc2b324551ec1
diff --git a/crates/openhuman-core/src/mcp/server/tools/params.rs b/crates/openhuman-core/src/mcp/server/tools/params.rsindex a94cccdb1f..4fc0bbb460 100644--- a/crates/openhuman-core/src/mcp/server/tools/params.rs+++ b/crates/openhuman-core/src/mcp/server/tools/params.rs@@ -221,12 +221,12 @@ async fn validate_tool_arguments(let config = crate::config::ops::load_current_or_init(ctx).await.map_err(|error| {- eprintln!("DBGP {error:?}"); log::warn!("[mcp][params] argument validation unavailable: {error:?}");+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;let client =crate::mcp::module_client::McpConfiguredClient::for_config(&config).map_err(|error| {- eprintln!("DBGP {error:?}"); log::warn!("[mcp][params] argument validation unavailable: {error:?}");+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;let result = client@@ -237,7 +237,7 @@ async fn validate_tool_arguments(}).await.map_err(|error| {- eprintln!("DBGP {error:?}"); log::warn!("[mcp][params] argument validation unavailable: {error:?}");+ log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;match result {diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rsindex c9ed484371..6925265d5a 100644--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs@@ -160,11 +160,12 @@ async fn call_tool_judges_the_policy_of_the_explicit_context_across_scopes() {allowing.action_dir = tmp_allow.path().to_path_buf();// Validating tool arguments calls the tinymcp module, which reaches the// host's installed storage.- let storage = crate::storage::test_support::sqlite_backend().expect("SQLite test backend");- let _storage_guard =- crate::storage::test_support::install_for_test(&storage.url, Arc::clone(&storage.backend));- denying.storage.url = Some(storage.url.clone());- allowing.storage.url = Some(storage.url.clone());+ // The module resolves the installed storage from the process environment,+ // so the env lock and the ambient install guard it like the sibling tests.+ let _env_lock = crate::config::TEST_ENV_LOCK.lock().await;+ let ambient = AmbientStorage::install();+ denying.storage.url = Some(ambient._fixture.url.clone());+ allowing.storage.url = Some(ambient._fixture.url.clone());let deny_core = CoreContext::for_test_with_config(DomainSet::full(), denying);let allow_core = CoreContext::for_test_with_config(DomainSet::full(), allowing);