This project demonstrates the limitations of an MCP SSE (Server-Sent Events) server when using the Bun runtime compared to Node.js. The demo provides a reproducible setup to observe the differences in behavior between the two runtimes.
To set up the demo, follow these steps:
Install Dependencies:
shell
bun install
Run the MCP Inspector:
shell
npm run inspect
Open the Inspector:
Navigate to http://localhost:5173.
Select SSE as the Transport:
Enter http://localhost:3500/sse
as the URL.
Inspect Traffic:
Open the Dev Tools Network tab to monitor traffic.
Run the Server Using Bun:
shell
npm run start:bun
Observe Behavior:
Attempt to connect to the server using the inspector. Observe the network, server, and inspector logs.
Run the Server Using Node.js:
shell
npm run start:node
Observe Behavior:
Attempt to connect to the server using the inspector. Observe the network, server, and inspector logs.
The demo is designed to highlight the differences in SSE server behavior between Bun and Node.js. By following the steps, users can observe how the Bun runtime may fail to maintain SSE connections, whereas Node.js succeeds.
This project is a demo showcasing the limitations of an MCP SSE server when using the Bun runtime. It provides a clear, step-by-step guide to reproduce the observed issues.