Help us shape the future of Go! Take the 2026 Go Developer Survey

retriever

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 10 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")
)

Functions

func GetMCPServer

func GetMCPServer(
	ctx context.Context,
	serverOrImage string,
	rawCACertPath string,
	verificationType string,
) (string, *registry.ImageMetadata, error)

GetMCPServer retrieves the MCP server definition from the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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