tool_connect_core

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectCore

type ConnectCore struct {
	// contains filtered or unexported fields
}

ConnectCore represents a tool for fetching and returning Firebolt resource information. It provides hierarchical databases in the Firebolt Core system.

func NewConnectCore

func NewConnectCore(
	accountsFetcher CoreAccountResourcesFetcher,
	databasesFetcher DatabaseResourcesFetcher,
	enginesFetcher EngineResourcesFetcher,
	docsProof *string,
	disableResources bool,
) *ConnectCore

NewConnectCore creates a new instance of the Connect tool with the provided resource fetchers. It requires implementation for fetching databases.

func (*ConnectCore) Handler

func (t *ConnectCore) Handler() mcp.ToolHandlerFor[Input, *Output]

Handler processes tool invocation requests and returns a comprehensive view of Firebolt resources. It fetches accounts and then concurrently retrieves the databases and engines for each account.

func (*ConnectCore) Register

func (t *ConnectCore) Register(s *mcp.Server)

Register adds the Connect tool to the provided MCP server instance.

func (*ConnectCore) Tool

func (t *ConnectCore) Tool() *mcp.Tool

Tool returns the mcp.Tool definition for the ConnectCore tool. This defines how the tool is represented in the MCP system.

type CoreAccountResourcesFetcher

type CoreAccountResourcesFetcher interface {
	// FetchAccountResources retrieves account information for all available accounts.
	FetchAccountResources(ctx context.Context) (*mcp.ReadResourceResult, error)
}

CoreAccountResourcesFetcher defines the interface for retrieving account resources. Implementations should provide methods to fetch Firebolt account information.

type DatabaseResourcesFetcher

type DatabaseResourcesFetcher interface {
	// FetchDatabaseResources retrieves database information in a Firebolt Core instance.
	FetchDatabaseResources(ctx context.Context, _ string, _ string) (*mcp.ReadResourceResult, error)
}

DatabaseResourcesFetcher defines the interface for retrieving database resources in Firebolt Core. Implementations should provide methods to fetch Firebolt database information in Firebolt Core.

type EngineResourcesFetcher

type EngineResourcesFetcher interface {
	// FetchEngineResources retrieves engine information in a Firebolt Core instance.
	FetchEngineResources(ctx context.Context, _, _ string) (*mcp.ReadResourceResult, error)
}

EngineResourcesFetcher defines the interface for retrieving engine resources. Implementations should provide methods to fetch Firebolt engine information within an account.

type Input

type Input struct {
	DocsProof string `` /* 270-byte string literal not displayed */
}

type Output

type Output struct {
	Results []mcp.Content `json:"results"`
}

Jump to

Keyboard shortcuts

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