Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRegistriesFromConfig ¶
SetRegistriesFromConfig sets the registries list from configuration
Types ¶
type RegistryEntry ¶
type RegistryEntry struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
URL string `json:"url"`
ServersURL string `json:"servers_url,omitempty"`
Tags []string `json:"tags,omitempty"`
Protocol string `json:"protocol,omitempty"`
Count interface{} `json:"count,omitempty"` // number or string
}
RegistryEntry represents a registry in the embedded registry list
func FindRegistry ¶
func FindRegistry(idOrName string) *RegistryEntry
FindRegistry finds a registry by ID or name (case-insensitive)
func ListRegistries ¶
func ListRegistries() []RegistryEntry
ListRegistries returns a copy of all available registries
type ServerEntry ¶
type ServerEntry struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
URL string `json:"url"` // MCP endpoint for remote server connections only
SourceCodeURL string `json:"source_code_url,omitempty"` // URL to source code repository
InstallCmd string `json:"installCmd,omitempty"` // Command to install the server locally
ConnectURL string `json:"connectUrl,omitempty"` // Alternative connection URL for remote servers
UpdatedAt string `json:"updatedAt,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Registry string `json:"registry,omitempty"` // Which registry this came from
// Repository detection information
RepositoryInfo *experiments.GuessResult `json:"repository_info,omitempty"` // Detected npm/pypi package info
}
ServerEntry represents an MCP server discovered via a registry
func SearchServers ¶
func SearchServers(ctx context.Context, registryID, tag, query string, limit int, guesser *experiments.Guesser) ([]ServerEntry, error)
SearchServers searches the given registry for servers matching optional tag and query with optional repository guessing and result limiting
Click to show internal directories.
Click to hide internal directories.