Skip to content

SSE Connection Failure Described as "throw new Error("Not connected")" #432

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

Closed
Ishiharaerika opened this issue Apr 4, 2025 · 1 comment

Comments

@Ishiharaerika
Copy link

Describe the bug
MCP initialization stucked at "Set up MCP Proxy" with node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js:103
throw new Error("Not connected") on Windows 11 24H2. I doubt that this shouldn't be a bug but could be misconfiguration.

To Reproduce
Steps to reproduce the behavior:

  1. Minimum walkthrough of installation.
  2. npm cache clean --force
  3. Copy&Paste simple MCP server.py at QuickStart. (https://github.com/modelcontextprotocol/python-sdk?tab=readme-ov-file#quickstart)
  4. mcp dev server.py
  5. Error with SSE. Logs below;
Starting MCP inspector...
⚙️ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀
Stdio transport: command=C:\Program Files\Python311\Scripts\uv.exe, args=run,--with,mcp,mcp,run,test_server.py
Spawned stdio transport
Connected MCP client to backing server transport
Created web app transport
Created web app transport
Set up MCP proxy
file:///C:/.../node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js:103
            throw new Error("Not connected");
                  ^

Error: Not connected
    at SSEServerTransport.send (file:///C:/.../node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js:103:19)
    at Socket.<anonymous> (file:///C:/.../node_modules/@modelcontextprotocol/inspector/server/build/index.js:101:33)
    at Socket.emit (node:events:507:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)

Node.js v23.11.0

Expected behavior
Connection through SSE should be established.

Screenshots
I shall provide detailed log output and actively participating discussion. I'd be glad to here if there's anything I could provide.

Desktop (please complete the following information):

  • OS: Windows 11 24H2
  • Browser Thorium / Edge / Chromium
  • Version 26100.3624

Additional context
Gratitude on active development. Shame on me triggering low-level weird bugs.

@Ishiharaerika
Copy link
Author

Double posted. Problem already solved, see #433

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant