Documentation
¶
Index ¶
- Variables
- func ValidateMCPB(ctx context.Context, pkg model.Package, _ string) error
- func ValidateNPM(ctx context.Context, pkg model.Package, serverName string) error
- func ValidateNuGet(ctx context.Context, pkg model.Package, serverName string) error
- func ValidateOCI(ctx context.Context, pkg model.Package, serverName string) error
- func ValidatePyPI(ctx context.Context, pkg model.Package, serverName string) error
- type NPMPackageResponse
- type OCIAuthResponse
- type OCIImageConfig
- type OCIManifest
- type PyPIPackageResponse
- type RegistryConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingIdentifierForMCPB = fmt.Errorf("package identifier is required for MCPB packages") ErrMissingFileSHA256ForMCPB = fmt.Errorf("must include a fileSha256 hash for integrity verification") )
View Source
var ( ErrMissingIdentifierForNPM = errors.New("package identifier is required for NPM packages") ErrMissingVersionForNPM = errors.New("package version is required for NPM packages") )
View Source
var ( ErrMissingIdentifierForNuget = errors.New("package identifier is required for NuGet packages") ErrMissingVersionForNuget = errors.New("package version is required for NuGet packages") )
View Source
var ( ErrMissingIdentifierForOCI = errors.New("package identifier is required for OCI packages") ErrMissingVersionForOCI = errors.New("package version is required for OCI packages") )
View Source
var ( ErrMissingIdentifierForPyPI = errors.New("package identifier is required for PyPI packages") ErrMissingVersionForPyPi = errors.New("package version is required for PyPI packages") )
View Source
var ErrRateLimited = errors.New("rate limited by registry")
ErrRateLimited is returned when a registry rate limits our requests
Functions ¶
func ValidateNPM ¶
ValidateNPM validates that an NPM package contains the correct MCP server name
func ValidateNuGet ¶
ValidateNuGet validates that a NuGet package contains the correct MCP server name
func ValidateOCI ¶
ValidateOCI validates that an OCI image contains the correct MCP server name annotation
Types ¶
type NPMPackageResponse ¶
type NPMPackageResponse struct {
MCPName string `json:"mcpName"`
}
NPMPackageResponse represents the structure returned by the NPM registry API
type OCIAuthResponse ¶
type OCIAuthResponse struct {
Token string `json:"token"`
}
OCIAuthResponse represents an OCI registry authentication response
type OCIImageConfig ¶
type OCIImageConfig struct {
Config struct {
Labels map[string]string `json:"Labels"`
} `json:"config"`
}
OCIImageConfig represents an OCI image configuration
type OCIManifest ¶
type OCIManifest struct {
Manifests []struct {
Digest string `json:"digest"`
} `json:"manifests,omitempty"`
Config struct {
Digest string `json:"digest"`
} `json:"config,omitempty"`
}
OCIManifest represents an OCI image manifest
type PyPIPackageResponse ¶
type PyPIPackageResponse struct {
Info struct {
Description string `json:"description"`
} `json:"info"`
}
PyPIPackageResponse represents the structure returned by the PyPI JSON API
Click to show internal directories.
Click to hide internal directories.