mcptools

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespaceArg namespace argument.
	NamespaceArg = "namespace"
	// SettingsArg settings argument.
	SettingsArg = "setting"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTools

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

ConfigTools represents a set of tools for managing the TSSC configuration in a Kubernetes cluster via MCP tools. Each tool is a function that handles a specific role in the TSSC configuration lifecycle. Analogous to the "tssc config" subcommand it uses the ConfigManager to manage the TSSC configuration in the cluster.

func NewConfigTools

func NewConfigTools(
	logger *slog.Logger,
	kube *k8s.Kube,
	cm *config.ConfigMapManager,
) (*ConfigTools, error)

NewConfigTools instantiates a new ConfigTools.

func (*ConfigTools) Init

func (c *ConfigTools) Init(s *server.MCPServer)

Init registers the ConfigTools on the provided MCP server instance.

type DeployTools

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

DeployTools represents the tools used for deploying the TSSC using the installer on a container image, and running in the cluster, using a Kubernetes Job.

func NewDeployTools

func NewDeployTools(
	cm *config.ConfigMapManager,
	job *installer.Job,
	image string,
) *DeployTools

NewDeployTools creates a new DeployTools instance.l

func (*DeployTools) Init

func (d *DeployTools) Init(s *server.MCPServer)

Init registers the deployment tools on the MCP server.

type IntegrationTools

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

func NewIntegrationTools

func NewIntegrationTools(integrationCmd *cobra.Command) *IntegrationTools

func (*IntegrationTools) Init

func (i *IntegrationTools) Init(s *server.MCPServer)

type Interface

type Interface interface {
	// Init decorates the MCP server with the tool declaration.
	Init(s *server.MCPServer)
}

Interface represents the MCP tools in the project.

Jump to

Keyboard shortcuts

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