Versions in this module Expand all Collapse all v1 v1.0.0 Mar 22, 2025 Changes in this version + const DefaultRequestTimeoutMsec + type Progress struct + Progress int64 + Total int64 + type ProgressCallback func(progress Progress) + type Protocol struct + FallbackNotificationHandler func(notification *transport.BaseJSONRPCNotification) error + FallbackRequestHandler func(ctx context.Context, request *transport.BaseJSONRPCRequest) (transport.JsonRpcBody, error) + OnClose func() + OnError func(error) + func NewProtocol(options *ProtocolOptions) *Protocol + func (p *Protocol) Close() error + func (p *Protocol) Connect(tr transport.Transport) error + func (p *Protocol) Notification(method string, params interface{}) error + func (p *Protocol) RemoveNotificationHandler(method string) + func (p *Protocol) RemoveRequestHandler(method string) + func (p *Protocol) Request(ctx context.Context, method string, params interface{}, opts *RequestOptions) (interface{}, error) + func (p *Protocol) SetNotificationHandler(method string, ...) + func (p *Protocol) SetRequestHandler(method string, ...) + type ProtocolOptions struct + EnforceStrictCapabilities bool + type RequestHandlerExtra struct + Context context.Context + type RequestOptions struct + Context context.Context + OnProgress ProgressCallback + Timeout time.Duration + type Result struct + AdditionalProperties interface{} + Meta ResultMeta + type ResultMeta map[string]interface Other modules containing this package github.com/agentuity/mcp-golang/v2