discovery

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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