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

Chinese parameters sent by the MCP client connecting to SSE are garbled (mcp客户端连接sse发送的中文参数乱码)

Open en-o opened this issue 7 months ago • 2 comments
trafficstars

"The MCP client connects to SSE, but Chinese parameters are displayed as garbled text."

"Chinese parameters become garbled when sent from the MCP client to SSE."

en-o avatar Apr 19 '25 18:04 en-o

// The native HttpClientSseClientTransport handles Chinese parameters correctly without garbled text. McpClientTransport transport = HttpClientSseClientTransport .builder("http://127.0.0.1:8080") .build();

Image

Image

en-o avatar Apr 19 '25 18:04 en-o

The spring-ai-starter-mcp-client causes Chinese parameters to display incorrectly (garbled). Image

Image

en-o avatar Apr 19 '25 18:04 en-o

Sorry, I can't follow what the issue is here. Maybe you can send a reproducible example and link to a github repo?

markpollack avatar Apr 22 '25 15:04 markpollack

Sorry, I can't follow what the issue is here. Maybe you can send a reproducible example and link to a github repo?

example here 👉 https://github.com/en-o/temp.git

en-o avatar Apr 23 '25 07:04 en-o