tool_search

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

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