Title: Streamable HTTP transport hangs during initialization · Issue #406 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: Streamable HTTP transport hangs during initialization · Issue #406 · modelcontextprotocol/java-sdk
X Title: Streamable HTTP transport hangs during initialization · Issue #406 · modelcontextprotocol/java-sdk
Description: The client hangs during the first initialize message to a (public) Shopify MCP https://my-best-shoes.myshopify.com/api/mcp I can successfully connect https://my-best-shoes.myshopify.com/api/mcp from npx @modelcontextprotocol/inspector. N...
Open Graph Description: The client hangs during the first initialize message to a (public) Shopify MCP https://my-best-shoes.myshopify.com/api/mcp I can successfully connect https://my-best-shoes.myshopify.com/api/mcp fro...
X Description: The client hangs during the first initialize message to a (public) Shopify MCP https://my-best-shoes.myshopify.com/api/mcp I can successfully connect https://my-best-shoes.myshopify.com/api/mcp fro...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/406
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Streamable HTTP transport hangs during initialization","articleBody":"The client hangs during the first `initialize` message to a (public) Shopify MCP `https://my-best-shoes.myshopify.com/api/mcp`\n\nI can successfully connect `https://my-best-shoes.myshopify.com/api/mcp` from `npx @modelcontextprotocol/inspector`.\n\nNote that #396 describes that the client transport hangs during sendNotification for `notifications/initialized`. In this case, the client hangs even earlier - during `initialize`.\n\nSteps to reproduce:\n```\nString url = \"https://my-best-shoes.myshopify.com/api\";\nMcpClientTransport transport = HttpClientStreamableHttpTransport.builder(url).endpoint(\"/mcp\").build();\n\nMcpSyncClient client = McpClient.sync(transport)\n .requestTimeout(Duration.ofSeconds(20))\n .initializationTimeout(Duration.ofSeconds(20))\n .build();\n\ntry {\n client.initialize();\n\n McpSchema.ListToolsResult tools = client.listTools();\n logger.log(Level.INFO, \"Available tools: {0}\", tools.tools());\n\n} catch (Exception e) {\n logger.log(Level.SEVERE, \"Failed to initialize MCP client from DebugServlet\", e);\n}\n```","author":{"url":"https://github.com/andrey-star","@type":"Person","name":"andrey-star"},"datePublished":"2025-07-16T18:33:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/406/java-sdk/issues/406"}
| 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:4183ea41-1136-01c2-2829-0eceadcf20f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 964A:1DF241:2C74073:3A01B76:6A5CC957 |
| html-safe-nonce | f01e43b624517289507e2948a93d8cf1e4f8c4521e615e101f489cac94461c61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjRBOjFERjI0MToyQzc0MDczOjNBMDFCNzY6NkE1Q0M5NTciLCJ2aXNpdG9yX2lkIjoiODA3MzcxMTE3ODcxNDIzNzI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17987b16448f154754a2e1253f63baeca572f7f6d39280f115a9e6e30f1f974e |
| hovercard-subject-tag | issue:3236962692 |
| 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/406/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28af11f0af97e7b1c34b0fa18552d62916ad23b4b00188300cab56a854b03ca9/modelcontextprotocol/java-sdk/issues/406 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28af11f0af97e7b1c34b0fa18552d62916ad23b4b00188300cab56a854b03ca9/modelcontextprotocol/java-sdk/issues/406 |
| og:image:alt | The client hangs during the first initialize message to a (public) Shopify MCP https://my-best-shoes.myshopify.com/api/mcp I can successfully connect https://my-best-shoes.myshopify.com/api/mcp fro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrey-star |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width