Skip to content

Commit a799d09

Browse files
fix: progressive tool calling for non-http tools (#823)
1 parent 6e9620a commit a799d09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/internal/mcp/progressive_tool_calling.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ func buildDescribeToolsTool(tools []*types.Tool, listToolRequired bool) (*toolLi
7171
} else {
7272
toolNames := []string{}
7373
for _, tool := range tools {
74+
if tool.HTTPToolDefinition == nil {
75+
continue
76+
}
7477
toolNames = append(toolNames, tool.HTTPToolDefinition.Name)
7578
}
7679
description += fmt.Sprintf(" The available tools are: %s.", strings.Join(toolNames, ", "))

0 commit comments

Comments
 (0)