When connecting to an MCP server that has been moved and issues a temp redirect status, the client should be able to follow redirects. This could be implemented by allowing the HTTP client to follow redirects in the builder or making redirects on by default.
**Is your feature request related to a problem? Please describe.** When trying to connect to an MCP server that has been moved and is issuing a temp redirect status, the client is coded to refuse to follow the redirect. This causes the connection to fail - with no available mitigation strategy. **Describe the solution you'd like** One of: The ability to specify that the http client follows redirects in the builder. Redirects on by default (yeah yeah breaking change) The ability to provide my own httpclient in the builder. **Describe alternatives you've considered** Inherit from the StreamableHttpMcpTransport class and roll my own. I'd rather not but this is quite the roadblock for me. **Additional context** The issue is in dev.langchain4j.mcp.client.transport.http.StreamableHttpMcpTransport at line 163. The sendAsync is getting a 307 in the response status code at line 165 and it ends up down at 222 with java.lang.RuntimeException: Unexpected status code: 307. In my case the mcp