mcp: default search_profile limit to 10, with the flag omitted it was 0 and the loop stopped after the first result.

This commit is contained in:
Yasuhiro Matsumoto
2026-07-15 17:34:23 +09:00
parent 461e9c612e
commit b420b81fd5
+3
View File
@@ -155,6 +155,9 @@ var mcpServer = &cli.Command{
), func(ctx context.Context, r mcp.CallToolRequest) (*mcp.CallToolResult, error) {
name := required[string](r, "name")
limit, _ := optional[float64](r, "limit")
if limit == 0 {
limit = 10
}
res := strings.Builder{}
res.Grow(500)