Skip to content

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

feat(mcp): add stub for all_connected_tools_for_config

Steven Enamakelca9e82e4db2f
diff --git a/src/openhuman/mcp/registry/mod.rs b/src/openhuman/mcp/registry/mod.rs
index a76966f2fe..e8b7a0ba38 100644
--- a/src/openhuman/mcp/registry/mod.rs
+++ b/src/openhuman/mcp/registry/mod.rs
@@ -73,6 +73,7 @@ pub use types::{ConnStatus, InstalledServer, McpTool};
/// completes should see.
#[cfg(feature = "mcp")]
pub mod connections {
+ use crate::openhuman::config::Config;
pub use tinymcp_bus::ConnectedServerOverview;
use crate::openhuman::mcp::host;
diff --git a/src/openhuman/mcp/registry/stub.rs b/src/openhuman/mcp/registry/stub.rs
index e05db03fcc..c176888119 100644
--- a/src/openhuman/mcp/registry/stub.rs
+++ b/src/openhuman/mcp/registry/stub.rs
@@ -124,4 +124,10 @@ pub mod connections {
pub async fn all_connected_tools() -> Vec<(String, String, McpTool)> {
Vec::new()
}
+
+ /// Empty, for the same reason as [`all_connected_tools`]. The workspace the
+ /// caller names changes nothing when the registry is compiled out.
+ pub async fn all_connected_tools_for_config(_config: &Config) -> Vec<(String, String, McpTool)> {
+ Vec::new()
+ }
}