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.

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.