Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryExtensions ¶
type RegistryExtensions struct { Status model.Status `json:"status"` PublishedAt time.Time `json:"publishedAt"` UpdatedAt time.Time `json:"updatedAt,omitempty"` IsLatest bool `json:"isLatest"` }
RegistryExtensions represents registry-generated metadata
type ResponseMeta ¶ added in v1.2.1
type ResponseMeta struct {
Official *RegistryExtensions `json:"io.modelcontextprotocol.registry/official,omitempty"`
}
ResponseMeta represents the top-level metadata in API responses
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"` 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
type ServerListResponse ¶
type ServerListResponse struct { Servers []ServerResponse `json:"servers"` Metadata Metadata `json:"metadata"` }
ServerListResponse represents the paginated server list response
type ServerMeta ¶
type ServerMeta struct {
PublisherProvided map[string]interface{} `json:"io.modelcontextprotocol.registry/publisher-provided,omitempty"`
}
ServerMeta represents the structured metadata with known extension fields
type ServerResponse ¶ added in v1.2.1
type ServerResponse struct { Server ServerJSON `json:"server"` Meta ResponseMeta `json:"_meta"` }
ServerResponse represents the new API response format with separated metadata
Click to show internal directories.
Click to hide internal directories.