Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetServer(ctx context.Context, url *ServerURL) (registryapi.ServerResponse, error)
GetServerVersions(ctx context.Context, url *ServerURL) (registryapi.ServerListResponse, error)
}
type ServerURL ¶
type ServerURL struct {
// BaseURL is the host plus anything before the API version (e.g., "https://registry.modelcontextprotocol.io")
BaseURL string
// APIVersion is the API version (e.g., "v0")
APIVersion string
// ServerName is the URL-encoded server name (e.g., "ai.aliengiraffe%2Fspotdb")
ServerName string
// Version (e.g., "latest", "0.1.0") - defaults to "latest" if not set
Version string
// RawURL is the original URL that was parsed
RawURL string
}
ServerURL represents a parsed MCP registry URL
func ParseServerURL ¶
ParseServerURL parses an MCP registry URL into its components
func (*ServerURL) IsLatestVersion ¶
func (*ServerURL) LatestVersionURL ¶
LatestVersionURL returns the URL for the latest version endpoint
func (*ServerURL) VersionsListURL ¶
VersionsListURL returns the URL for the versions list endpoint
func (*ServerURL) WithVersion ¶
Click to show internal directories.
Click to hide internal directories.