spring-projects / spring-projects/spring-ai

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

Open
#2,801 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mcp
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MCP Client SSE connection with the YAML configuration shown in the issue and trace how the configured URL becomes the message endpoint. The work is done when the client connects successfully without duplicating the SSE path in the generated message URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.