tool_search

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: 10 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 Config

type Config struct {
	BaseURL string

	ClientID, ClientSecret string
	TokenURL               string
}

func (Config) Validate

func (c Config) Validate() error

type Input

type Input struct {
	Query string `json:"query" jsonschema:"Search query string"`
}

type Output

type Output struct {
	Result []mcp.Content `json:"result"`
}
type Search struct {
	// contains filtered or unexported fields
}

func NewSearch

func NewSearch(ctx context.Context, cfg Config) (*Search, error)

NewSearch creates a new instance of the Search tool using the provided config. The config includes auth credentials oauth2 token URL and base URL for search queries.

func (*Search) Handler

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

Handler processes tool invocation requests and performs RAG-based search over the Firebolt documentation and knowledge base via the docs search HTTP API.

func (*Search) Register

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

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

func (*Search) Tool

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

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

Jump to

Keyboard shortcuts

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