Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ci): supply the staged TinyMCP library to the multi-server MCP suite

M3gA-Mindd9b763fc39f3
diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjs
index 00d2565728..6fa60d81e9 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -82,6 +82,15 @@ test("linked TinyDocs E2E enables its required local feature", () => {
);
});
+test("CI exports the staged TinyMCP library for the multi-server suite", () => {
+ const source = readFileSync(installer, "utf8");
+ assert.match(
+ source,
+ /echo "OPENHUMAN_TINYMCP_TEST_MODULE=\$\{tinymcp_artifact\}"/,
+ "mcp_registry_multi_server loads TinyMCP by file, so the CI env file names it",
+ );
+});
+
test("MCP registry Rust integration tests run serially", () => {
const source = readFileSync(localRustRunner, "utf8");
assert.match(
diff --git a/scripts/ci/rust-coverage.sh b/scripts/ci/rust-coverage.sh
index e3b9fe4d17..f96cb13ca9 100755
--- a/scripts/ci/rust-coverage.sh
+++ b/scripts/ci/rust-coverage.sh
@@ -150,6 +150,11 @@ run_integration_target() {
suite "${target}::${module}" llvm_cov --no-report --no-fail-fast -p openhuman-cli \
--test "${target}" -- "${module}::"
done < <(in_process_modules)
+ elif [ "${target}" = "mcp_registry_multi_server" ]; then
+ # Its cases share TinyMCP's process-wide module client; keep them serial,
+ # as scripts/test-rust-with-mock.sh does.
+ suite "${target}" llvm_cov --no-report --no-fail-fast -p openhuman-cli \
+ --test "${target}" -- --test-threads=1
elif [ "${target}" = "json_rpc_e2e" ]; then
# JSON-RPC tests share runtime/config globals and must remain serial.
suite "${target}" llvm_cov --no-report --no-fail-fast -p openhuman-cli \
diff --git a/scripts/ci/self-hosted/install-test-modules.sh b/scripts/ci/self-hosted/install-test-modules.sh
index 66fe1f5064..5e3bebd118 100755
--- a/scripts/ci/self-hosted/install-test-modules.sh
+++ b/scripts/ci/self-hosted/install-test-modules.sh
@@ -64,5 +64,16 @@ module_dirs=""
for id in tinybox tinydocs tinywallet tinychannels tinymcp tinyjuice tinysearch tinyhosts tinyconnectors; do
module_dirs="${module_dirs:+${module_dirs}:}${dest}/${id}"
done
-echo "OPENHUMAN_MODULE_PATH=${module_dirs}${OPENHUMAN_MODULE_PATH:+:$OPENHUMAN_MODULE_PATH}" > "${env_file}"
+# mcp_registry_multi_server loads TinyMCP by file, not by search path, as
+# scripts/test-rust-with-mock.sh supplies it locally.
+tinymcp_artifact="$(find "${dest}/tinymcp" -maxdepth 2 -type f \
+ \( -name libtinymcp_module.so -o -name libtinymcp_module.dylib -o -name tinymcp_module.dll \) | head -n 1)"
+if [ -z "${tinymcp_artifact}" ]; then
+ echo "::error::the tinymcp release holds no module library" >&2
+ exit 1
+fi
+{
+ echo "OPENHUMAN_MODULE_PATH=${module_dirs}${OPENHUMAN_MODULE_PATH:+:$OPENHUMAN_MODULE_PATH}"
+ echo "OPENHUMAN_TINYMCP_TEST_MODULE=${tinymcp_artifact}"
+} > "${env_file}"
log "wrote ${env_file}"