tool_docs

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: 6 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 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, isCore 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

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

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