retriever

package
v0.6.5 Latest Latest
Warning

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

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

Documentation

Overview

Package retriever contains logic for fetching or building MCP servers.

Index

Constants

View Source
const (
	// VerifyImageWarn prints a warning when image validation fails.
	VerifyImageWarn = "warn"
	// VerifyImageEnabled treats validation failure as a fatal error.
	VerifyImageEnabled = "enabled"
	// VerifyImageDisabled turns off validation.
	VerifyImageDisabled = "disabled"
)

Variables

View Source
var (
	// ErrBadProtocolScheme is returned when the provided serverOrImage is not a valid protocol scheme.
	ErrBadProtocolScheme = errors.New("invalid protocol scheme provided for MCP server")
	// ErrImageNotFound is returned when the specified image is not found in the registry.
	ErrImageNotFound = errors.New("image not found in registry, please check the image name or tag")
	// ErrInvalidRunConfig is returned when the run configuration built by RunConfigBuilder is invalid
	ErrInvalidRunConfig = errors.New("invalid run configuration provided")
)

Functions

func GetMCPServer

func GetMCPServer(
	ctx context.Context,
	serverOrImage string,
	rawCACertPath string,
	verificationType string,
	groupName string,
) (string, types.ServerMetadata, error)

GetMCPServer retrieves the MCP server definition from the registry.

Types

type Retriever added in v0.3.0

Retriever is a function that retrieves the MCP server definition from the registry.

Jump to

Keyboard shortcuts

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