demo of MCP SSE server limitations using the bun runtime
Overview
What is MCP SSE Demo?
MCP SSE Demo is a reproducible demonstration that showcases the limitations of an MCP SSE server when using the Bun runtime compared to Node.js.
How to use MCP SSE Demo?
To use MCP SSE Demo, follow these steps:
- Install dependencies using Bun:
bun install. - Run the MCP inspector with
npm run inspect. - Open the inspector at http://localhost:5173.
- Select SSE as the transport and enter
http://localhost:3500/sseas the URL. - Open the dev tools network tab to inspect traffic.
- In another terminal, run the server using Bun:
npm run start:bun. - Connect to the server using the inspector and observe the logs.
- Kill the Bun server and run the server using Node.js:
npm run start:node. - Connect again to see the successful SSE connection.
Key features of MCP SSE Demo?
- Demonstrates server behavior with different runtimes (Bun vs Node.js).
- Provides a visual inspector for monitoring SSE connections.
- Allows users to observe network traffic and logs during the connection process.
Use cases of MCP SSE Demo?
- Testing server performance with different runtimes.
- Educational purposes for understanding SSE connections.
- Debugging server issues related to transport protocols.
FAQ from MCP SSE Demo?
- What is the purpose of this demo?
The demo illustrates how an MCP SSE server behaves under different runtime environments.
- Is it necessary to use Bun?
No, you can also run the server using Node.js to compare the results.
- Can I use this demo for production?
This demo is intended for educational and testing purposes, not for production use.