Versions in this module Expand all Collapse all v0 v0.3.0 Aug 16, 2026 Changes in this version + const CallTimeout + const DialTimeout + const ListTimeout + const MaxResponseBytes + var CallClient = guardedClient(CallTimeout) + var DefaultClient = guardedClient(DialTimeout) + var ErrServerAnswered = errors.New("the server answered, refusing the call") + var ErrUnauthorized = errors.New("the server refused the credential") + type CallResult struct + Content []Content + IsError bool + type Config struct + BearerToken string + HTTPClient *http.Client + URL string + type Conn struct + func Connect(ctx context.Context, cfg Config) (*Conn, error) + func (c *Conn) CallTool(ctx context.Context, name string, arguments json.RawMessage) (*CallResult, error) + func (c *Conn) Close() error + func (c *Conn) ListTools(ctx context.Context) ([]Tool, error) + type Content struct + Data []byte + MIMEType string + Text string + Type string + URI string + type Tool struct + Description string + InputSchema json.RawMessage + Name string