fix(mcp): keep the string guard on tools/list next_cursor

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-22 08:25:56 +00:00
parent c54de1630e
commit 28a1ac20d3

View file

@ -130,7 +130,7 @@ async def list_tools_with_pagination(
tools.extend(result.tools)
next_cursor = result.next_cursor
if not next_cursor:
if not isinstance(next_cursor, str) or not next_cursor:
return tools
if next_cursor in seen_cursors:
verbose_logger.warning(