Skip to content

feat: add streamable-HTTP transport support for MCP client #3823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Jul 15, 2025

  • Split MCP client auto-configuration into transport-specific modules to support new streamable-HTTP transport
    • spring-ai-autoconfigure-mcp-client-common (shared functionality)
    • spring-ai-autoconfigure-mcp-client-httpclient (HttpClient-based transports)
    • spring-ai-autoconfigure-mcp-client-webflux (WebFlux-based transports)
  • Update starters to use appropriate transport-specific modules
  • Add streamable-HTTP configuration properties (spring.ai.mcp.client.streamable)
  • Update documentation with streamable-HTTP transport examples
  • Update BOM to reflect new modular structure

- Split MCP client auto-configuration into transport-specific modules to support new streamable-HTTP transport
  - spring-ai-autoconfigure-mcp-client-common (shared functionality)
  - spring-ai-autoconfigure-mcp-client-httpclient (HttpClient-based transports)
  - spring-ai-autoconfigure-mcp-client-webflux (WebFlux-based transports)
- Update starters to use appropriate transport-specific modules
- Add streamable-HTTP configuration properties (spring.ai.mcp.client.streamable)
- Update documentation with streamable-HTTP transport examples
- Update BOM to reflect new modular structure

Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov added this to the 1.1.x milestone Jul 15, 2025
@tzolov tzolov added the MCP label Jul 15, 2025
@ilayaperumalg ilayaperumalg self-assigned this Jul 15, 2025
@ilayaperumalg
Copy link
Member

Fixes #3782

@checkHup
Copy link

I cannot find the StreamableHttpHttpClientTransportAutoConfiguration class after upgrading to version 1.1.0
image

@hbsjz-swl
Copy link

@checkHup The changes will take effect only after the merge

@ConfigurationProperties(McpStreamableHttpClientProperties.CONFIG_PREFIX)
public class McpStreamableHttpClientProperties {

public static final String CONFIG_PREFIX = "spring.ai.mcp.client.streamable";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the proper prefix should be spring.ai.mcp.client.streamable-http?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this is better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants