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
test(mcp_registry_e2e): cover env update on disabled server
Steven Enamakel8f0826e32f21
diff --git a/tests/mcp_registry_e2e.rs b/tests/mcp_registry_e2e.rsindex 46dbe70949..e0273ce83a 100644--- a/tests/mcp_registry_e2e.rs+++ b/tests/mcp_registry_e2e.rs@@ -99,6 +99,24 @@ async fn module_tool_call_reports_unknown_tool_as_error() {.expect("disconnect fixture");}+#[tokio::test]+#[ignore = "requires a TinyMCP library: node scripts/modules/build.mjs tinymcp"]+async fn disabled_server_environment_update_reports_host_projection() {+ use std::collections::HashMap;++ let (_tmp, config) = fresh_workspace_config();+ let server_id = install_server(&config, "@openhuman-test/echo", stdio_server()).await;+ let mut env = HashMap::new();+ env.insert("API_KEY".to_owned(), "test-only-secret".to_owned());++ let result =+ openhuman_core::mcp::registry::ops::mcp_clients_update_env(&config, server_id, env)+ .await+ .expect("confidential disabled-server update succeeds");+ assert_eq!(result.value["status"], "disabled");+ assert_eq!(result.value["env_keys"], json!(["API_KEY"]));+}+#[tokio::test]#[ignore = "requires a TinyMCP library: node scripts/modules/build.mjs tinymcp"]async fn per_config_lookups_are_isolated_by_workspace() {