registry

package
v0.14.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMCPServerCatalogEntryToRegistry

func ConvertMCPServerCatalogEntryToRegistry(
	ctx context.Context,
	entry v1.MCPServerCatalogEntry,
	serverURL string,
	reverseDNS string,
	mimeFetcher *mimeFetcher,
) (obottypes.RegistryServerResponse, error)

ConvertMCPServerCatalogEntryToRegistry converts a catalog entry to Registry format

func ConvertMCPServerToRegistry

func ConvertMCPServerToRegistry(
	ctx context.Context,
	server v1.MCPServer,
	credEnv map[string]string,
	serverURL string,
	slug string,
	reverseDNS string,
	userID string,
	mimeFetcher *mimeFetcher,
) (obottypes.RegistryServerResponse, error)

ConvertMCPServerToRegistry converts an Obot MCPServer to a Registry ServerResponse Uses the existing ConvertMCPServer function to ensure consistency with the rest of the codebase

func FormatRegistryServerName

func FormatRegistryServerName(reverseDNS, serverName string) string

FormatRegistryServerName creates a full registry server name from reverse DNS and server name Example: "com.example.obot/my-server"

func ReverseDNSFromURL

func ReverseDNSFromURL(baseURL string) (string, error)

ReverseDNSFromURL converts a URL like "https://obot.example.com" to "com.example.obot" Handles localhost and IP addresses specially by returning "local.<hostname>"

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(acrHelper *accesscontrolrule.Helper, serverURL string, registryNoAuth bool) *Handler

func (*Handler) GetServerVersion

func (h *Handler) GetServerVersion(req api.Context) error

GetServerVersion handles GET /v0.1/servers/{serverName}/versions/{version}

func (*Handler) ListServerVersions

func (h *Handler) ListServerVersions(req api.Context) error

ListServerVersions handles GET /v0.1/servers/{serverName}/versions

func (*Handler) ListServers

func (h *Handler) ListServers(req api.Context) error

ListServers handles GET /v0.1/servers

Jump to

Keyboard shortcuts

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