backend

package
v0.4.41 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package backend selects between the two ways mcp-server can talk to a Tiny Systems cluster: directly via kubeconfig, or indirectly through the hosted platform-api with a developer token.

The bundle returned by both builders is the same shape — an sdktools.ExecutionContext populated with concrete implementations of the per-operation interfaces (ModuleCatalog, SignalSender, TraceReader, ...). MCP tool handlers consume the ExecutionContext without knowing or caring which mode is active.

Why two builders rather than one Backend interface wrapping it all: ExecutionContext is already 17 segregated interfaces. The SDK's tool handlers depend on those interfaces directly. Introducing a parent Backend wrapper would either duplicate the interface surface or force handlers to depend on a richer type than they need. Two builders that produce the same struct gives platform-mode parity with zero churn on the tool side.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle = sdktools.ExecutionContext

Bundle aliases sdktools.ExecutionContext for clarity at the construction site. Builders return this; serve.go assigns it straight into ExecutionContext when registering tools.

type Cleanup

type Cleanup func()

Cleanup is the teardown function returned by each builder. It closes long-lived resources such as the trace reader's port-forwarder or the platform gRPC connection. Always defer it.

Directories

Path Synopsis
Package kube builds the mcp-server execution bundle using direct Kubernetes access via kubeconfig.
Package kube builds the mcp-server execution bundle using direct Kubernetes access via kubeconfig.

Jump to

Keyboard shortcuts

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