1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Model Context Protocol (MCP) client and server.
//!
//! ## Client
//!
//! Connect to external tool servers via stdio or HTTP to discover and call
//! tools that integrate seamlessly with Daimon agents.
//!
//! ```ignore
//! use daimon::mcp::{McpClient, StdioTransport};
//!
//! let transport = StdioTransport::new("npx", ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]);
//! let client = McpClient::connect(transport).await?;
//! ```
//!
//! ## Server
//!
//! Expose a [`ToolRegistry`](crate::tool::ToolRegistry) as an MCP-compliant
//! tool server over stdio.
//!
//! ```ignore
//! use daimon::mcp::McpServer;
//!
//! McpServer::new(registry).serve_stdio().await?;
//! ```
pub use McpClient;
pub use McpToolBridge;
pub use McpServer;
pub use ;
pub use WebSocketTransport;
pub use McpWsServer;
pub use ;