Skip to content

Commit a031e21

Browse files
authored
1 parent 2e63e81 commit a031e21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/mcpcurl/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ func addCommandFromTool(toolsCmd *cobra.Command, tool *Tool, prettyPrint bool) {
280280
}
281281
case "number":
282282
cmd.Flags().Float64(name, 0, description)
283+
case "integer":
284+
cmd.Flags().Int64(name, 0, description)
283285
case "boolean":
284286
cmd.Flags().Bool(name, false, description)
285287
case "array":
@@ -319,6 +321,10 @@ func buildArgumentsMap(cmd *cobra.Command, tool *Tool) (map[string]interface{},
319321
if value, _ := cmd.Flags().GetFloat64(name); value != 0 {
320322
arguments[name] = value
321323
}
324+
case "integer":
325+
if value, _ := cmd.Flags().GetInt64(name); value != 0 {
326+
arguments[name] = value
327+
}
322328
case "boolean":
323329
// For boolean, we need to check if it was explicitly set
324330
if cmd.Flags().Changed(name) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy