Skip to content

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

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
Haoyunzhenyu opened this issue Apr 18, 2025 · 0 comments

Comments

@Haoyunzhenyu
Copy link

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.

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

No branches or pull requests

1 participant