Skip to content

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

refactor(mcp): add meta field to tool definitions

Steven Enamakelccc9e83d7ec0
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs
index 50ae3e60c8..b0483cee67 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs
@@ -224,6 +224,7 @@ fn connected_mcp_block_lists_servers_and_direct_tool_route() {
name: n.to_string(),
description: None,
input_schema: serde_json::json!({}),
+ meta: None,
};
let block = format_connected_mcp_block(&[ConnectedServerOverview {
server_id: "id-1".into(),
@@ -276,6 +277,7 @@ fn connected_mcp_block_falls_back_to_tool_count_and_qualified_name() {
name: format!("tool{i}"),
description: None,
input_schema: serde_json::json!({}),
+ meta: None,
})
.collect();
let block = format_connected_mcp_block(&[ConnectedServerOverview {
diff --git a/crates/openhuman-core/src/mcp/module_client.rs b/crates/openhuman-core/src/mcp/module_client.rs
index 3ae7c086ef..90e7dc6448 100644
--- a/crates/openhuman-core/src/mcp/module_client.rs
+++ b/crates/openhuman-core/src/mcp/module_client.rs
@@ -376,6 +376,7 @@ impl McpConfiguredClient {
name: tool.name,
description: tool.description.or(tool.title),
input_schema: tool.input_schema,
+ meta: None,
})
.collect(),
);
diff --git a/crates/openhuman-core/src/modules/storage_host_bus_tests.rs b/crates/openhuman-core/src/modules/storage_host_bus_tests.rs
index 1dac1f1301..86f26da176 100644
--- a/crates/openhuman-core/src/modules/storage_host_bus_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_bus_tests.rs
@@ -163,6 +163,7 @@ async fn the_bus_hands_the_host_the_brokers_sender_and_nothing_else() {
.serve_at(
path,
ObjectService {
+ runtime: None,
object,
host: Arc::clone(&host),
},
diff --git a/crates/openhuman-core/src/modules/storage_host_linked_tests.rs b/crates/openhuman-core/src/modules/storage_host_linked_tests.rs
index dfc70c13e8..70be0ff5d6 100644
--- a/crates/openhuman-core/src/modules/storage_host_linked_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_linked_tests.rs
@@ -1,7 +1,6 @@
use super::*;
use async_trait::async_trait;
use serde_json::json;
-use std::collections::HashMap;
use tinybus::broker::Broker;
use tinybus::transport::memory::MemoryBus;
use tinybus::{BusName, Connection};
@@ -113,7 +112,7 @@ impl Bus {
.object("Secrets")
.call_confidential("Get", (SecretNameRequest { name: name.into() },))
.await?;
- Ok(reply.value)
+ Ok(Some(reply.value))
}
async fn put_server(&self, id: &str) -> tinybus::Result<()> {
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp.rs b/crates/openhuman-core/src/tools/impl/network/mcp.rs
index 9b09458807..1ac417e4e4 100644
--- a/crates/openhuman-core/src/tools/impl/network/mcp.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mcp.rs
@@ -234,6 +234,7 @@ impl Tool for McpListToolsTool {
name: tool.name.clone(),
description: projected.description.clone().or(projected.title.clone()),
input_schema: tool.input_schema.clone(),
+ meta: None,
})
.collect();
let safe = crate::mcp::registry::tools_safe_for_agent(&server, policy_tools);
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs
index 64fbf12b8b..7136659c29 100644
--- a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs
@@ -138,6 +138,7 @@ impl Tool for ModuleConfiguredMcpServerTool {
name: tool.name,
description: tool.description.or(tool.title),
input_schema: tool.input_schema,
+ meta: None,
})
.collect(),
);