crabtalk_runtime/mcp/mod.rs
1//! Crabtalk MCP bridge — connects to MCP servers and dispatches tool calls.
2
3use wcore::agent::AsTool;
4pub use {bridge::McpBridge, config::McpServerConfig, handler::McpHandler};
5
6mod bridge;
7mod client;
8pub mod config;
9mod handler;
10pub mod tool;
11
12impl McpHandler {
13 /// Register the `mcp` tool schema into the registry.
14 pub fn register_tools(&self, registry: &mut wcore::ToolRegistry) {
15 registry.insert(tool::Mcp::as_tool());
16 }
17}