@@ -15,25 +15,36 @@ type topLevel struct {
1515// MCP Servers
1616
1717type Server struct {
18- Name string `yaml:"name,omitempty" json:"name,omitempty"`
19- Type string `yaml:"type" json:"type"`
20- Image string `yaml:"image" json:"image"`
21- Description string `yaml:"description,omitempty" json:"description,omitempty"`
22- Title string `yaml:"title,omitempty" json:"title,omitempty"`
23- LongLived bool `yaml:"longLived,omitempty" json:"longLived,omitempty"`
24- Remote Remote `yaml:"remote" json:"remote"`
25- SSEEndpoint string `yaml:"sseEndpoint,omitempty" json:"sseEndpoint,omitempty"` // Deprecated: Use Remote instead
26- OAuth * OAuth `yaml:"oauth,omitempty" json:"oauth,omitempty"`
27- Secrets []Secret `yaml:"secrets,omitempty" json:"secrets,omitempty"`
28- Env []Env `yaml:"env,omitempty" json:"env,omitempty"`
29- Command []string `yaml:"command,omitempty" json:"command,omitempty"`
30- Volumes []string `yaml:"volumes,omitempty" json:"volumes,omitempty"`
31- User string `yaml:"user,omitempty" json:"user,omitempty"`
32- DisableNetwork bool `yaml:"disableNetwork,omitempty" json:"disableNetwork,omitempty"`
33- AllowHosts []string `yaml:"allowHosts,omitempty" json:"allowHosts,omitempty"`
34- Tools []Tool `yaml:"tools,omitempty" json:"tools,omitempty"`
35- Config []any `yaml:"config,omitempty" json:"config,omitempty"`
36- Prefix string `yaml:"prefix,omitempty" json:"prefix,omitempty"`
18+ Name string `yaml:"name,omitempty" json:"name,omitempty"`
19+ Type string `yaml:"type" json:"type"`
20+ Image string `yaml:"image" json:"image"`
21+ Description string `yaml:"description,omitempty" json:"description,omitempty"`
22+ Title string `yaml:"title,omitempty" json:"title,omitempty"`
23+ LongLived bool `yaml:"longLived,omitempty" json:"longLived,omitempty"`
24+ Remote Remote `yaml:"remote" json:"remote"`
25+ SSEEndpoint string `yaml:"sseEndpoint,omitempty" json:"sseEndpoint,omitempty"` // Deprecated: Use Remote instead
26+ OAuth * OAuth `yaml:"oauth,omitempty" json:"oauth,omitempty"`
27+ Secrets []Secret `yaml:"secrets,omitempty" json:"secrets,omitempty"`
28+ Env []Env `yaml:"env,omitempty" json:"env,omitempty"`
29+ Command []string `yaml:"command,omitempty" json:"command,omitempty"`
30+ Volumes []string `yaml:"volumes,omitempty" json:"volumes,omitempty"`
31+ User string `yaml:"user,omitempty" json:"user,omitempty"`
32+ DisableNetwork bool `yaml:"disableNetwork,omitempty" json:"disableNetwork,omitempty"`
33+ AllowHosts []string `yaml:"allowHosts,omitempty" json:"allowHosts,omitempty"`
34+ Tools []Tool `yaml:"tools,omitempty" json:"tools,omitempty"`
35+ Config []any `yaml:"config,omitempty" json:"config,omitempty"`
36+ Prefix string `yaml:"prefix,omitempty" json:"prefix,omitempty"`
37+ Metadata * Metadata `yaml:"metadata,omitempty" json:"metadata,omitempty"`
38+ }
39+
40+ type Metadata struct {
41+ Pulls int `yaml:"pulls,omitempty" json:"pulls,omitempty"`
42+ Stars int `yaml:"stars,omitempty" json:"stars,omitempty"`
43+ GithubStars int `yaml:"githubStars,omitempty" json:"githubStars,omitempty"`
44+ Category string `yaml:"category,omitempty" json:"category,omitempty"`
45+ Tags []string `yaml:"tags,omitempty" json:"tags,omitempty"`
46+ License string `yaml:"license,omitempty" json:"license,omitempty"`
47+ Owner string `yaml:"owner,omitempty" json:"owner,omitempty"`
3748}
3849
3950func (s * Server ) IsOAuthServer () bool {
0 commit comments