Migrate OneLake to pagination

Open
#4,333 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
api, backend

Research direction

Read the four command files listed in the issue, then trace their request and response handling through OneLakeService.cs to verify where each endpoint carries continuation data. Check docs/tool-pagination.md and the existing tests for cursor conventions and output formats. Done means all four commands support the shared nextCursor contract, reject invalid or mismatched cursors, preserve documented output, and have the specified pagination coverage and documentation updates.

Written by the indexing model from the issue text.

Description

Standardize OneLake workspace and item pagination

Context

OneLakeWorkspaceListCommand, OneLakeItemListCommand, OneLakeItemDataListCommand, and OneLakeItemListDfsCommand accept raw continuation-token inputs, but do not expose the shared cursor / nextCursor contract. The workspace path that parses XML returns the items without a continuation field; other paths return raw XML or JSON.

Work

  • Verify the actual continuation request parameters and response locations for each Blob and DFS endpoint, including headers versus body. Do not assume the raw response body contains the token.
  • Preserve the existing collection or raw response and add a root-level nextCursor, extracting the backend continuation as needed.
  • Bind cursors to the workspace identifier, recursion and format options where relevant, and the other fixed request arguments. Keep authorization and endpoint validation on each request.
  • Decide how existing raw continuationToken inputs and response formats transition without silently breaking callers.

Acceptance criteria

  • For each of the four commands, tests cover first, continued, empty-with-continuation, and terminal pages and verify the actual service request/response encoding.
  • Invalid cursors and changes to fixed arguments are rejected; raw and parsed output formats retain their documented contents.
  • Add recorded multi-page coverage where available and update tool documentation.

References

  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Workspace/OneLakeWorkspaceListCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Item/OneLakeItemListCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Item/OneLakeItemDataListCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Item/OneLakeItemListDfsCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Services/OneLakeService.cs
  • docs/tool-pagination.md
Dominant language
C#
Stars
3.9k
Forks
689
Avg merge
2d 11h
Merged PRs (30d)
143

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/mcp

All issues in microsoft/mcp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.