Skip to content

Commit 3da0e71

Browse files
jcheekAiden
andcommitted
fix: Add Types field to mcp-exec arguments parameter schema
The mcp-exec tool's 'arguments' parameter had the same issue as mcp-config-set - missing type specification causing validation errors with Fireworks AI. Added the Types field to specify that arguments can be any valid JSON type: string, number, boolean, object, array, or null. This resolves the 500 error: "JSON Schema not supported: could not understand the instance `{'description': 'Arguments to pass to the tool (can be any valid JSON value)'}`" Tested with: - Claude Code: mcp-exec works with object arguments - Fireworks AI (via vai): 500 errors are resolved Co-Authored-By: Aiden <[email protected]>
1 parent cc97bc1 commit 3da0e71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/gateway/dynamic_mcps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ func (g *Gateway) createMcpExecTool() *ToolRegistration {
939939
Description: "Name of the tool to execute",
940940
},
941941
"arguments": {
942+
Types: []string{"string", "number", "boolean", "object", "array", "null"},
942943
Description: "Arguments to pass to the tool (can be any valid JSON value)",
943944
},
944945
},

0 commit comments

Comments
 (0)