Documentation
¶
Overview ¶
Package client provides HTTP client functionality for API interactions.
Index ¶
- type Client
- func (c *Client) ListMCPServers(ctx context.Context) ([]models.MCPServer, error)
- func (c *Client) ProcessFetchedTools(ctx context.Context, serverID int64, tools []models.FetchedTool) error
- func (c *Client) UpdateServerStatus(ctx context.Context, id int64, state models.ConnectionState, lastError error) error
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
}
Client provides methods to interact with the agent-browser API
func NewClient ¶
func NewClient(config config.ClientConfig, logger log.Logger) *Client
NewClient creates a new API client instance
func (*Client) ListMCPServers ¶
ListMCPServers retrieves all registered MCP servers
func (*Client) ProcessFetchedTools ¶
func (c *Client) ProcessFetchedTools(ctx context.Context, serverID int64, tools []models.FetchedTool) error
ProcessFetchedTools updates the tools for a server
func (*Client) UpdateServerStatus ¶
func (c *Client) UpdateServerStatus(ctx context.Context, id int64, state models.ConnectionState, lastError error) error
UpdateServerStatus updates the status of an MCP server
Click to show internal directories.
Click to hide internal directories.