Versions in this module Expand all Collapse all v0 v0.8.8 Jul 5, 2026 Changes in this version + func Dispatch(ctx context.Context, toolName, argsRaw string) (result, warning string, err error) + func Init(ctx context.Context) error + func SwitchServerTransport(ctx context.Context, name, target string) error + type Hub struct + func (h *Hub) SwitchServerTransport(ctx context.Context, name, target string) error + type MCPClient struct + func NewMCPClient(ctx context.Context, command string, args []string) (*MCPClient, error) + func NewSSEMCPClient(ctx context.Context, endpoint string) (*MCPClient, error) + func (c *MCPClient) CallTool(ctx context.Context, name string, args map[string]any) (string, error) + func (c *MCPClient) Close() error + func (c *MCPClient) ListTools(ctx context.Context) ([]*mcp.Tool, error) + type MCPToolError struct + Content []mcp.Content + Tool string + func (e *MCPToolError) Error() string + type ServerConfig struct + Args []string + Command string + Enabled bool + Name string + Type string + func (s ServerConfig) IsSSE() bool