Skip to content

No way to return nextCursor using list_resources decorator #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rbehal opened this issue May 20, 2025 · 1 comment
Open

No way to return nextCursor using list_resources decorator #759

rbehal opened this issue May 20, 2025 · 1 comment

Comments

@rbehal
Copy link

rbehal commented May 20, 2025

  • When using the list_resources decorator, there is no way to return the nextCursor if your resources are paginated, as the decorator relies on just a list of Resource being returned
  • Solution: Make a decorator list_paginated_resources that returns a dict with 'resources' and 'nextCursor' or even just the ListResourceResult object itself

Let me know your thoughts on the above and I'm happy to raise a PR with it

@ihrpr
Copy link
Contributor

ihrpr commented May 20, 2025

#745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants