mcpbackend

package
v1.1.975 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 transaction.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)
	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