Documentation
¶
Index ¶
- func ConvertMCPServerCatalogEntryToRegistry(ctx context.Context, entry v1.MCPServerCatalogEntry, serverURL string, ...) (obottypes.RegistryServerResponse, error)
- func ConvertMCPServerToRegistry(ctx context.Context, server v1.MCPServer, credEnv map[string]string, ...) (obottypes.RegistryServerResponse, error)
- func FormatRegistryServerName(reverseDNS, serverName string) string
- func ReverseDNSFromURL(baseURL string) (string, error)
- type Handler
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 ¶
FormatRegistryServerName creates a full registry server name from reverse DNS and server name Example: "com.example.obot/my-server"
func ReverseDNSFromURL ¶
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 ¶
GetServerVersion handles GET /v0.1/servers/{serverName}/versions/{version}
func (*Handler) ListServerVersions ¶
ListServerVersions handles GET /v0.1/servers/{serverName}/versions