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
Click to show internal directories.
Click to hide internal directories.