Skip to content

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

Open
@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy