MCP SSE demo
by the-vampiire
This is a reproducible demo that shows an MCP SSE server failing using the bun runtime but succeeding using Node.js. It provides steps to reproduce the issue and observe the network behavior.
View on GitHub
Last updated: N/A
MCP SSE demo
reproducible demo that shows an MCP SSE server fails using the bun runtime but succeeds using nodejs.
steps
- install dependencies
# or npm | yarn | pnpm install, same effect
bun install
- run the MCP inspector
npm run inspect
-
open the inspector http://localhost:5173
-
select SSE as the transport and enter
http://localhost:3500/sse
as the url -
open dev tools network tab to inspect traffic
-
in another terminal tab / session run the server using bun
npm run start:bun
-
try to connect to the server using the inspector, observe the network (pending SSE connection), server and inspector logs
-
kill the bun server then run the server using nodejs
npm run start:node
- try to connect to the server using the inspector, observe the network (successful SSE connection and message posting), server and inspector logs