Skip to main content

Crate synaptic_mcp

Crate synaptic_mcp 

Source
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§

HttpConnection
HTTP (Streamable HTTP) transport connection config.
MultiServerMcpClient
Client that connects to one or more MCP servers and aggregates their tools.
SseConnection
SSE (Server-Sent Events) transport connection config.
StdioConnection
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.