Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryExtensions ¶
type RegistryExtensions struct {
ServerID string `json:"serverId"` // Consistent ID across all versions of a server
VersionID string `json:"versionId"` // Unique ID for this specific version
PublishedAt time.Time `json:"publishedAt"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
IsLatest bool `json:"isLatest"`
}
RegistryExtensions represents registry-generated metadata
type ServerJSON ¶
type ServerJSON struct {
Schema string `json:"$schema,omitempty"`
Name string `json:"name" minLength:"1" maxLength:"200"`
Description string `json:"description" minLength:"1" maxLength:"100"`
Status model.Status `json:"status,omitempty" minLength:"1"`
Repository model.Repository `json:"repository,omitempty"`
Version string `json:"version"`
WebsiteURL string `json:"websiteUrl,omitempty"`
Packages []model.Package `json:"packages,omitempty"`
Remotes []model.Transport `json:"remotes,omitempty"`
Meta *ServerMeta `json:"_meta,omitempty"`
}
ServerJSON represents complete server information as defined in the MCP spec, with extension support
func (*ServerJSON) GetServerID ¶ added in v1.1.0
func (s *ServerJSON) GetServerID() string
func (*ServerJSON) GetVersionID ¶ added in v1.1.0
func (s *ServerJSON) GetVersionID() string
type ServerListResponse ¶
type ServerListResponse struct {
Servers []ServerJSON `json:"servers"`
Metadata Metadata `json:"metadata"`
}
ServerListResponse represents the paginated server list response
type ServerMeta ¶
type ServerMeta struct {
Official *RegistryExtensions `json:"io.modelcontextprotocol.registry/official,omitempty"`
PublisherProvided map[string]interface{} `json:"io.modelcontextprotocol.registry/publisher-provided,omitempty"`
}
ServerMeta represents the structured metadata with known extension fields
Click to show internal directories.
Click to hide internal directories.