@@ -13,6 +13,7 @@ import (
13
13
"os"
14
14
"strings"
15
15
16
+ "github.com/modelcontextprotocol/registry/pkg/model"
16
17
"github.com/modelcontextprotocol/registry/tools/publisher/auth"
17
18
)
18
19
@@ -27,10 +28,6 @@ const (
27
28
)
28
29
29
30
// Server structure types for JSON generation
30
- type Repository struct {
31
- URL string `json:"url"`
32
- Source string `json:"source"`
33
- }
34
31
35
32
type VersionDetail struct {
36
33
Version string `json:"version"`
@@ -63,13 +60,13 @@ type Package struct {
63
60
}
64
61
65
62
type ServerJSON struct {
66
- Schema string `json:"$schema"`
67
- Name string `json:"name"`
68
- Description string `json:"description"`
69
- Status string `json:"status,omitempty"`
70
- Repository Repository `json:"repository"`
71
- VersionDetail VersionDetail `json:"version_detail"`
72
- Packages []Package `json:"packages"`
63
+ Schema string `json:"$schema"`
64
+ Name string `json:"name"`
65
+ Description string `json:"description"`
66
+ Status string `json:"status,omitempty"`
67
+ Repository model. Repository `json:"repository"`
68
+ VersionDetail VersionDetail `json:"version_detail"`
69
+ Packages []Package `json:"packages"`
73
70
}
74
71
75
72
func main () {
@@ -579,7 +576,7 @@ func createServerStructure(
579
576
Name : name ,
580
577
Description : description ,
581
578
Status : status ,
582
- Repository : Repository {
579
+ Repository : model. Repository {
583
580
URL : repoURL ,
584
581
Source : repoSource ,
585
582
},
0 commit comments