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 ¶
type ServerStatus struct {
Name string `json:"name"`
Command string `json:"command,omitempty"`
URL string `json:"url,omitempty"`
Transport string `json:"transport,omitempty"`
Source string `json:"source,omitempty"`
AuthMode string `json:"auth_mode,omitempty"`
Connected bool `json:"connected"`
ToolCount int `json:"tool_count"`
Error string `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.