Skip to content

Commit d4b0131

Browse files
SVGs are okay
1 parent 5a6cdb0 commit d4b0131

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

cmd/build/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ func run(ctx context.Context, name string, listTools bool, pullCommunity bool) e
4242
return err
4343
}
4444

45+
// Skip build for remote servers - they don't need Docker images
46+
if server.Remote.URL != "" {
47+
fmt.Printf("✅ Build skipped for remote server %s\n", name)
48+
return nil
49+
}
50+
4551
isMcpImage := strings.HasPrefix(server.Image, "mcp/")
4652

4753
if isMcpImage {

cmd/validate/main.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ func IsLicenseValid(name string) error {
140140
if err != nil {
141141
return err
142142
}
143+
144+
// Skip license validation for remote servers without source
145+
if server.Source.Project == "" {
146+
fmt.Println("✅ License validation skipped (remote server)")
147+
return nil
148+
}
149+
143150
repository, err := client.GetProjectRepository(ctx, server.Source.Project)
144151
if err != nil {
145152
return err
@@ -179,12 +186,20 @@ func isIconValid(name string) error {
179186
fmt.Println("🛑 Icon is too large. It must be less than 2MB")
180187
return nil
181188
}
189+
190+
// Check content type for SVG support
191+
contentType := resp.Header.Get("Content-Type")
192+
if contentType == "image/svg+xml" {
193+
fmt.Println("✅ Icon is valid (SVG)")
194+
return nil
195+
}
196+
182197
img, format, err := image.DecodeConfig(resp.Body)
183198
if err != nil {
184199
return err
185200
}
186201
if format != "png" {
187-
fmt.Println("🛑 Icon is not a png. It must be a png")
202+
fmt.Println("🛑 Icon is not a png or svg. It must be a png or svg")
188203
return nil
189204
}
190205

0 commit comments

Comments
 (0)