Expand description
MCP (Model Context Protocol) adapters for connecting to external tool servers.
This crate provides a MultiServerMcpClient that can connect to one or more
MCP-compatible servers over Stdio, SSE, or HTTP transports, discover their
advertised tools, and expose each tool as a synaptic_core::Tool implementor.
Re-exports§
pub use health::McpHealthHandle;pub use health::McpHealthMonitor;pub use oauth::McpOAuthConfig;pub use oauth::OAuthTokenManager;
Modules§
- health
- Health monitoring for MCP server connections.
- oauth
- OAuth 2.1 + PKCE support for MCP server connections.
Structs§
- Http
Connection - HTTP (Streamable HTTP) transport connection config.
- Multi
Server McpClient - Client that connects to one or more MCP servers and aggregates their tools.
- SseConnection
- SSE (Server-Sent Events) transport connection config.
- Stdio
Connection - Stdio transport connection config.
Enums§
- McpConnection
- MCP server connection type.
Functions§
- load_
mcp_ tools - Convenience function to connect to all servers and return the discovered tools in a single call.