Merge pull request #177 from mattn/fix/mcp-search-profile-limit

mcp: apply a default limit of 10 to search_profile
This commit is contained in:
mattn
2026-07-15 08:44:04 +00:00
committed by GitHub

3
mcp.go
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)