mcp-core 0.1.50

A Rust library implementing the Modern Context Protocol (MCP)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # MCP Client Transports
//!
//! This module provides different transport implementations for MCP clients.
//!
//! Available transports include:
//! - `ClientStdioTransport`: Communicates with an MCP server over standard I/O
//! - `ClientSseTransport`: Communicates with an MCP server over Server-Sent Events (SSE)
//!
//! Each transport implements the `Transport` trait and provides client-specific
//! functionality for connecting to MCP servers.

#[cfg(feature = "sse")]
mod sse;
mod stdio;

#[cfg(feature = "sse")]
pub use sse::{ClientSseTransport, ClientSseTransportBuilder};
pub use stdio::ClientStdioTransport;