Skip to content

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

fix(tests): remove mcp_setup and mcp_registry_config_assist from test expectations

Steven Enamakel0377a6a3679e
diff --git a/crates/openhuman-core/src/agent/harness/definition_tests.rs b/crates/openhuman-core/src/agent/harness/definition_tests.rs
index 3bc65ad9c4..d922d62734 100644
--- a/crates/openhuman-core/src/agent/harness/definition_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/definition_tests.rs
@@ -373,11 +373,8 @@ fn all_builtin_agent_definitions_have_expected_effective_max_iterations() {
("flow_memory_agent", 50),
("integrations_agent", 50),
// `mcp_agent` is compiled out with the `mcp` feature (#4799).
- // `mcp_setup` is NOT — only its five tools are gated, so the agent
- // definition still loads in both builds.
#[cfg(feature = "mcp")]
("mcp_agent", 50),
- ("mcp_setup", 50),
("planner", 50),
("researcher", 50),
("skill_creator", 50),
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
index 39f919ad05..aaf3a7f0aa 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
@@ -34,11 +34,9 @@ fn unprefixed_delegate_name_overrides_are_treated_as_spawn_tools() {
"archive_session",
// `use_mcp_server` is `mcp_agent`'s `delegate_name`; the agent —
// and therefore this delegate tool — is compiled out with the
- // `mcp` feature (#4799). `setup_mcp_server` belongs to
- // `mcp_setup`, which stays registered in both builds.
+ // `mcp` feature (#4799).
#[cfg(feature = "mcp")]
"use_mcp_server",
- "setup_mcp_server",
] {
assert!(
is_subagent_spawn_tool(delegate),
diff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rs
index cf491b3c71..b75758e6c6 100644
--- a/crates/openhuman-core/src/tools/ops_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests.rs
@@ -315,10 +315,6 @@ const DESKTOP_TOOLS: &[&str] = &[
#[cfg(feature = "mcp")]
"mcp_registry_tool_call",
#[cfg(feature = "mcp")]
- "mcp_registry_config_assist",
- #[cfg(feature = "mcp")]
- "mcp_registry_install",
- #[cfg(feature = "mcp")]
"mcp_registry_uninstall",
"workspace_read_persona",
"workspace_update_persona",
@@ -327,8 +323,6 @@ const DESKTOP_TOOLS: &[&str] = &[
];
const DESKTOP_DEFAULT_OFF: &[&str] = &[
- #[cfg(feature = "mcp")]
- "mcp_registry_install",
#[cfg(feature = "mcp")]
"mcp_registry_uninstall",
"workspace_update_persona",
diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
index 6b80d0f198..61235d3dc4 100644
--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
@@ -485,8 +485,6 @@ fn every_pack_declares_the_tools_it_is_named_for() {
"mcp_registry_connect",
"mcp_registry_disconnect",
"mcp_registry_tool_call",
- "mcp_registry_config_assist",
- "mcp_registry_install",
"mcp_registry_uninstall",
],
),