v0

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 2 Imported by: 2

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"`
}

Metadata represents pagination metadata

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL