client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package client provides HTTP client functionality for API interactions.

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
}

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

func (c *Client) ListMCPServers(ctx context.Context) ([]models.MCPServer, error)

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

Jump to

Keyboard shortcuts

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