Skip to content

Commit e78c36d

Browse files
committed
NOT nil!
1 parent 9227a95 commit e78c36d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/toolsets/toolsets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type ServerTool struct {
4040
func NewServerTool[In, Out any](tool mcp.Tool, handler mcp.ToolHandlerFor[In, Out]) ServerTool {
4141
return ServerTool{Tool: tool, RegisterFunc: func(s *mcp.Server, schemaCache *schema.Cache) {
4242
inputSchema, ok := tool.InputSchema.(*jsonschema.Schema)
43-
if ok && inputSchema == nil {
43+
if ok && inputSchema != nil {
4444
resolvedSchema, err := schemaCache.GetCachedOrResolveSchema(tool.Name, inputSchema)
4545

4646
if err == nil && resolvedSchema != nil {

0 commit comments

Comments
 (0)