tools

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentTool

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

EnvironmentTool handles environment-related MCP operations

func NewEnvironmentTool

func NewEnvironmentTool(client client.Client, name string) *EnvironmentTool

NewEnvironmentTool creates a new environment tool

func (*EnvironmentTool) Definition

func (t *EnvironmentTool) Definition() ToolDefinition

Definition returns the tool definition for MCP

func (*EnvironmentTool) Execute

func (t *EnvironmentTool) Execute(ctx context.Context, params json.RawMessage) (string, error)

Execute runs the tool with given parameters

type LogsTool

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

LogsTool handles log-related MCP operations

func NewLogsTool

func NewLogsTool(client client.Client, name string) *LogsTool

NewLogsTool creates a new logs tool

func (*LogsTool) Definition

func (t *LogsTool) Definition() ToolDefinition

Definition returns the tool definition for MCP

func (*LogsTool) Execute

func (t *LogsTool) Execute(ctx context.Context, params json.RawMessage) (string, error)

Execute runs the tool with given parameters

type OrgTool

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

OrgTool handles organization-related MCP operations

func NewOrgTool

func NewOrgTool(client client.Client, name string) *OrgTool

NewOrgTool creates a new organization tool

func (*OrgTool) Definition

func (t *OrgTool) Definition() ToolDefinition

Definition returns the tool definition for MCP

func (*OrgTool) Execute

func (t *OrgTool) Execute(ctx context.Context, params json.RawMessage) (string, error)

Execute runs the tool with given parameters

type ServiceTool

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

ServiceTool handles service-related MCP operations

func NewServiceTool

func NewServiceTool(client client.Client, name string) *ServiceTool

NewServiceTool creates a new service tool

func (*ServiceTool) Definition

func (t *ServiceTool) Definition() ToolDefinition

Definition returns the tool definition for MCP

func (*ServiceTool) Execute

func (t *ServiceTool) Execute(ctx context.Context, params json.RawMessage) (string, error)

Execute runs the tool with given parameters

type TelepresenceTool

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

TelepresenceTool handles telepresence operations

func NewTelepresenceTool

func NewTelepresenceTool(client client.Client, name string) *TelepresenceTool

NewTelepresenceTool creates a new telepresence tool

func (*TelepresenceTool) Definition

func (t *TelepresenceTool) Definition() ToolDefinition

Definition returns the tool definition for MCP

func (*TelepresenceTool) Execute

func (t *TelepresenceTool) Execute(ctx context.Context, params json.RawMessage) (string, error)

Execute runs the tool with given parameters

type Tool

type Tool interface {
	Definition() ToolDefinition
	Execute(ctx context.Context, params json.RawMessage) (string, error)
}

Tool interface for MCP tools

type ToolDefinition

type ToolDefinition struct {
	Name        string      `json:"name"`
	Description string      `json:"description"`
	InputSchema interface{} `json:"inputSchema"`
}

ToolDefinition describes an MCP tool

type VolumeTool

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

VolumeTool handles volume-related MCP operations

func NewVolumeTool

func NewVolumeTool(client client.Client, name string) *VolumeTool

NewVolumeTool creates a new volume tool

func (*VolumeTool) Definition

func (t *VolumeTool) Definition() ToolDefinition

Definition returns the tool definition for MCP

func (*VolumeTool) Execute

func (t *VolumeTool) Execute(ctx context.Context, params json.RawMessage) (string, error)

Execute runs the tool with given parameters

Jump to

Keyboard shortcuts

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