Title: The method ```io.modelcontextprotocol.client.McpAsyncClient#listTools()``` never returns if the ```result.nextCursor()``` is an empty string instead of a null · Issue #575 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: The method ```io.modelcontextprotocol.client.McpAsyncClient#listTools()``` never returns if the ```result.nextCursor()``` is an empty string instead of a null · Issue #575 · modelcontextprotocol/java-sdk
X Title: The method ```io.modelcontextprotocol.client.McpAsyncClient#listTools()``` never returns if the ```result.nextCursor()``` is an empty string instead of a null · Issue #575 · modelcontextprotocol/java-sdk
Description: 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. java-sdk/mcp-core/src/main/java/io/modelcontextprotocol/client/McpAsyncC...
Open Graph Description: 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. java-sdk/mcp-core/src/main/java/...
X Description: 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. java-sdk/mcp-core/src/main/j...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/575
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The method ```io.modelcontextprotocol.client.McpAsyncClient#listTools()``` never returns if the ```result.nextCursor()``` is an empty string instead of a null","articleBody":"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.\nhttps://github.com/modelcontextprotocol/java-sdk/blob/7f16cd0b9dc72f5adc3358a903bebb0f909dda3e/mcp-core/src/main/java/io/modelcontextprotocol/client/McpAsyncClient.java#L557","author":{"url":"https://github.com/jthann","@type":"Person","name":"jthann"},"datePublished":"2025-09-25T11:20:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/575/java-sdk/issues/575"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c7edfdf4-7d44-b3e2-2a30-f9972afbbc17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5E6:2781A3:3975F5:4CC60C:6A5EDAD5 |
| html-safe-nonce | 77b96e546e5802f3288133255f756a0c844b0c26639b8d144c35b4caddffd619 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUU2OjI3ODFBMzozOTc1RjU6NENDNjBDOjZBNUVEQUQ1IiwidmlzaXRvcl9pZCI6IjgzODMxNTY1NjcyOTk1MTMwNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 712e949e1e368971ebac52e0750c14115b572a4364a965040cd2e5fd63eb5144 |
| hovercard-subject-tag | issue:3453173099 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/java-sdk/575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24deabe8106dfb2f9bb4c8bf329ae66c7b1009d4a7c47475c7b09afb4ec23116/modelcontextprotocol/java-sdk/issues/575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24deabe8106dfb2f9bb4c8bf329ae66c7b1009d4a7c47475c7b09afb4ec23116/modelcontextprotocol/java-sdk/issues/575 |
| og:image:alt | 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. java-sdk/mcp-core/src/main/java/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jthann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82d0004a35927bdb00c652a57f456c55aa0eda4ade1bc7956d7510fdea6e454b |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d2d913dd727d2d7ac189fb4d05b10bc34ecd03ee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width