agent_code_lib/services/mcp/mod.rs
1//! Model Context Protocol (MCP) client.
2//!
3//! Connects to MCP servers that provide additional tools, resources,
4//! and prompts. Servers can run as:
5//!
6//! - **stdio**: subprocess communicating via stdin/stdout JSON-RPC
7//! - **sse**: HTTP server with Server-Sent Events
8//!
9//! # Protocol
10//!
11//! MCP uses JSON-RPC 2.0 over the chosen transport. The client
12//! discovers available tools via `tools/list`, then proxies tool
13//! calls to the server via `tools/call`.
14
15pub mod client;
16pub mod transport;
17pub mod types;
18
19pub use client::McpClient;
20pub use types::*;