spring-projects / spring-projects/spring-ai
There is an error in the address conversion of the SSE connection method.
Nobody has claimed this yet.
- 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
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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