Skip to content

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

feat(mcp): track configured static mcp tools in turn prelude

Steven Enamakel95df554fdf10
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index f2fdb2a1b3..f934023674 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -152,6 +152,10 @@ struct OpenHumanTurnPreludeMutable {
/// turn so disconnects remove their deferred executors immediately.
#[cfg(feature = "mcp")]
connected_mcp_tools: Vec<tinymcp_bus::McpToolPresentation>,
+ /// Configured static MCP tool declarations fetched through TinyMCP's
+ /// owner cache and refreshed with the connected-server catalog.
+ #[cfg(feature = "mcp")]
+ configured_mcp_tools: Vec<tinymcp_bus::McpToolPresentation>,
/// `mcp_*` tool names a resumed thread was sent, so a tool recorded under
/// its pre-readable hashed name is restored under that name too.
#[cfg(feature = "mcp")]
@@ -866,6 +870,8 @@ impl OpenHumanSessionHost {
#[cfg(feature = "mcp")]
connected_mcp_tools: Vec::new(),
#[cfg(feature = "mcp")]
+ configured_mcp_tools: Vec::new(),
+ #[cfg(feature = "mcp")]
recorded_mcp_tool_names: std::collections::HashSet::new(),
announced_skills: self.announced_skills.clone(),
pending_skill_announcement: self.pending_skill_announcement.clone(),