Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// ListAccounts retrieves a list of accounts that the current identity has access to.
// It returns a slice of Account or an error if the operation fails.
ListAccounts(ctx context.Context) ([]Account, error)
}
Client represents a Firebolt API client that can be used to discover a list of accounts accessible by the identity on behalf of which the MCP server runs. The standard Firebolt Go SDK requires an account to be specified in the connection string. This client allows the MCP to work with multiple accounts within an organization and switch between them as needed.
func NewClient ¶
func NewClient( ctx context.Context, logger *slog.Logger, clientID, clientSecret, authBaseURL, apiBaseURL string, ) (Client, error)
NewClient creates a new instance of the Firebolt API client. It initializes the client with the provided OAuth2 credentials and base URLs for authentication and API access. Returns an instance of Client or an error if the initialization fails.
Click to show internal directories.
Click to hide internal directories.