Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct {
NextCursor string `json:"next_cursor,omitempty"`
Count int `json:"count,omitempty"`
Total int `json:"total,omitempty"`
}
Metadata represents pagination metadata
type RegistryExtensions ¶
type RegistryExtensions struct {
ID string `json:"id"`
PublishedAt time.Time `json:"published_at"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
IsLatest bool `json:"is_latest"`
}
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"`
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
type ServerListResponse ¶
type ServerListResponse struct {
Servers []ServerJSON `json:"servers"`
Metadata *Metadata `json:"metadata,omitempty"`
}
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.