Skip to content

If the MCP server defines content path, the client endpoint can pass the first GET request sent to the/se path, but sending a post request with the response/mcp/message is incorrect, resulting in a 404 error #3110

@hbsjz-swl

Description

@hbsjz-swl

Bug description
How does MCP Server define content path and connect to URL: localhost: port sse endpoint:/contentPath/sse using SSE after defining it? This format can be used for the first get request to connect, but for the second post request to access/mcp/message, the contentpath cannot be added, resulting in a 404 error

Environment
springboot:3.4.2 jdk 17 spring-ai 1.0.0-SNAPSHOT

Steps to reproduce
mcp:
client:
enabled: true
name: mock-client
version: 0.0.1
type: SYNC
request-timeout: 20s
sse:
connections:
soldier-server:
url: http://localhost:port
sse-endpoint: /content-path/sse

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions