Documentation
¶
Overview ¶
Package registry resolves a check target into a normalized MCP server descriptor. A target may be an official-registry server name (for example "io.github.owner/name"), a GitHub repository URL, or a remote endpoint URL. Every lookup is keyless: it reads the public MCP registry API and touches no user secret.
Index ¶
Constants ¶
const DefaultBaseURL = "https://registry.modelcontextprotocol.io/v0/servers"
DefaultBaseURL is the official, keyless MCP registry servers endpoint.
const DefaultUserAgent = "akashi (mcp health; keyless; +https://roninforge.org)"
DefaultUserAgent identifies akashi politely to the registry.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client talks to the MCP registry over plain keyless HTTP.
func (*Client) ByName ¶
ByName looks up a single server by its exact registry name and returns the latest published version. The registry search is a substring match, so we filter to an exact name and isLatest==true, following the result cursor (up to maxByNamePages) in case the exact match is not on the first page.
func (*Client) Drain ¶
Drain pages the whole registry (latest version of each server, deduped by name) up to max entries. It is the population source for the scan/index command. max<=0 means "the whole registry".
type Package ¶
type Package struct {
RegistryType string `json:"registryType"`
Identifier string `json:"identifier"`
Version string `json:"version,omitempty"`
Transport string `json:"transport,omitempty"`
}
Package is one installable entrypoint (npm, pypi, oci, ...).
type Repository ¶
Repository points at a server's source.
type Server ¶
type Server struct {
Name string `json:"name"`
Title string `json:"title,omitempty"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
Repository *Repository `json:"repository,omitempty"`
Packages []Package `json:"packages,omitempty"`
Remotes []Remote `json:"remotes,omitempty"`
RegistryStatus string `json:"registryStatus,omitempty"` // active|deprecated|deleted
Origin string `json:"origin"` // registry|repo|remote
}
Server is the normalized descriptor the probe engine consumes. Origin records how the target was resolved, which the report uses to decide which checks apply (a bare remote URL has no registry status to check, etc.).