We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9227a95 commit e78c36dCopy full SHA for e78c36d
pkg/toolsets/toolsets.go
@@ -40,7 +40,7 @@ type ServerTool struct {
40
func NewServerTool[In, Out any](tool mcp.Tool, handler mcp.ToolHandlerFor[In, Out]) ServerTool {
41
return ServerTool{Tool: tool, RegisterFunc: func(s *mcp.Server, schemaCache *schema.Cache) {
42
inputSchema, ok := tool.InputSchema.(*jsonschema.Schema)
43
- if ok && inputSchema == nil {
+ if ok && inputSchema != nil {
44
resolvedSchema, err := schemaCache.GetCachedOrResolveSchema(tool.Name, inputSchema)
45
46
if err == nil && resolvedSchema != nil {
0 commit comments