Skip to content

Remote MCP server using typescript doesn't function correctly #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shemseddine opened this issue May 4, 2025 · 5 comments
Open

Remote MCP server using typescript doesn't function correctly #445

shemseddine opened this issue May 4, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@shemseddine
Copy link

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. follow the steps to building the stateless server: https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/examples/server/simpleStatelessStreamableHttp.ts
  2. expose the server via ngrok
  3. add the ngrok server through the https://claude.ai/settings/profile page
  4. check the console and the server logs

Expected behavior
it should pick up on the server and tools

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

Image
@shemseddine shemseddine added the bug Something isn't working label May 4, 2025
@shemseddine shemseddine changed the title 400 Remote MCP server using typescript doesn't function correctly May 4, 2025
@KKonstantinov
Copy link

Tried the same with mcp-server and adding to Claude Desktop; leading to the same result.

@imaai
Copy link

imaai commented May 5, 2025

That's probably because claude.ai is still using old MCP version. I doubt it supports 2025-03-26. In press release you can see Zapier and the rest use /sse endpoints.

@imaai
Copy link

imaai commented May 5, 2025

Closed connection is likely due to failed negotation of the protocol version. Code in https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/examples/server/simpleStatelessStreamableHttp.ts has no backward compatibility for SSE standard

@liriID
Copy link

liriID commented May 19, 2025

Also encountered this.. anyone has a workaround or fork of the sdk with a fix?

@npstorey
Copy link

I am also experiencing this isse, hoping for a fix soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To triage
Development

No branches or pull requests

5 participants