Content-Length: 1256 | pFad | http://github.com/github/github-mcp-server/pull/688.patch
thub.com
From 768b1429ec07091168a0ef55d9c3d71512e20442 Mon Sep 17 00:00:00 2001
From: herodot
Date: Wed, 16 Jul 2025 22:47:11 +0800
Subject: [PATCH] fix: make mcpcurl support "integer" type -
FYI:https://json-schema.org/understanding-json-schema/reference/numeric#integer
---
cmd/mcpcurl/main.go | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cmd/mcpcurl/main.go b/cmd/mcpcurl/main.go
index bc192587a..17b4bc77c 100644
--- a/cmd/mcpcurl/main.go
+++ b/cmd/mcpcurl/main.go
@@ -280,6 +280,8 @@ func addCommandFromTool(toolsCmd *cobra.Command, tool *Tool, prettyPrint bool) {
}
case "number":
cmd.Flags().Float64(name, 0, description)
+ case "integer":
+ cmd.Flags().Int64(name, 0, description)
case "boolean":
cmd.Flags().Bool(name, false, description)
case "array":
@@ -319,6 +321,10 @@ func buildArgumentsMap(cmd *cobra.Command, tool *Tool) (map[string]interface{},
if value, _ := cmd.Flags().GetFloat64(name); value != 0 {
arguments[name] = value
}
+ case "integer":
+ if value, _ := cmd.Flags().GetInt64(name); value != 0 {
+ arguments[name] = value
+ }
case "boolean":
// For boolean, we need to check if it was explicitly set
if cmd.Flags().Changed(name) {
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/github/github-mcp-server/pull/688.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy