Skip to content

Commit 6b1e3a5

Browse files
committed
fix: add string-array pflag type
1 parent 2de8fee commit 6b1e3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ func (s *MCPServer) generateJSONSchema(cmd *Command) (json.RawMessage, error) {
674674
case "durationSlice":
675675
property["type"] = "array"
676676
property["items"] = map[string]any{"type": "string", "format": "duration"}
677-
case "stringArray", "stringToString", "stringToInt", "stringToInt64": // More pflag types
677+
case "string-array", "stringArray", "stringToString", "stringToInt", "stringToInt64": // More pflag types
678678
// stringArray is like stringSlice
679679
// Map types are complex, represent as object for now
680680
if valueType == "stringArray" {

0 commit comments

Comments
 (0)