Skip to content

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

Open
@Haoyunzhenyu

Description

@Haoyunzhenyu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions