Skip to content

Conversation

@olaservo
Copy link
Member

Resolves #1948

The npx @modelcontextprotocol/server-everything sse command was crashing with "Not connected" error after 5 seconds because notification timers were starting immediately when the server was created, but trying to send messages before any client connected.

Changes

  • Move setInterval calls from server creation to startNotificationIntervals function
  • Only start notification timers when a client actually connects to the SSE server
  • Prevents 'Not connected' error when server tries to send notifications before client connection

Generated with Claude Code

…t connects

- Move setInterval calls from server creation to startNotificationIntervals function
- Only start notification timers when a client actually connects to the SSE server
- Prevents 'Not connected' error when server tries to send notifications before client connection
- Fixes issue where server crashes after 5 seconds when running 'npx @modelcontextprotocol/server-everything sse'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Ola Hungerford <[email protected]>
@olaservo olaservo added server-everything Reference implementation for the Everything MCP server - src/everything bug Something isn't working labels Aug 17, 2025
@olaservo olaservo merged commit c5fec29 into main Aug 17, 2025
23 checks passed
@olaservo olaservo deleted the claude/issue-1948-20250817-1717 branch August 17, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working server-everything Reference implementation for the Everything MCP server - src/everything

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"npx @modelcontextprotocol/server-everything sse"does not start -> Not connected

3 participants