discovery

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name   string `json:"name"`
	Region string `json:"region"`
}

Account represents a Firebolt account with its name and region.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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