walrus-daemon 0.0.10

Walrus agent runtime with memory, tools, and local inference
Documentation
//! Walrus MCP bridge — connects to MCP servers and dispatches tool calls.
//!
//! The [`McpBridge`] manages connections to MCP servers via the rmcp SDK,
//! converts tool definitions to walrus-core format, and routes tool calls.
//! [`McpHandler`] wraps the bridge with hot-reload and config persistence.
//! `register_tools` registers only tool schemas — dispatch is handled
//! statically by the daemon event loop via [`McpBridge::call`].

use wcore::agent::AsTool;
pub use {bridge::McpBridge, config::McpServerConfig, handler::McpHandler};

mod bridge;
pub mod config;
mod handler;
pub(crate) mod tool;

impl McpHandler {
    /// Register MCP tool schemas into the registry.
    ///
    /// Only `search_mcp` and `call_mcp_tool` are registered — individual MCP
    /// tool schemas are not exposed. The agent must search first, then call.
    pub fn register_tools(&self, registry: &mut wcore::ToolRegistry) {
        registry.insert(tool::SearchMcp::as_tool());
        registry.insert(tool::CallMcpTool::as_tool());
    }
}