greentic-mcp-client 1.1.0-dev

Client for remote MCP servers over Streamable HTTP (JSON-RPC 2.0)
Documentation
#![forbid(unsafe_code)]
//! Client for remote MCP servers over Streamable HTTP (JSON-RPC 2.0).
//!
//! Not to be confused with [`greentic-mcp`](https://github.com/greenticai/greentic-mcp)
//! (`greentic-mcp-exec`), which loads and executes `wasix:mcp` **WASM
//! components** locally. This crate is the network-client side: it connects to
//! remote MCP servers, lists their tools, and invokes them.
//!
//! The [`proto`] module is sans-io and compiles for `wasm32-wasip2`
//! (`default-features = false`); the [`client`] module (feature `native`, on
//! by default) adds a reqwest transport.

pub mod auth;
pub mod error;
pub mod proto;

#[cfg(feature = "native")]
pub mod client;

pub use auth::McpAuth;
pub use error::{McpError, ProtoError, ServerError, ToolCallError};
pub use proto::{McpToolDef, PROTOCOL_VERSION, ToolOutput};

#[cfg(feature = "native")]
pub use client::{McpClientOptions, McpHttpClient, ServerInfo};