MCP SSE demo logo

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

  1. install dependencies
# or npm | yarn | pnpm install, same effect
bun install
  1. run the MCP inspector
npm run inspect
  1. open the inspector http://localhost:5173

  2. select SSE as the transport and enter http://localhost:3500/sse as the url

  3. open dev tools network tab to inspect traffic

  4. in another terminal tab / session run the server using bun

npm run start:bun
  1. try to connect to the server using the inspector, observe the network (pending SSE connection), server and inspector logs

  2. kill the bun server then run the server using nodejs

npm run start:node
  1. try to connect to the server using the inspector, observe the network (successful SSE connection and message posting), server and inspector logs