stdio

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(command []string, funcs ...OptionFunc) *Client

func (*Client) GetTools

func (c *Client) GetTools(ctx context.Context) ([]llm.Tool, error)

GetTools implements mcp.Client.

func (*Client) Start

func (c *Client) Start(ctx context.Context) error

Start implements mcp.Client.

func (*Client) Stop

func (c *Client) Stop() error

Stop implements mcp.Client.

type OptionFunc added in v0.10.0

type OptionFunc func(opts *Options)

func WithBaseDelay added in v0.18.0

func WithBaseDelay(delay time.Duration) OptionFunc

func WithEnv added in v0.10.0

func WithEnv(env ...string) OptionFunc

func WithMaxRetries added in v0.18.0

func WithMaxRetries(maxRetries int) OptionFunc

func WithReconnectEnabled added in v0.18.0

func WithReconnectEnabled(enabled bool) OptionFunc

type Options added in v0.10.0

type Options struct {
	Env              []string
	MaxRetries       int
	BaseDelay        time.Duration
	ReconnectEnabled bool
}

func NewOptions added in v0.10.0

func NewOptions(funcs ...OptionFunc) *Options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL