Skip to content

[BUG] Listing MCP tools doesn't paginate through results #420

Closed
@zastrowm

Description

@zastrowm

Checks

  • I have updated to the lastest minor and patch version of Strands
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Strands Version

source

Python Version

N/A

Operating System

N/A

Installation Method

git clone

Steps to Reproduce

Use an MCP server that lists tools using pagination. Notice that strands doesn't load all of the tools from it.

Expected Behavior

Strands should load all tools from the MCP Server

Actual Behavior

It loads only the first page

Additional Context

No response

Possible Solution

We should plumb through pagination tokens via

async def _list_tools_async() -> ListToolsResult:

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions