mcpbackend

package
v0.10.605 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerBuildInfo added in v0.10.474

func NewServerBuildInfo(
	bi buildinfo.BuildInfo,
	transport, sqlBackend, providerRegistry, mode string,
) serverBuildInfo

NewServerBuildInfo composes build-time identifiers and runtime values into a single value carried by the backend. Fields are written exactly once here. The returned interface is unexported; callers pass it straight into the backend constructors and never read individual fields outside this package.

`mode` is the server's mode string (read_only, safe, delete_safe, full_access). The back-compat `is_read_only` flag on server_info is derived by ServerInfo() from this value.

func NewStackqlMCPBackendService

func NewStackqlMCPBackendService(
	txnOrchestrator tsm_physio.Orchestrator,
	handlerCtx handler.HandlerContext,
	logger *logrus.Logger,
	serverInfo serverBuildInfo,
	envFile string,
) (mcp_server.Backend, error)

func NewStackqlMCPReverseProxyService

func NewStackqlMCPReverseProxyService(
	dsn string,
	db *sql.DB,
	handlerCtx handler.HandlerContext,
	logger *logrus.Logger,
	serverInfo serverBuildInfo,
) (mcp_server.Backend, error)

Types

type StackqlInterrogator

type StackqlInterrogator interface {
	GetShowProviders(dto.HierarchyInput, string) (string, error)
	GetShowServices(dto.HierarchyInput, string) (string, error)
	GetShowResources(dto.HierarchyInput, string) (string, error)
	GetShowMethods(dto.HierarchyInput) (string, error)
	GetDescribeResource(dto.HierarchyInput) (string, error)
	GetDescribeMethod(dto.HierarchyInput) (string, error)
	GetQueryJSON(dto.QueryJSONInput) (string, error)
	GetRegistryList(provider string) (string, error)
	GetRegistryPull(provider, version string) (string, error)
}

StackqlInterrogator builds StackQL SQL strings for the metadata tools.

func NewSimpleStackqlInterrogator

func NewSimpleStackqlInterrogator() StackqlInterrogator

Jump to

Keyboard shortcuts

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