mcp-go icon indicating copy to clipboard operation
mcp-go copied to clipboard

[SSE-CLIENT] failed to connect to SSE: status code 404 Client initialization error: initialization failed: unexpected status code: 404

Open joewang1085 opened this issue 7 months ago • 1 comments

sse client can't connect sse server. run sse client following sse/client. run sse server following example-servers/everything.

joewang1085 avatar Apr 29 '25 07:04 joewang1085

Hi, I can confirm. Upgrading from 0.23.0 to 0.25.0 (Same for 0.24.0) result in 404 when the client is trying to connect with the server.

StarpTech avatar May 02 '25 08:05 StarpTech

Any updates on this one @ezynda3 ? Thanks.

StarpTech avatar May 09 '25 23:05 StarpTech

Hi. I just added a sample client to main to help test things like this. With the most recent code v0.26.0+ clients seem to connect just fine.

Initializing SSE client...
Initializing client...
Connected to server: example-servers/everything (version 1.0.0)
Server capabilities: {Experimental:map[] Logging:0x9c5920 Prompts:0xc000202baa Resources:0xc000202bac Tools:0xc000202bae}
Fetching available tools...
Server has 5 tools available
  1. add - Adds two numbers
  2. echo - Echoes back the input
  3. getTinyImage - Returns the MCP_TINY_IMAGE
  4. longRunningOperation - Demonstrates a long running operation with progress updates
  5. notify -
Fetching available resources...
Server has 1 resources available
  1. test://static/resource - Static Resource
Client initialized successfully. Shutting down...

I guess I would need some more details to debug.

ezynda3 avatar May 10 '25 10:05 ezynda3

I can confirm, works. Ty.

StarpTech avatar May 11 '25 21:05 StarpTech

Thanks for confirming that @StarpTech, I'm going to go ahead and close this for now.

Happy to reopen though if we've misunderstood something.

rwjblue-glean avatar May 12 '25 00:05 rwjblue-glean