kube

package
v0.4.42 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package kube builds the mcp-server execution bundle using direct Kubernetes access via kubeconfig. This is the mode the MCP server has shipped with since v0.1.x — talks to the cluster's TinyModule, TinyProject, TinyFlow, TinyNode, TinySignal, TinyScenario CRDs directly, and reaches the in-cluster otel-collector by port-forward.

All construction logic that used to live inline in cmd/serve.go is now here so platform mode can be added without disturbing the existing path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts Options) (backend.Bundle, backend.Cleanup, error)

New constructs the kube-backed execution bundle. The cleanup function closes the trace reader's port-forwarder; caller must defer it.

Types

type Options

type Options struct {
	KubeconfigPath string
	Context        string
	Namespace      string
	OtelService    string
	OtelPort       int

	// NATS service location for SignalSender. Defaults applied below
	// when zero — namespace "nats", service "nats-nats", port 4222
	// match the platform's standard install. Override only if your
	// cluster runs NATS elsewhere.
	NatsNamespace string
	NatsService   string
	NatsPort      int
}

Options carries everything the kube backend needs at construction. SolutionSearcher and PublicModuleCatalog are NOT here — they hit the public REST API and are mode-agnostic, so serve.go constructs them once and assigns them onto the returned bundle regardless of mode.

Jump to

Keyboard shortcuts

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