From b420b81fd5cd0da3f4338e178fe56a4aa0bbea6c Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 15 Jul 2026 08:37:22 +0900 Subject: [PATCH] mcp: default search_profile limit to 10, with the flag omitted it was 0 and the loop stopped after the first result. --- mcp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mcp.go b/mcp.go index 917462d..c45519e 100644 --- a/mcp.go +++ b/mcp.go @@ -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)