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): use explicit dispatch context in write dispatch tests
Steven Enamakel796cde01d22c
diff --git a/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rsindex c2364480be..f1c3478cc8 100644--- a/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs@@ -60,6 +60,12 @@ async fn audit_write_rejection_records_failure_row() {config.workspace_dir = tmp.path().join("workspace");std::fs::create_dir_all(&config.workspace_dir).unwrap();crate::mcp::test_module_port::install(&config);+ let ctx = crate::core::runtime::DispatchCtx::new(+ crate::core::runtime::CoreContext::for_test_with_config(+ crate::core::runtime::DomainSet::full(),+ config.clone(),+ ),+ );let err = ToolCallError::InvalidParams("bad write request".into());audit_write_rejection(@@ -167,7 +173,7 @@ async fn test_dispatch_write_tool_rpc_error_records_audit_and_returns_tool_errorlet params = serde_json::Map::new();let result = dispatch_write_tool(- &crate::core::runtime::DispatchCtx::ambient(),+ &ctx,"memory.learn","openhuman.memory_learn",¶ms,@@ -252,9 +258,16 @@ async fn test_dispatch_write_tool_unregistered_rpc_is_a_tool_error() {let mut config = Config::default();config.workspace_dir = tmp.path().join("workspace");std::fs::create_dir_all(&config.workspace_dir).unwrap();+ crate::mcp::test_module_port::install(&config);+ let ctx = crate::core::runtime::DispatchCtx::new(+ crate::core::runtime::CoreContext::for_test_with_config(+ crate::core::runtime::DomainSet::full(),+ config.clone(),+ ),+ );let val = dispatch_write_tool(- &crate::core::runtime::DispatchCtx::ambient(),+ &ctx,"memory.forget","openhuman.memory_no_such_method",&Map::new(),