tool_docs

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docs

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

Docs represents a tool for fetching and returning Firebolt documentation. It provides access to documentation articles that explain Firebolt concepts and functionality.

func NewDocs

func NewDocs(docsFetcher DocsResourcesFetcher, disableResources bool) *Docs

NewDocs creates a new instance of the Docs tool with the provided documentation fetcher. It requires an implementation for fetching documentation articles.

func (*Docs) Handler

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

func (*Docs) Register

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

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

func (*Docs) Tool

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

type DocsResourcesFetcher

type DocsResourcesFetcher interface {
	// FetchDocsResources retrieves documentation content for a specified article.
	// If article is empty, the implementation should determine an appropriate default behavior.
	FetchDocsResources(_ context.Context, article string) (*mcp.ReadResourceResult, error)
}

DocsResourcesFetcher defines the interface for retrieving documentation resources. Implementations should provide methods to fetch Firebolt documentation.

type Input

type Input struct {
}

type Output

type Output struct {
	Articles []mcp.Content `json:"articles"`
}

Jump to

Keyboard shortcuts

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