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): allow overriding tinymcp module path in stdio test
Steven Enamakel3db95ff1bd33
diff --git a/tests/mcp_stdio_integration.rs b/tests/mcp_stdio_integration.rsindex 77aeba1d6d..27c932e298 100644--- a/tests/mcp_stdio_integration.rs+++ b/tests/mcp_stdio_integration.rs@@ -46,13 +46,18 @@ fn stdio_server_initializes_and_lists_core_tools() {let workspace_path =std::fs::canonicalize(workspace.path()).expect("canonicalize temporary MCP workspace");let stderr_path = workspace_path.join("mcp.stderr");- let mut child = Command::new(env!("CARGO_BIN_EXE_openhuman-core"))+ let mut command = Command::new(env!("CARGO_BIN_EXE_openhuman-core"));+ if let Some(module) = std::env::var_os("OPENHUMAN_TINYMCP_TEST_MODULE") {+ if let Some(module_dir) = std::path::Path::new(&module).parent() {+ command.env("OPENHUMAN_MODULE_PATH", module_dir);+ }+ }+ let mut child = command.arg("mcp").current_dir(&workspace_path).env("OPENHUMAN_WORKSPACE", &workspace_path).env("OPENHUMAN_KEYRING_BACKEND", "encrypted_file").env("OPENHUMAN_KEYRING_MASTER_KEY", "42".repeat(32))- .env("OPENHUMAN_MODULE_SOURCE_TINYMCP", "linked").env_remove("OPENHUMAN_KEYRING_MASTER_KEY_FILE").env_remove("OPENHUMAN_APP_ENV").env_remove("OPENHUMAN_MODE")