spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

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

Open hbsjz-swl opened this issue 1 year ago • 0 comments

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

hbsjz-swl avatar May 12 '25 06:05 hbsjz-swl