registry

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInternalName added in v0.1.11

func GenerateInternalName(server string) string

GenerateInternalName converts a server name to a DNS-1123 compliant name that can be used as a Docker Compose service name or Kubernetes resource name. Export this function so that the runtime can use this to construct the name of MCP to connect to

Types

type AgentRunRequest

type AgentRunRequest struct {
	RegistryAgent *models.AgentJSON
	EnvValues     map[string]string
	// Registry-type MCP servers resolved from agent manifest at deploy time to inject into the agent
	ResolvedMCPServers []*MCPServerRunRequest
}

type MCPServerRunRequest

type MCPServerRunRequest struct {
	RegistryServer *apiv0.ServerJSON
	PreferRemote   bool
	EnvValues      map[string]string
	ArgValues      map[string]string
	HeaderValues   map[string]string
}

type Translator

type Translator interface {
	TranslateMCPServer(
		ctx context.Context,
		req *MCPServerRunRequest,
	) (*api.MCPServer, error)

	TranslateAgent(
		ctx context.Context,
		req *AgentRunRequest,
	) (*api.Agent, error)
}

Translator is the interface for translating MCPServer objects to AgentGateway objects.

func NewTranslator

func NewTranslator() Translator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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