Documentation ¶ Index ¶ type Client func New(config *Config) (*Client, error) func (c *Client) Resources(ctx context.Context) ([]resource.Resource, error) func (c *Client) Tools(ctx context.Context) ([]tool.Tool, error) type Config func Parse(path string) (*Config, error) type Server 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 New ¶ func New(config *Config) (*Client, error) func (*Client) Resources ¶ added in v0.1.4 func (c *Client) Resources(ctx context.Context) ([]resource.Resource, error) func (*Client) Tools ¶ func (c *Client) Tools(ctx context.Context) ([]tool.Tool, error) type Config ¶ type Config struct { Servers map[string]Server `json:"servers" yaml:"servers"` } func Parse ¶ func Parse(path string) (*Config, error) type Server ¶ type Server struct { Type string `json:"type" yaml:"type"` URL string `json:"url" yaml:"url"` Headers map[string]string `json:"headers" yaml:"headers"` Command string `json:"command" yaml:"command"` Env map[string]string `json:"env" yaml:"env"` Args []string `json:"args" yaml:"args"` } Source Files ¶ View all Source files client.goclient_resources.goclient_tools.goconfig.go Click to show internal directories. Click to hide internal directories.