Documentation
¶
Index ¶
- func MCPToolName(serverName, toolName string) string
- type Client
- func (c *Client) BuildTools(ctx context.Context) ([]tool.Tool, error)
- func (c *Client) Close()
- func (c *Client) ListServers(ctx context.Context) ([]ServerStatus, error)
- func (c *Client) ListTools(ctx context.Context) ([]ToolInfo, error)
- func (c *Client) SetCommandAllowlist(commands []string)
- func (c *Client) SetServers(servers []ServerConfig)
- type ServerConfig
- type ServerStatus
- type ToolInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MCPToolName ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(servers []ServerConfig) *Client
func (*Client) ListServers ¶
func (c *Client) ListServers(ctx context.Context) ([]ServerStatus, error)
func (*Client) SetCommandAllowlist ¶
func (*Client) SetServers ¶
func (c *Client) SetServers(servers []ServerConfig)
type ServerConfig ¶
type ServerStatus ¶
Click to show internal directories.
Click to hide internal directories.