modelcontextprotocol/java-sdk

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

Opened this issue · 0 comments

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())