spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

There is an error in the address conversion of the SSE connection method.

Open Haoyunzhenyu opened this issue 7 months ago • 0 comments
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

  1. Set up an MCP Client.
  2. Configure the SSE address.
  3. Start the service.

Expected behavior It can connect to the SSE Server successfully using the correct address.

Haoyunzhenyu avatar Apr 18 '25 11:04 Haoyunzhenyu