Skip to content

Commit 3233f7a

Browse files
authored
fix: add missing pagination parameters to list_resources tool (#108)
The limit and continue parameters were missing from the MCP tool schema definition, even though they were already implemented in the backend. This fix adds the missing parameter definitions to ensure the tool schema matches the actual implementation.
1 parent e906442 commit 3233f7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/mcp/tools.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func NewListResourcesTool() mcp.Tool {
3131
mcp.Description("List of annotation keys to exclude from output (supports wildcards with *)")),
3232
mcp.WithArray("include_annotation_keys",
3333
mcp.Description("List of annotation keys to include in output (if specified, only these are included)")),
34+
mcp.WithNumber("limit",
35+
mcp.Description("Maximum number of resources to return (0 means no limit, default: 0)")),
36+
mcp.WithString("continue",
37+
mcp.Description("Continue token for pagination (use the value from previous response's ListMeta.Continue)")),
3438
mcp.WithToolAnnotation(mcp.ToolAnnotation{
3539
Title: "List Kubernetes resources",
3640
ReadOnlyHint: BoolPtr(true),

0 commit comments

Comments
 (0)