spring-ai
spring-ai copied to clipboard
There is an error in the address conversion of the SSE connection method.
trafficstars
Bug description This is one of my connection addresses: yaml spring: ai: mcp: client: enabled: true name: my-mcp-client version: 1.0.0 request-timeout: 30s type: SYNC sse: enabled: true connections: server: url: https://actions.zapier.com/mcp/sk-ak-EjePjXcKdPwC9W4fM
When I start the service and it automatically connects to the SSE, the URL of the message interface called by the framework will be wrongly called as https://actions.zapier.com/mcp/sk-ak-EjePjXcKdPwC9W4fM/mcp/sk-ak-EjePjXcKdPwC9W4fM/message.
Environment Spring AI 1.0.0-M7版本
Steps to reproduce
- Set up an MCP Client.
- Configure the SSE address.
- Start the service.
Expected behavior It can connect to the SSE Server successfully using the correct address.