Skip to content

Commit 82e1c36

Browse files
committed
Add pagination to artifact list endpoints
Added the withPagination() option to both ListArtifactsForBuild and ListArtifactsForJob, enabling pagination support for artifact listing endpoints.
1 parent 6663165 commit 82e1c36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/buildkite/artifacts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func ListArtifactsForBuild(client ArtifactsClient) (tool mcp.Tool, handler serve
9191
mcp.WithString("build_number",
9292
mcp.Required(),
9393
),
94+
withPagination(),
9495
mcp.WithToolAnnotation(mcp.ToolAnnotation{
9596
Title: "Build Artifact List",
9697
ReadOnlyHint: mcp.ToBoolPtr(true),
@@ -171,6 +172,7 @@ func ListArtifactsForJob(client ArtifactsClient) (tool mcp.Tool, handler server.
171172
mcp.WithString("job_id",
172173
mcp.Required(),
173174
),
175+
withPagination(),
174176
mcp.WithToolAnnotation(mcp.ToolAnnotation{
175177
Title: "Job Artifact List",
176178
ReadOnlyHint: mcp.ToBoolPtr(true),

0 commit comments

Comments
 (0)