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
//! MCP (Model Context Protocol) client for the `TraitClaw` AI agent framework.
//!
//! Connects to MCP servers over stdio or SSE transport, discovers tools via
//! `tools/list`, and routes tool calls via `tools/call`. MCP tools implement
//! [`ErasedTool`] so they work seamlessly alongside native tools.
//!
//! # Quick Start
//!
//! ```rust,no_run
//! use traitclaw_mcp::McpServer;
//!
//! # async fn example() -> traitclaw_core::Result<()> {
//! let server = McpServer::stdio("npx", &["@modelcontextprotocol/server-filesystem"]).await?;
//! let tools = server.tools(); // Vec<Arc<dyn ErasedTool>>
//! # Ok(())
//! # }
//! ```
pub use ;
pub use McpToolRegistry;
pub use McpServer;
pub use McpTool;
/// Prelude re-exports for convenient use.