Skip to content

Commit 8a9214f

Browse files
committed
chore: fix tools=false, it generates the metadata even when tools do not run
Signed-off-by: Ivan Pedrazas <[email protected]>
1 parent 018629f commit 8a9214f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/create/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func run(ctx context.Context, buildURL, name, category, userProvidedImage string
132132
return fmt.Errorf("getting working directory: %w\n%s", err, out)
133133
}
134134

135-
if listTools {
135+
136136
var (
137137
secrets []servers.Secret
138138
env []servers.Env
@@ -201,7 +201,7 @@ func run(ctx context.Context, buildURL, name, category, userProvidedImage string
201201
Parameters: schema,
202202
},
203203
}
204-
204+
if listTools {
205205
tools, err := mcp.Tools(ctx, server, false, false, false)
206206
if err != nil {
207207
return err
@@ -216,7 +216,7 @@ func run(ctx context.Context, buildURL, name, category, userProvidedImage string
216216
}
217217

218218
fmt.Printf("\n-----------------------------------------\n\n")
219-
219+
}
220220
if exists, err := checkLocalServerExists(name); err != nil {
221221
return err
222222
} else if exists {
@@ -261,7 +261,7 @@ What to do next?
261261
262262
5. Open a Pull Request with the %[2]s file.
263263
`, name, serverFile)
264-
}
264+
265265

266266
return nil
267267
}

0 commit comments

Comments
 (0)