tools

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tools provides MCP tools for interacting with Elasticsearch. It implements various Elasticsearch operations as MCP tools that can be called through the Model Context Protocol interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticsearchTools

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

ElasticsearchTools represents a collection of Elasticsearch-related MCP tools

func NewElasticsearchTools

func NewElasticsearchTools(client elasticsearch.Client) *ElasticsearchTools

NewElasticsearchTools creates a new instance of ElasticsearchTools with the provided client

func (*ElasticsearchTools) GetTools

func (et *ElasticsearchTools) GetTools() []mcp.Tool

GetTools returns all available Elasticsearch tools with their schemas

func (*ElasticsearchTools) HandleTool

func (et *ElasticsearchTools) HandleTool(ctx context.Context, toolName string, arguments map[string]interface{}) mcp.CallToolResult

HandleTool handles MCP tool calls and routes them to appropriate handlers

Jump to

Keyboard shortcuts

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