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): cover module error code mapping
Steven Enamakelec8693afa12a
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rsindex a5c9e7e8f9..3e6cd68f86 100644--- a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs@@ -17,6 +17,28 @@ fn required_mcp_identifier_rejects_empty_values() {}}+#[test]+fn module_failures_keep_transport_and_unavailability_categories() {+ use crate::modules::client::ModuleCallError;++ assert_eq!(+ input_module_error_code(ModuleCallError::Unavailable),+ tinymcp_bus::errors::BUS+ );+ assert_eq!(+ input_module_error_code(ModuleCallError::IncompatibleContract),+ tinymcp_bus::errors::BUS+ );+ assert_eq!(+ input_module_error_code(ModuleCallError::TransportFailed),+ tinymcp_bus::errors::TRANSPORT+ );+ assert_eq!(+ input_module_error_code(ModuleCallError::ModuleFault),+ tinymcp_bus::errors::INVALID_ARGUMENTS+ );+}+#[test]fn classified_result_maps_rendered_content_and_preserves_outcome_metadata() {let call = tinymcp_bus::ClassifiedStaticToolCall {