Versions in this module Expand all Collapse all v1 v1.2.0 Mar 19, 2026 Changes in this version + const DefaultRequestTimeout + const WeaveRequestTimeout + type BridgeOption func(*LoomBridge) + func WithMCPServer(s *MCPServer) BridgeOption + func WithRequestTimeout(d time.Duration) BridgeOption + func WithSkillOrchestrator(o *skills.Orchestrator) BridgeOption + func WithTLS(certFile string, skipVerify bool) BridgeOption + type LoomBridge struct + func NewLoomBridge(grpcAddr string, uiRegistry *apps.UIResourceRegistry, logger *zap.Logger, ...) (*LoomBridge, error) + func NewLoomBridgeFromClient(client loomv1.LoomServiceClient, uiRegistry *apps.UIResourceRegistry, ...) *LoomBridge + func (b *LoomBridge) CallTool(ctx context.Context, name string, args map[string]interface{}) (*protocol.CallToolResult, error) + func (b *LoomBridge) Close() error + func (b *LoomBridge) ListResources(ctx context.Context) ([]protocol.Resource, error) + func (b *LoomBridge) ListTools(_ context.Context) ([]protocol.Tool, error) + func (b *LoomBridge) ReadResource(ctx context.Context, uri string) (*protocol.ReadResourceResult, error) + func (b *LoomBridge) SetMCPServer(s *MCPServer) + type MCPServer struct + func NewMCPServer(name, version string, logger *zap.Logger, opts ...Option) *MCPServer + func (s *MCPServer) ClientCapabilities() *protocol.ClientCapabilities + func (s *MCPServer) ClientInfo() *protocol.Implementation + func (s *MCPServer) HandleMessage(ctx context.Context, msg []byte) ([]byte, error) + func (s *MCPServer) NotifyResourceListChanged() + func (s *MCPServer) RegisterHandler(method string, handler MethodHandler) + func (s *MCPServer) Serve(ctx context.Context, t transport.Transport) error + type MethodHandler func(ctx context.Context, id json.RawMessage, params json.RawMessage) (interface{}, error) + type Option func(*MCPServer) + func WithExtensions(ext map[string]interface{}) Option + func WithResourceProvider(p ResourceProvider) Option + func WithToolProvider(p ToolProvider) Option + type ResourceProvider interface + ListResources func(ctx context.Context) ([]protocol.Resource, error) + ReadResource func(ctx context.Context, uri string) (*protocol.ReadResourceResult, error) + type ToolProvider interface + CallTool func(ctx context.Context, name string, args map[string]interface{}) (*protocol.CallToolResult, error) + ListTools func(ctx context.Context) ([]protocol.Tool, error)