Skip to content

The method io.modelcontextprotocol.client.McpAsyncClient#listTools() never returns if the result.nextCursor() is an empty string instead of a null #575

@jthann

Description

@jthann

I've found in some MCP server implementations the nextCursor in response is empty string instead of null, leading to dead loop in the method of following reference.

.expand(result -> (result.nextCursor() != null) ? this.listTools(result.nextCursor()) : Mono.empty())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions